comparison 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
comparison
equal deleted inserted replaced
6437:5154ab444372 6438:e1dd408a7864
150 typedef int (*me_cmp_func)(void /*MpegEncContext*/ *s, uint8_t *blk1/*align width (8 or 16)*/, uint8_t *blk2/*align 1*/, int line_size, int h)/* __attribute__ ((const))*/; 150 typedef int (*me_cmp_func)(void /*MpegEncContext*/ *s, uint8_t *blk1/*align width (8 or 16)*/, uint8_t *blk2/*align 1*/, int line_size, int h)/* __attribute__ ((const))*/;
151 151
152 152
153 // for snow slices 153 // for snow slices
154 typedef struct slice_buffer_s slice_buffer; 154 typedef struct slice_buffer_s slice_buffer;
155
156 /**
157 * Scantable.
158 */
159 typedef struct ScanTable{
160 const uint8_t *scantable;
161 uint8_t permutated[64];
162 uint8_t raster_end[64];
163 #ifdef ARCH_POWERPC
164 /** Used by dct_quantize_altivec to find last-non-zero */
165 DECLARE_ALIGNED_8(uint8_t, inverse[64]);
166 #endif
167 } ScanTable;
168
169 void ff_init_scantable(uint8_t *, ScanTable *st, const uint8_t *src_scantable);
155 170
156 /** 171 /**
157 * DSPContext. 172 * DSPContext.
158 */ 173 */
159 typedef struct DSPContext { 174 typedef struct DSPContext {