Mercurial > libavcodec.hg
comparison x86/dsputil_mmx.c @ 9975:d6d7e8d4a04d libavcodec
Do not redundantly check for both CONFIG_THEORA_DECODER and CONFIG_VP3_DECODER.
The Theora decoder depends on the VP3 decoder.
author | diego |
---|---|
date | Wed, 22 Jul 2009 22:27:10 +0000 |
parents | 6972b493f41f |
children | 3141f69e3905 |
comparison
equal
deleted
inserted
replaced
9974:2ccd77e59b0e | 9975:d6d7e8d4a04d |
---|---|
2653 c->idct_add= ff_libmpeg2mmx_idct_add; | 2653 c->idct_add= ff_libmpeg2mmx_idct_add; |
2654 c->idct = ff_mmx_idct; | 2654 c->idct = ff_mmx_idct; |
2655 } | 2655 } |
2656 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; | 2656 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM; |
2657 #endif | 2657 #endif |
2658 }else if((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER || CONFIG_THEORA_DECODER) && | 2658 }else if((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER) && |
2659 idct_algo==FF_IDCT_VP3){ | 2659 idct_algo==FF_IDCT_VP3){ |
2660 if(mm_flags & FF_MM_SSE2){ | 2660 if(mm_flags & FF_MM_SSE2){ |
2661 c->idct_put= ff_vp3_idct_put_sse2; | 2661 c->idct_put= ff_vp3_idct_put_sse2; |
2662 c->idct_add= ff_vp3_idct_add_sse2; | 2662 c->idct_add= ff_vp3_idct_add_sse2; |
2663 c->idct = ff_vp3_idct_sse2; | 2663 c->idct = ff_vp3_idct_sse2; |
2775 c->put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x2_mmx2; | 2775 c->put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x2_mmx2; |
2776 c->put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y2_mmx2; | 2776 c->put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y2_mmx2; |
2777 c->avg_pixels_tab[0][3] = avg_pixels16_xy2_mmx2; | 2777 c->avg_pixels_tab[0][3] = avg_pixels16_xy2_mmx2; |
2778 c->avg_pixels_tab[1][3] = avg_pixels8_xy2_mmx2; | 2778 c->avg_pixels_tab[1][3] = avg_pixels8_xy2_mmx2; |
2779 | 2779 |
2780 if (CONFIG_VP3_DECODER || CONFIG_THEORA_DECODER) { | 2780 if (CONFIG_VP3_DECODER) { |
2781 c->vp3_v_loop_filter= ff_vp3_v_loop_filter_mmx2; | 2781 c->vp3_v_loop_filter= ff_vp3_v_loop_filter_mmx2; |
2782 c->vp3_h_loop_filter= ff_vp3_h_loop_filter_mmx2; | 2782 c->vp3_h_loop_filter= ff_vp3_h_loop_filter_mmx2; |
2783 } | 2783 } |
2784 } | 2784 } |
2785 | 2785 |