comparison dsputil.h @ 1972:8a556283601d libavcodec

hook up support for SSE2-optimized VP3 IDCT
author melanson
date Sun, 25 Apr 2004 03:33:30 +0000
parents 55b7435c59b8
children 8c5489b2cf3e
comparison
equal deleted inserted replaced
1971:39f2ba94e09b 1972:8a556283601d
71 void vp3_idct_put_mmx(int16_t *input_data, int16_t *dequant_matrix, 71 void vp3_idct_put_mmx(int16_t *input_data, int16_t *dequant_matrix,
72 int coeff_count, uint8_t *dest, int stride); 72 int coeff_count, uint8_t *dest, int stride);
73 void vp3_idct_add_mmx(int16_t *input_data, int16_t *dequant_matrix, 73 void vp3_idct_add_mmx(int16_t *input_data, int16_t *dequant_matrix,
74 int coeff_count, uint8_t *dest, int stride); 74 int coeff_count, uint8_t *dest, int stride);
75 75
76 void vp3_dsp_init_sse2(void);
77 void vp3_idct_put_sse2(int16_t *input_data, int16_t *dequant_matrix,
78 int coeff_count, uint8_t *dest, int stride);
79 void vp3_idct_add_sse2(int16_t *input_data, int16_t *dequant_matrix,
80 int coeff_count, uint8_t *dest, int stride);
81
76 82
77 /* minimum alignment rules ;) 83 /* minimum alignment rules ;)
78 if u notice errors in the align stuff, need more alignment for some asm code for some cpu 84 if u notice errors in the align stuff, need more alignment for some asm code for some cpu
79 or need to use a function with less aligned data then send a mail to the ffmpeg-dev list, ... 85 or need to use a function with less aligned data then send a mail to the ffmpeg-dev list, ...
80 86
401 if (mm_flags & MM_MMX)\ 407 if (mm_flags & MM_MMX)\
402 emms();\ 408 emms();\
403 } 409 }
404 410
405 #define __align8 __attribute__ ((aligned (8))) 411 #define __align8 __attribute__ ((aligned (8)))
412 #define __align16 __attribute__ ((aligned (16)))
406 413
407 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx); 414 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx);
408 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx); 415 void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx);
409 416
410 #elif defined(ARCH_ARMV4L) 417 #elif defined(ARCH_ARMV4L)