linux icon indicating copy to clipboard operation
linux copied to clipboard

sun4i drm direct rendering

Open paolo-caroni opened this issue 7 years ago • 1 comments

Hi Florent, on the wiki of your project (http://linux-sunxi.org/Sunxi-cedrus) I have read on "Known bugs and limitations" that:

Direct rendering: currently, buffers coming out of the v4l driver in a tiled pixel format are converted to a standard YUV pixel format and then rendered on screen by ffmpeg/vlc. As soon as the support for YUV DRM planes will be added to the kernel, this behavior can be replaced and the performances will be much better.

Currently the video can only be played at a zoom of 1:1, otherwise the scaling is done by ffmpeg in full CPU and it is too slow. Having that in the DRM driver would also allow for hardware accelerated frames scaling.

But the DRM driver "sun4i" seems to have YUV support and DE2 HW scaling (honestly this is over my competence, so if I have ask a stupid thing cancel the issue).

Cheers, Paolo

paolo-caroni avatar Feb 14 '18 09:02 paolo-caroni

While we've had those features in 4.16 for DE2, it's not been in a stable kernel release yet, and none of the SoCs currently supported have DE2

The older display engine has gained scaling recently, but we still have to enable the YUV support.

mripard avatar Feb 14 '18 10:02 mripard