[FFmpeg-devel] [PATCH] Is flipping correct for MJPEG encoder?

Vladimir Voroshilov voroshil
Sat Oct 13 07:09:26 CEST 2007

Hi, All

In AMV video encoder (read MJPEG) picture have to be mirrored upside down.

I have made quick patch for handling this (attached).
Patch requires cleared CODEC_FLAG_EMU_EDGE (to avoid out of bounds error).

1. Is used in patch method correct ?
2. Where should i clear CODEC_FLAG_EMU_EDGE flag (currently it looks
like cleared, but i want to be sure)?
3. where can i get decoder's v_max equivalent (maximum of
mjpeg_vsample[i]), currently i've just hardcoded 2 there
("s->height/2", which is true for AMV, but hackish)

Note: attached patch is not complete AMV video encoder, but just it's
flipping part.

Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amv_enc_pict_mirror.diff
Type: text/x-diff
Size: 1196 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071013/f0b5ca1a/attachment.diff>

More information about the ffmpeg-devel mailing list