comparison x86/dsputil_mmx.c @ 11381:f5ccf2e590d6 libavcodec

x86: move function prototypes to header files
author mru
date Sat, 06 Mar 2010 22:37:08 +0000
parents 98970e51365a
children 0f0cd6b5791f
comparison
equal deleted inserted replaced
11380:8f061327e46a 11381:f5ccf2e590d6
1816 1816
1817 #include "h264dsp_mmx.c" 1817 #include "h264dsp_mmx.c"
1818 #include "rv40dsp_mmx.c" 1818 #include "rv40dsp_mmx.c"
1819 1819
1820 /* CAVS specific */ 1820 /* CAVS specific */
1821 void ff_cavsdsp_init_mmx2(DSPContext* c, AVCodecContext *avctx);
1822 void ff_cavsdsp_init_3dnow(DSPContext* c, AVCodecContext *avctx);
1823
1824 void ff_put_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) { 1821 void ff_put_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) {
1825 put_pixels8_mmx(dst, src, stride, 8); 1822 put_pixels8_mmx(dst, src, stride, 8);
1826 } 1823 }
1827 void ff_avg_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) { 1824 void ff_avg_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) {
1828 avg_pixels8_mmx(dst, src, stride, 8); 1825 avg_pixels8_mmx(dst, src, stride, 8);
1833 void ff_avg_cavs_qpel16_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) { 1830 void ff_avg_cavs_qpel16_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) {
1834 avg_pixels16_mmx(dst, src, stride, 16); 1831 avg_pixels16_mmx(dst, src, stride, 16);
1835 } 1832 }
1836 1833
1837 /* VC1 specific */ 1834 /* VC1 specific */
1838 void ff_vc1dsp_init_mmx(DSPContext* dsp, AVCodecContext *avctx);
1839
1840 void ff_put_vc1_mspel_mc00_mmx(uint8_t *dst, const uint8_t *src, int stride, int rnd) { 1835 void ff_put_vc1_mspel_mc00_mmx(uint8_t *dst, const uint8_t *src, int stride, int rnd) {
1841 put_pixels8_mmx(dst, src, stride, 8); 1836 put_pixels8_mmx(dst, src, stride, 8);
1842 } 1837 }
1843 void ff_avg_vc1_mspel_mc00_mmx2(uint8_t *dst, const uint8_t *src, int stride, int rnd) { 1838 void ff_avg_vc1_mspel_mc00_mmx2(uint8_t *dst, const uint8_t *src, int stride, int rnd) {
1844 avg_pixels8_mmx2(dst, src, stride, 8); 1839 avg_pixels8_mmx2(dst, src, stride, 8);
1845 } 1840 }
1846
1847 /* external functions, from idct_mmx.c */
1848 void ff_mmx_idct(DCTELEM *block);
1849 void ff_mmxext_idct(DCTELEM *block);
1850 1841
1851 /* XXX: those functions should be suppressed ASAP when all IDCTs are 1842 /* XXX: those functions should be suppressed ASAP when all IDCTs are
1852 converted */ 1843 converted */
1853 #if CONFIG_GPL 1844 #if CONFIG_GPL
1854 static void ff_libmpeg2mmx_idct_put(uint8_t *dest, int line_size, DCTELEM *block) 1845 static void ff_libmpeg2mmx_idct_put(uint8_t *dest, int line_size, DCTELEM *block)
2496 if(channels==6) 2487 if(channels==6)
2497 ff_float_to_int16_interleave6_3dn2(dst, src, len); 2488 ff_float_to_int16_interleave6_3dn2(dst, src, len);
2498 else 2489 else
2499 float_to_int16_interleave_3dnow(dst, src, len, channels); 2490 float_to_int16_interleave_3dnow(dst, src, len, channels);
2500 } 2491 }
2501
2502
2503 void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, int width);
2504 void ff_snow_horizontal_compose97i_mmx(IDWTELEM *b, int width);
2505 void ff_snow_vertical_compose97i_sse2(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, IDWTELEM *b3, IDWTELEM *b4, IDWTELEM *b5, int width);
2506 void ff_snow_vertical_compose97i_mmx(IDWTELEM *b0, IDWTELEM *b1, IDWTELEM *b2, IDWTELEM *b3, IDWTELEM *b4, IDWTELEM *b5, int width);
2507 void ff_snow_inner_add_yblock_sse2(const uint8_t *obmc, const int obmc_stride, uint8_t * * block, int b_w, int b_h,
2508 int src_x, int src_y, int src_stride, slice_buffer * sb, int add, uint8_t * dst8);
2509 void ff_snow_inner_add_yblock_mmx(const uint8_t *obmc, const int obmc_stride, uint8_t * * block, int b_w, int b_h,
2510 int src_x, int src_y, int src_stride, slice_buffer * sb, int add, uint8_t * dst8);
2511
2512 2492
2513 float ff_scalarproduct_float_sse(const float *v1, const float *v2, int order); 2493 float ff_scalarproduct_float_sse(const float *v1, const float *v2, int order);
2514 2494
2515 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) 2495 void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
2516 { 2496 {