[Ffmpeg-devel] [PATCH] MJPEG wronglydisplayedwithverticalYUV422

Luca Abeni lucabe72
Wed Nov 1 21:27:52 CET 2006


Hi Michael,

On Tue, 2006-10-31 at 20:57 +0100, Michael Niedermayer wrote:
[...] 
> > > swScaler: rgb565 is not supported as input format
> > Sorry, I did not know about this error (well, until 5 minutes ago, I did
> > not even know what an MTV file is :). I must have been missed some
> > emails.
> > I'll have a look at this problem; where can I download a sample MTV
> > file?
> 
> btw, see bgr16ToUV() bgr16ToY() you just need to implement some rgb
> counterparts
Thanks for the hint. I wrote the attached patch, which seems to work,
but... The resulting image is upside-down :(

I tried some quick tests, and it seems that conversions from bgr555 and
bgr565 also vertically flip the image.
Before spending time on this issue, I am wondering if ffmpeg and mplayer
just have different opinions about what's "up" and what's "down" in a
bgr555 and bgr565 image. I know this question looks stupid, but it
already happened that mplayer's rgb32 is ffmpeg's bgr32, so maybe I am
seeing another similar "disagreement" :)

If this is not the case, let me know and I'll investigate this issue
more deeply.


			Thanks,
				Luca

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sws-5x5-input.diff
Type: text/x-patch
Size: 3783 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061101/7432fa97/attachment.bin>



More information about the ffmpeg-devel mailing list