diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-03-04 10:26:56 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-03-04 10:26:56 +0000 |
commit | 4c79b95c32ec9d44af48a5a52c7390b84c52928c (patch) | |
tree | 8e49f50e35eb1b8f934ab9ab462067d493846c35 /libavcodec/dsputil.h | |
parent | 675b8390f61e17ea076811324719f6b135c295ab (diff) | |
download | ffmpeg-4c79b95c32ec9d44af48a5a52c7390b84c52928c.tar.gz |
move ff_init_scantable() into dsputil
Originally committed as revision 12311 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index dc930431d8..ad258666c6 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -154,6 +154,21 @@ typedef int (*me_cmp_func)(void /*MpegEncContext*/ *s, uint8_t *blk1/*align widt typedef struct slice_buffer_s slice_buffer; /** + * Scantable. + */ +typedef struct ScanTable{ + const uint8_t *scantable; + uint8_t permutated[64]; + uint8_t raster_end[64]; +#ifdef ARCH_POWERPC + /** Used by dct_quantize_altivec to find last-non-zero */ + DECLARE_ALIGNED_8(uint8_t, inverse[64]); +#endif +} ScanTable; + +void ff_init_scantable(uint8_t *, ScanTable *st, const uint8_t *src_scantable); + +/** * DSPContext. */ typedef struct DSPContext { |