[vlc-devel] [PATCH] v4l2: V4L2 video_output module

Francois Cartegnie fcvlcdev at free.fr
Thu Apr 19 22:53:51 CEST 2012


Le 19/04/2012 21:07, Rémi Denis-Courmont a écrit :
> Le jeudi 19 avril 2012 17:35:00 Francois Cartegnie, vous avez écrit :
>> - vlc_fourcc_GetYUVFallback/vlc_fourcc_GetRGBFallback

> I don't see how the problem is different from any of the other video output 
> that (potentially) supports more than one chroma, e.g. XVideo.
> 

Well, as I understand the way to use it is:
- Decide if it's RGB or YUV
- Choose the right fallback function
- get a fallback table according to the chroma

Which means if we have a RGB chroma, we'll get a RGB fallback table,
based on different bpp.

But, with v4l2 output, I think we want to equally try YUV & RGB,
starting with their highest bpp to preserve quality.

Ex: Device has RGB8 and 24bpp YUV. Video is RGB32.
vlc_fourcc_GetRGBFallback would end selecting RGB8.
It should have been YUV, no ?

Francois




More information about the vlc-devel mailing list