res->i_sad_i16x16 = i_sad;
}
}
+ /* cavlc mb type prefix */
+ if( h->sh.i_type == SLICE_TYPE_B )
+ res->i_sad_i16x16 += res->i_lambda * i_mb_b_cost_table[I_16x16];
/* 4x4 prediction selection */
if( flags & X264_ANALYSE_I4x4 )
x264_mb_pred_mode4x4_fix[res->i_predict4x4[x][y]];
}
res->i_sad_i4x4 += res->i_lambda * 24; /* from JVT (SATD0) */
+ if( h->sh.i_type == SLICE_TYPE_B )
+ res->i_sad_i4x4 += res->i_lambda * i_mb_b_cost_table[I_4x4];
}
}
/* best intra mode */
x264_mb_analyse_intra( h, &analysis );
- /* mb type cost */
- analysis.i_sad_i16x16 += analysis.i_lambda * i_mb_b_cost_table[I_16x16];
- analysis.i_sad_i4x4 += analysis.i_lambda * i_mb_b_cost_table[I_4x4];
if( analysis.i_sad_i16x16 >= 0 && analysis.i_sad_i16x16 < i_cost )
{