/* save cache */
x264_macroblock_cache_save( h );
- /* calculate deblock strength values (actual deblocking is done per-row along with hpel) */
- if( b_deblock )
- {
- int mvy_limit = 4 >> h->sh.b_mbaff;
- uint8_t (*bs)[4][4] = h->deblock_strength[h->mb.i_mb_y&h->sh.b_mbaff][h->mb.i_mb_x];
- x264_macroblock_cache_load_deblock( h );
- if( IS_INTRA( h->mb.type[h->mb.i_mb_xy] ) )
- memset( bs, 3, 2*4*4*sizeof(uint8_t) );
- else
- h->loopf.deblock_strength( h->mb.cache.non_zero_count, h->mb.cache.ref, h->mb.cache.mv,
- bs, mvy_limit, h->sh.i_type == SLICE_TYPE_B );
- }
-
/* accumulate mb stats */
h->stat.frame.i_mb_count[h->mb.i_type]++;
}
}
+ /* calculate deblock strength values (actual deblocking is done per-row along with hpel) */
+ if( b_deblock )
+ {
+ int mvy_limit = 4 >> h->sh.b_mbaff;
+ uint8_t (*bs)[4][4] = h->deblock_strength[h->mb.i_mb_y&h->sh.b_mbaff][h->mb.i_mb_x];
+ x264_macroblock_cache_load_deblock( h );
+ if( IS_INTRA( h->mb.type[h->mb.i_mb_xy] ) )
+ memset( bs, 3, 2*4*4*sizeof(uint8_t) );
+ else
+ h->loopf.deblock_strength( h->mb.cache.non_zero_count, h->mb.cache.ref, h->mb.cache.mv,
+ bs, mvy_limit, h->sh.i_type == SLICE_TYPE_B );
+ }
+
x264_ratecontrol_mb( h, mb_size );
if( h->sh.b_mbaff )