[MPlayer-dev-eng] [PATCH] mjpa decoder revised

Roberto Togni rtogni at freemail.it
Tue Feb 19 01:06:57 CET 2002


Hi all.

This is my second attempt at mjpa decoder. This is a cleaned up version 
of my previous patch.
The patch to libavcodec/mjpeg.c adds a simple function that does the 
bottom_field setting, to remove the mess from dec_video.c. I didn't 
move the flag to AVCodecContext to avoid extensive changes to mjpeg 
decoder. Another possible solution would be moving the 
MJpegDecodeContext struct to a separate .h file, and include it in 
dec_video.c. Tell me if you like me to implement this solution.
I still have to do the "fiel" atom decoding (I'll do it ASAP to print a 
warning if field order is incorrect), but I won't be able to reverse 
field order in decoder unless I change mjpeg_decode_frame logic (now it 
draw picture only on bottom frame).
And for "mjqt" and "mjht", I don't have any samples that require them; 
if someone have such files please upload them to ftp (BTW, I'm also 
interested in mjpb samples).

Patched version of Mplayer plays almost all my mjpa samples: the only 
failure is on a grayscale mjpa movie, i'm still looking at the problem.

Ciao,
  Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codecs.conf.diff
Type: application/octet-stream
Size: 229 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020219/a59c1771/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dec_video.c.diff
Type: application/octet-stream
Size: 1410 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020219/a59c1771/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mjpeg.c.diff
Type: application/octet-stream
Size: 367 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020219/a59c1771/attachment-0002.obj>


More information about the MPlayer-dev-eng mailing list