[xiph-commits] r12877 - trunk/theora/lib/dec

tterribe at svn.xiph.org tterribe at svn.xiph.org
Mon Apr 16 07:10:08 PDT 2007


Author: tterribe
Date: 2007-04-16 07:10:07 -0700 (Mon, 16 Apr 2007)
New Revision: 12877

Modified:
   trunk/theora/lib/dec/decode.c
   trunk/theora/lib/dec/state.c
Log:
Forward port of r12876.


Modified: trunk/theora/lib/dec/decode.c
===================================================================
--- trunk/theora/lib/dec/decode.c	2007-04-16 14:09:29 UTC (rev 12876)
+++ trunk/theora/lib/dec/decode.c	2007-04-16 14:10:07 UTC (rev 12877)
@@ -1379,7 +1379,7 @@
   memset(_pipe->pred_last,0,sizeof(_pipe->pred_last));
   /*Initialize the bounding value array for the loop filter.*/
   _pipe->loop_filter=!oc_state_loop_filter_init(&_dec->state,
-   _pipe->bounding_values+256);
+   _pipe->bounding_values);
   /*Initialize any buffers needed for post-processing.
     We also save the current post-processing level, to guard against the user
      changing it from a callback.*/
@@ -1938,7 +1938,7 @@
     Only proceed if we have a non-empty packet.*/
   if(_op->bytes!=0){
     oc_dec_pipeline_state pipe;
-    th_ycbcr_buffer   stripe_buf;
+    th_ycbcr_buffer       stripe_buf;
     int                   stripe_fragy;
     int                   refi;
     int                   pli;

Modified: trunk/theora/lib/dec/state.c
===================================================================
--- trunk/theora/lib/dec/state.c	2007-04-16 14:09:29 UTC (rev 12876)
+++ trunk/theora/lib/dec/state.c	2007-04-16 14:10:07 UTC (rev 12877)
@@ -1044,19 +1044,6 @@
   }
 }
 
-/*Apply the complete loop filter to the given frame.*/
-void oc_state_loop_filter(oc_theora_state *_state,int _frame){
-  int bounding_values[512];
-  int framei;
-  int pli;
-  framei=_state->ref_frame_idx[_frame];
-  if(oc_state_loop_filter_init(_state,bounding_values))return;
-  for(pli=0;pli<3;pli++){
-    oc_state_loop_filter_frag_rows(_state,bounding_values,
-     framei,pli,0,_state->fplanes[pli].nvfrags);
-  }
-}
-
 #if defined(OC_DUMP_IMAGES)
 int oc_state_dump_frame(const oc_theora_state *_state,int _frame,
  const char *_suf){



More information about the commits mailing list