[FFmpeg-devel] [PATCH] Electronic Arts TQI decoder

Peter Ross pross
Fri Jan 30 16:40:30 CET 2009


On Mon, Jan 26, 2009 at 11:17:57AM +0100, Michael Niedermayer wrote:
> On Sun, Jan 25, 2009 at 11:06:25PM +1100, Peter Ross wrote:
> > Patch enclosed.

Updated.

> [...]
> > Index: libavcodec/mpeg12.c
> > ===================================================================
> > --- libavcodec/mpeg12.c	(revision 16768)
> > +++ libavcodec/mpeg12.c	(working copy)
> > @@ -46,6 +46,9 @@
> >  #define MB_PTYPE_VLC_BITS 6
> >  #define MB_BTYPE_VLC_BITS 6
> >  
> > +VLC ff_mpeg12_dc_lum_vlc;
> > +VLC ff_mpeg12_dc_chroma_vlc;
> 
> i wonder if mpeg12data would be a better place but then maybe not ..
> either way this patch is ok as well with whichever place for the
> VLC tables you like most

No need, the run-lengh decoder is identical to MPEG-1.

One snag is that eatqi needs mpeg1_decode_block_intra(), which is presently
inlined within mpeg12.c I have made this function global, but am looking for
a better solution.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eatqi-decoder-r3.diff
Type: text/x-diff
Size: 7823 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090131/443d814d/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpeg12-global-intra-block.diff
Type: text/x-diff
Size: 1569 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090131/443d814d/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090131/443d814d/attachment.pgp>



More information about the ffmpeg-devel mailing list