]> granicus.if.org Git - libvpx/commitdiff
removal of temporal invoke
authorJim Bankoski <jimbankoski@google.com>
Sat, 17 Nov 2012 14:11:01 +0000 (06:11 -0800)
committerJim Bankoski <jimbankoski@google.com>
Sat, 17 Nov 2012 14:11:01 +0000 (06:11 -0800)
Change-Id: I18ca713b02a5241bdb20dddcde0216467b55b596

vp9/common/rtcd_defs.sh
vp9/encoder/generic/csystemdependent.c
vp9/encoder/temporal_filter.c
vp9/encoder/x86/x86_csystemdependent.c

index b9514befbff7be4360155e545f7c7b3d81d4d4a0..813e93af30edda6eaffff16d2d8290bcf11eed37 100644 (file)
@@ -501,8 +501,13 @@ specialize vp9_refining_search_sad sse3
 vp9_refining_search_sad_sse3=vp9_refining_search_sadx4
 
 prototype int vp9_diamond_search_sad "struct macroblock *x, struct block *b, struct blockd *d, union int_mv *ref_mv, union int_mv *best_mv, int search_param, int sad_per_bit, int *num00, struct variance_vtable *fn_ptr, DEC_MVCOSTS, union int_mv *center_mv"
+specialize vp9_diamond_search_sad sse3
 vp9_diamond_search_sad_sse3=vp9_diamond_search_sadx4
 
+prototype void vp9_temporal_filter_apply "unsigned char *frame1, unsigned int stride, unsigned char *frame2, unsigned int block_size, int strength, int filter_weight, unsigned int *accumulator, unsigned short *count"
+specialize vp9_temporal_filter_apply sse2
+
+
 fi
 # end encoder functions
 
index 05b1d61171f486addf926a57d0aca0b498732920..d49b7d98176d3758a54ed891687bbec52838704c 100644 (file)
@@ -27,7 +27,6 @@ extern void vp9_yv12_copy_partial_frame(YV12_BUFFER_CONFIG *src_ybc,
 void vp9_cmachine_specific_config(VP9_COMP *cpi) {
 #if CONFIG_RUNTIME_CPU_DETECT
   cpi->rtcd.common                    = &cpi->common.rtcd;
-  cpi->rtcd.temporal.apply                 = vp9_temporal_filter_apply_c;
 #endif
 
   vp9_yv12_copy_partial_frame_ptr = vp9_yv12_copy_partial_frame;
index e2695dee715c01366096097d93cef98345414dce..90037f92a7f24a21290c31cc23dcd1ee12c47fdd 100644 (file)
@@ -317,35 +317,17 @@ static void temporal_filter_iterate_c
            predictor);
 
           // Apply the filter (YUV)
-          TEMPORAL_INVOKE(&cpi->rtcd.temporal, apply)
-          (f->y_buffer + mb_y_offset,
-           f->y_stride,
-           predictor,
-           16,
-           strength,
-           filter_weight,
-           accumulator,
-           count);
-
-          TEMPORAL_INVOKE(&cpi->rtcd.temporal, apply)
-          (f->u_buffer + mb_uv_offset,
-           f->uv_stride,
-           predictor + 256,
-           8,
-           strength,
-           filter_weight,
-           accumulator + 256,
-           count + 256);
-
-          TEMPORAL_INVOKE(&cpi->rtcd.temporal, apply)
-          (f->v_buffer + mb_uv_offset,
-           f->uv_stride,
-           predictor + 320,
-           8,
-           strength,
-           filter_weight,
-           accumulator + 320,
-           count + 320);
+          vp9_temporal_filter_apply(f->y_buffer + mb_y_offset, f->y_stride,
+                                    predictor, 16, strength, filter_weight,
+                                    accumulator, count);
+
+          vp9_temporal_filter_apply(f->u_buffer + mb_uv_offset, f->uv_stride,
+                                    predictor + 256, 8, strength, filter_weight,
+                                    accumulator + 256, count + 256);
+
+          vp9_temporal_filter_apply(f->v_buffer + mb_uv_offset, f->uv_stride,
+                                    predictor + 320, 8, strength, filter_weight,
+                                    accumulator + 320, count + 320);
         }
       }
 
index 0176672fcd3e3b0894f3669ee4e7d3de85299718..38ede74f216af73b723025a687a32a75c06cd38b 100644 (file)
@@ -90,8 +90,6 @@ void vp9_arch_x86_encoder_init(VP9_COMP *cpi) {
   /* Override default functions with fastest ones for this CPU. */
 #if HAVE_SSE2
   if (flags & HAS_SSE2) {
-    cpi->rtcd.temporal.apply                 = vp9_temporal_filter_apply_sse2;
-
   }
 #endif