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

Peter Ross pross
Tue Nov 4 07:18:40 CET 2008


On Wed, Oct 08, 2008 at 09:25:03PM +0200, Michael Niedermayer wrote:
> On Tue, Oct 07, 2008 at 09:53:49PM +1100, Peter Ross wrote:
> > On Sat, Oct 04, 2008 at 03:19:50AM +0200, Michael Niedermayer wrote:
> > > On Fri, Oct 03, 2008 at 09:43:51PM +1000, Peter Ross wrote:
> > > > On Sat, Sep 27, 2008 at 08:07:05PM +1000, Peter Ross wrote:
> > > > > On Sat, Sep 27, 2008 at 10:12:34AM +1000, Peter Ross wrote:
> > > > > > Patches enclosed.
> > > > > > 
> > > > > > Info: http://wiki.multimedia.cx/index.php?title=Electronic_Arts_TGQ
> > > > > > Samples: http://samples.mplayerhq.hu/game-formats/ea-tgq-uv/
> > > > > 
> > > > > Thanks for the prompt feedback. Round two enclosed.
> > > > 
> > > > Round three. (See earlier posts for inv_aanscales.diff and eatgq-demux-r1.diff.)
> > 
> > Comments below. Round four enclosed.

Patch updated; integer DCT now in seperate file.

> [...]
> 
> > +/* Electronic Arts TGQ/TQI/MAD IDCT algorithm */
> > +#define A4 1.3065630f
> > +#define A2 0.5411961f
> > +#define A5 0.3826834f
> 
> maybe these should get the following comments:
> cos(pi*1/16)sqrt(2)
> cos(pi*2/16)sqrt(2)
> cos(pi*6/16)sqrt(2)

Err, don't you mean:

A4 = 1.3065630f = cos(pi*1/8)*sqrt(2)
A2 = 0.5411961f = cos(pi*3/8)*sqrt(2)
A5 = 0.3826834f = cos(pi*3/8)

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eatgq-decode-r6.diff
Type: text/x-diff
Size: 10986 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081104/66f375d5/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eadct-r6a.diff
Type: text/x-diff
Size: 4686 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081104/66f375d5/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/20081104/66f375d5/attachment.pgp>



More information about the ffmpeg-devel mailing list