Mercurial > libavcodec.hg
comparison x86/dsputil_mmx.c @ 11485:0f0cd6b5791f libavcodec
Separate DWT from snow and dsputil
This moves the DWT functions from snow.c and dsputil.c to a file of
their own. A new struct, DWTContext, holds the function pointers
previously part of DSPContext.
author | mru |
---|---|
date | Sun, 14 Mar 2010 17:50:12 +0000 |
parents | f5ccf2e590d6 |
children | 2a4dc3c0b012 |
comparison
equal
deleted
inserted
replaced
11484:5330f17dc769 | 11485:0f0cd6b5791f |
---|---|
2892 c->h264_idct_add16intra = ff_h264_idct_add16intra_sse2; | 2892 c->h264_idct_add16intra = ff_h264_idct_add16intra_sse2; |
2893 } | 2893 } |
2894 } | 2894 } |
2895 #endif | 2895 #endif |
2896 | 2896 |
2897 #if CONFIG_SNOW_DECODER | |
2898 if(mm_flags & FF_MM_SSE2 & 0){ | |
2899 c->horizontal_compose97i = ff_snow_horizontal_compose97i_sse2; | |
2900 #if HAVE_7REGS | |
2901 c->vertical_compose97i = ff_snow_vertical_compose97i_sse2; | |
2902 #endif | |
2903 c->inner_add_yblock = ff_snow_inner_add_yblock_sse2; | |
2904 } | |
2905 else{ | |
2906 if(mm_flags & FF_MM_MMX2){ | |
2907 c->horizontal_compose97i = ff_snow_horizontal_compose97i_mmx; | |
2908 #if HAVE_7REGS | |
2909 c->vertical_compose97i = ff_snow_vertical_compose97i_mmx; | |
2910 #endif | |
2911 } | |
2912 c->inner_add_yblock = ff_snow_inner_add_yblock_mmx; | |
2913 } | |
2914 #endif | |
2915 | |
2916 if(mm_flags & FF_MM_3DNOW){ | 2897 if(mm_flags & FF_MM_3DNOW){ |
2917 c->vorbis_inverse_coupling = vorbis_inverse_coupling_3dnow; | 2898 c->vorbis_inverse_coupling = vorbis_inverse_coupling_3dnow; |
2918 c->vector_fmul = vector_fmul_3dnow; | 2899 c->vector_fmul = vector_fmul_3dnow; |
2919 if(!(avctx->flags & CODEC_FLAG_BITEXACT)){ | 2900 if(!(avctx->flags & CODEC_FLAG_BITEXACT)){ |
2920 c->float_to_int16 = float_to_int16_3dnow; | 2901 c->float_to_int16 = float_to_int16_3dnow; |