[Ffmpeg-devel] [PATCH] MJPEG wronglydisplayedwithverticalYUV422

Michael Niedermayer michaelni
Wed Nov 1 22:22:26 CET 2006


Hi

On Wed, Nov 01, 2006 at 09:27:52PM +0100, Luca Abeni wrote:
> 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,

patch ok, commit it (dont delay it because of the flip thing)


> 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.

how do you know its upside down? did you view it in gdb, a hexeditor
mplayer, ffplay?

and how does imgresample/convert behave?

also DONT use anything microshit related to test that, as avi&asf do
have randomized vertical orientation for raw formats (not strictly true
MS has written a clear and totally senseless set of rules)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list