[FFmpeg-cvslog] r19492 - in trunk/libavcodec: arm/dsputil_arm.c arm/dsputil_neon.c dsputil.c ppc/dsputil_ppc.c x86/dsputil_mmx.c

diego subversion
Thu Jul 23 00:27:11 CEST 2009


Author: diego
Date: Thu Jul 23 00:27:10 2009
New Revision: 19492

Log:
Do not redundantly check for both CONFIG_THEORA_DECODER and CONFIG_VP3_DECODER.
The Theora decoder depends on the VP3 decoder.

Modified:
   trunk/libavcodec/arm/dsputil_arm.c
   trunk/libavcodec/arm/dsputil_neon.c
   trunk/libavcodec/dsputil.c
   trunk/libavcodec/ppc/dsputil_ppc.c
   trunk/libavcodec/x86/dsputil_mmx.c

Modified: trunk/libavcodec/arm/dsputil_arm.c
==============================================================================
--- trunk/libavcodec/arm/dsputil_arm.c	Wed Jul 22 23:36:50 2009	(r19491)
+++ trunk/libavcodec/arm/dsputil_arm.c	Thu Jul 23 00:27:10 2009	(r19492)
@@ -184,7 +184,7 @@ void dsputil_init_arm(DSPContext* c, AVC
             c->idct_add= ff_simple_idct_add_neon;
             c->idct    = ff_simple_idct_neon;
             c->idct_permutation_type = FF_PARTTRANS_IDCT_PERM;
-        } else if ((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER || CONFIG_THEORA_DECODER) &&
+        } else if ((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER) &&
                    idct_algo==FF_IDCT_VP3){
             c->idct_put= ff_vp3_idct_put_neon;
             c->idct_add= ff_vp3_idct_add_neon;

Modified: trunk/libavcodec/arm/dsputil_neon.c
==============================================================================
--- trunk/libavcodec/arm/dsputil_neon.c	Wed Jul 22 23:36:50 2009	(r19491)
+++ trunk/libavcodec/arm/dsputil_neon.c	Thu Jul 23 00:27:10 2009	(r19492)
@@ -258,7 +258,7 @@ void ff_dsputil_init_neon(DSPContext *c,
     c->h264_idct_add16intra = ff_h264_idct_add16intra_neon;
     c->h264_idct_add8       = ff_h264_idct_add8_neon;
 
-    if (CONFIG_VP3_DECODER || CONFIG_THEORA_DECODER) {
+    if (CONFIG_VP3_DECODER) {
         c->vp3_v_loop_filter = ff_vp3_v_loop_filter_neon;
         c->vp3_h_loop_filter = ff_vp3_h_loop_filter_neon;
     }

Modified: trunk/libavcodec/dsputil.c
==============================================================================
--- trunk/libavcodec/dsputil.c	Wed Jul 22 23:36:50 2009	(r19491)
+++ trunk/libavcodec/dsputil.c	Thu Jul 23 00:27:10 2009	(r19492)
@@ -4363,7 +4363,7 @@ void dsputil_init(DSPContext* c, AVCodec
             c->idct_add= ff_jref_idct_add;
             c->idct    = j_rev_dct;
             c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM;
-        }else if((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER || CONFIG_THEORA_DECODER ) &&
+        }else if((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER ) &&
                 avctx->idct_algo==FF_IDCT_VP3){
             c->idct_put= ff_vp3_idct_put_c;
             c->idct_add= ff_vp3_idct_add_c;
@@ -4636,7 +4636,7 @@ void dsputil_init(DSPContext* c, AVCodec
         c->h263_v_loop_filter= h263_v_loop_filter_c;
     }
 
-    if (CONFIG_VP3_DECODER || CONFIG_THEORA_DECODER) {
+    if (CONFIG_VP3_DECODER) {
         c->vp3_h_loop_filter= ff_vp3_h_loop_filter_c;
         c->vp3_v_loop_filter= ff_vp3_v_loop_filter_c;
     }

Modified: trunk/libavcodec/ppc/dsputil_ppc.c
==============================================================================
--- trunk/libavcodec/ppc/dsputil_ppc.c	Wed Jul 22 23:36:50 2009	(r19491)
+++ trunk/libavcodec/ppc/dsputil_ppc.c	Thu Jul 23 00:27:10 2009	(r19492)
@@ -287,7 +287,7 @@ void dsputil_init_ppc(DSPContext* c, AVC
                 c->idct_put = idct_put_altivec;
                 c->idct_add = idct_add_altivec;
                 c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM;
-            }else if((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER || CONFIG_THEORA_DECODER) &&
+            }else if((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER) &&
                      avctx->idct_algo==FF_IDCT_VP3){
                 c->idct_put = ff_vp3_idct_put_altivec;
                 c->idct_add = ff_vp3_idct_add_altivec;

Modified: trunk/libavcodec/x86/dsputil_mmx.c
==============================================================================
--- trunk/libavcodec/x86/dsputil_mmx.c	Wed Jul 22 23:36:50 2009	(r19491)
+++ trunk/libavcodec/x86/dsputil_mmx.c	Thu Jul 23 00:27:10 2009	(r19492)
@@ -2655,7 +2655,7 @@ void dsputil_init_mmx(DSPContext* c, AVC
                 }
                 c->idct_permutation_type= FF_LIBMPEG2_IDCT_PERM;
 #endif
-            }else if((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER || CONFIG_THEORA_DECODER) &&
+            }else if((CONFIG_VP3_DECODER || CONFIG_VP5_DECODER || CONFIG_VP6_DECODER) &&
                      idct_algo==FF_IDCT_VP3){
                 if(mm_flags & FF_MM_SSE2){
                     c->idct_put= ff_vp3_idct_put_sse2;
@@ -2777,7 +2777,7 @@ void dsputil_init_mmx(DSPContext* c, AVC
                 c->avg_pixels_tab[0][3] = avg_pixels16_xy2_mmx2;
                 c->avg_pixels_tab[1][3] = avg_pixels8_xy2_mmx2;
 
-                if (CONFIG_VP3_DECODER || CONFIG_THEORA_DECODER) {
+                if (CONFIG_VP3_DECODER) {
                     c->vp3_v_loop_filter= ff_vp3_v_loop_filter_mmx2;
                     c->vp3_h_loop_filter= ff_vp3_h_loop_filter_mmx2;
                 }



More information about the ffmpeg-cvslog mailing list