comparison dsputil.h @ 2272:cd43603c46f9 libavcodec

move h264 idct to its own file and call via function pointer in DspContext allow h264 idct to be used for lowres=1
author michael
date Mon, 27 Sep 2004 19:47:17 +0000
parents 12e75af1d44c
children ba91c976c7aa
comparison
equal deleted inserted replaced
2271:859535b5eb57 2272:cd43603c46f9
48 48
49 void ff_fdct_mmx(DCTELEM *block); 49 void ff_fdct_mmx(DCTELEM *block);
50 void ff_fdct_mmx2(DCTELEM *block); 50 void ff_fdct_mmx2(DCTELEM *block);
51 void ff_fdct_sse2(DCTELEM *block); 51 void ff_fdct_sse2(DCTELEM *block);
52 52
53 void ff_h264_idct_add_c(uint8_t *dst, DCTELEM *block, int stride);
54 void ff_h264_lowres_idct_add_c(uint8_t *dst, int stride, DCTELEM *block);
55 void ff_h264_lowres_idct_put_c(uint8_t *dst, int stride, DCTELEM *block);
56
53 /* encoding scans */ 57 /* encoding scans */
54 extern const uint8_t ff_alternate_horizontal_scan[64]; 58 extern const uint8_t ff_alternate_horizontal_scan[64];
55 extern const uint8_t ff_alternate_vertical_scan[64]; 59 extern const uint8_t ff_alternate_vertical_scan[64];
56 extern const uint8_t ff_zigzag_direct[64]; 60 extern const uint8_t ff_zigzag_direct[64];
57 extern const uint8_t ff_zigzag248_direct[64]; 61 extern const uint8_t ff_zigzag248_direct[64];
328 * @param output_samples space for 64 DCTELEMs where the transformed 332 * @param output_samples space for 64 DCTELEMs where the transformed
329 * samples will be stored 333 * samples will be stored
330 */ 334 */
331 void (*vp3_idct)(int16_t *input_data, int16_t *dequant_matrix, 335 void (*vp3_idct)(int16_t *input_data, int16_t *dequant_matrix,
332 int coeff_count, DCTELEM *output_samples); 336 int coeff_count, DCTELEM *output_samples);
333 337
338 void (*h264_idct_add)(uint8_t *dst, DCTELEM *block, int stride);
334 } DSPContext; 339 } DSPContext;
335 340
336 void dsputil_static_init(void); 341 void dsputil_static_init(void);
337 void dsputil_init(DSPContext* p, AVCodecContext *avctx); 342 void dsputil_init(DSPContext* p, AVCodecContext *avctx);
338 343