[MPlayer-dev-eng] [PATCH] Fix inverted colours when capturing YV12 in V4L2 mode

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Fri Dec 16 21:49:19 CET 2005


Luc Gallant wrote:
> On 12/16/05, Jindrich Makovicka <makovick at kmlinux.fjfi.cvut.cz> wrote:
> 
>>Luc Gallant wrote:
>>
>>>I am using a virtual v4l2 driver that I created (ported from v4l1
>>>actually). I can send in whatever file type I want, and in this case I
>>>send in YV12/YVU420. When I send in that file type, the colours are
>>>inverted. When I send in I420/YUV420 and tell mplayer about this, it
>>>works fine...
>>
>>MPlayer never asks for YV20/YVU420. So why do you send it? You'll
>>obviously get inverted colours when MPlayer requests I420 and you send YV12.
>>
> 
> If Mplayer never asks for YV12/YVU420, then why can you put an
> outfmt=xxx flag in the TV options? In my specific case, I put this
> outfmt flag in the tv options, so I expect it to ask for that. I will
> look at the S_FMT commands issued later to see what it asks for.

outfmt is the format tvi_v4l* produces, not necessarily the format which 
goes out of the tv card. Well, there is actually only one exception, 
which is YV12, in order to make bt8x8 work out of the box. In all other 
cases outfmt is really what tvi_v4l* requests from the card.

Regards,
-- 
Jindrich Makovicka




More information about the MPlayer-dev-eng mailing list