Mercurial > libavcodec.hg
diff dsputil.h @ 6438:e1dd408a7864 libavcodec
move ff_init_scantable() into dsputil
author | aurel |
---|---|
date | Tue, 04 Mar 2008 10:26:56 +0000 |
parents | 5154ab444372 |
children | b6d05f8827cd |
line wrap: on
line diff
--- a/dsputil.h Tue Mar 04 00:07:41 2008 +0000 +++ b/dsputil.h Tue Mar 04 10:26:56 2008 +0000 @@ -154,6 +154,21 @@ 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 {