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

Justin Ruggles justin.ruggles
Sat Sep 27 14:45:35 CEST 2008


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.
> 
> -- Peter
> (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
> 
> 
> Index: libavcodec/dsputil.c
> ===================================================================
> --- libavcodec/dsputil.c	(revision 15434)
> +++ libavcodec/dsputil.c	(working copy)
> @@ -4137,6 +4137,72 @@
>      dest[0] = cm[dest[0] + ((block[0] + 4)>>3)];
>  }
>  
> +/* Electronic Arts TGQ/TQI/MAD IDCT algorithm */
> +#define A4 1.3065630f
> +#define A2 0.5411961f
> +#define A5 0.3826834f
> +#define SQRT2 1.41421356237309514547

M_SQRT2 could be added to libavutil/mathematics.h instead.

-Justin




More information about the ffmpeg-devel mailing list