View Single Post
Old 10th September 2008, 15:10   #1021  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
r967:
Code:
@@ -414,9 +426,14 @@ no_b_frames:
     {
         int pthresh = X264_MAX(INTER_THRESH - P_SENS_BIAS * (j-1), INTER_THRESH/10);
         int pcost = x264_slicetype_frame_cost( h, &a, frames, 0, j+1, j+1, 1 );
-//      fprintf( stderr, "frm%d+%d: %d <=> %d, I:%d/%d \n",
-//               frames[0]->i_frame, j-1, pthresh, pcost/i_mb_count,
-//               frames[j+1]->i_intra_mbs[j+1], i_mb_count );
+/*        if( i_mb_count )
+            fprintf( stderr, "frm%d+%d: %d <=> %d, I:%d/%d \n",
+                    frames[0]->i_frame, j-1, pthresh, pcost/i_mb_count,
+                    frames[j+1]->i_intra_mbs[j+1], i_mb_count );
+        else
+            fprintf( stderr, "frm%d+%d: %d <=> %d, I:%d/%d \n",
+                    frames[0]->i_frame, j-1, pthresh, pcost,
+                    frames[j+1]->i_intra_mbs[j+1], i_mb_count ); */
         if( pcost > pthresh*i_mb_count || frames[j+1]->i_intra_mbs[j+1] > i_mb_count/3 )
         {
             frames[j]->i_type = X264_TYPE_P;
change in commented out fprintf()s for (assuming) debugging purposes causes the patch rejection
fix: x264_new_bframe_decision_04.7_r967.diff
just removes the newly commented out section, since that's what it's always done.
__________________
custom x264 builds & patches | F@H | My Specs

Last edited by kemuri-_9; 10th September 2008 at 15:12.
kemuri-_9 is offline   Reply With Quote