Moved skip_true_count to macroblock struct
Change-Id: Ie9a26be7c9baa54a0e43a63ed6c77f2746477a9c
This commit is contained in:
parent
7ee44eef13
commit
03c0af8747
@ -539,7 +539,7 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
|
||||
{
|
||||
int total_mbs = pc->mb_rows * pc->mb_cols;
|
||||
|
||||
prob_skip_false = (total_mbs - cpi->skip_true_count ) * 256 / total_mbs;
|
||||
prob_skip_false = (total_mbs - cpi->mb.skip_true_count ) * 256 / total_mbs;
|
||||
|
||||
if (prob_skip_false <= 1)
|
||||
prob_skip_false = 1;
|
||||
@ -730,7 +730,7 @@ static void write_kfmodes(VP8_COMP *cpi)
|
||||
{
|
||||
int total_mbs = c->mb_rows * c->mb_cols;
|
||||
|
||||
prob_skip_false = (total_mbs - cpi->skip_true_count ) * 256 / total_mbs;
|
||||
prob_skip_false = (total_mbs - cpi->mb.skip_true_count ) * 256 / total_mbs;
|
||||
|
||||
if (prob_skip_false <= 1)
|
||||
prob_skip_false = 1;
|
||||
|
@ -127,6 +127,7 @@ typedef struct macroblock
|
||||
unsigned char need_to_clamp_best_mvs;
|
||||
#endif
|
||||
|
||||
int skip_true_count;
|
||||
unsigned int coef_counts [BLOCK_TYPES] [COEF_BANDS] [PREV_COEF_CONTEXTS] [MAX_ENTROPY_TOKENS];
|
||||
|
||||
|
||||
|
@ -751,7 +751,7 @@ void vp8_encode_frame(VP8_COMP *cpi)
|
||||
|
||||
cpi->prediction_error = 0;
|
||||
cpi->intra_error = 0;
|
||||
cpi->skip_true_count = 0;
|
||||
cpi->mb.skip_true_count = 0;
|
||||
cpi->tok_count = 0;
|
||||
|
||||
#if 0
|
||||
@ -869,6 +869,8 @@ void vp8_encode_frame(VP8_COMP *cpi)
|
||||
{
|
||||
totalrate += cpi->mb_row_ei[i].totalrate;
|
||||
|
||||
cpi->mb.skip_true_count += cpi->mb_row_ei[i].mb.skip_true_count;
|
||||
|
||||
/* add up counts for each thread */
|
||||
sum_coef_counts(x, &cpi->mb_row_ei[i].mb);
|
||||
}
|
||||
@ -1356,7 +1358,7 @@ int vp8cx_encode_inter_macroblock
|
||||
|
||||
if (cpi->common.mb_no_coeff_skip)
|
||||
{
|
||||
cpi->skip_true_count ++;
|
||||
x->skip_true_count ++;
|
||||
vp8_fix_contexts(xd);
|
||||
}
|
||||
else
|
||||
|
@ -473,6 +473,7 @@ void vp8cx_init_mbrthread_data(VP8_COMP *cpi,
|
||||
mbd->fullpixel_mask = 0xfffffff8;
|
||||
|
||||
vp8_zero(mb->coef_counts);
|
||||
mb->skip_true_count = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -518,7 +518,6 @@ typedef struct VP8_COMP
|
||||
int lf_zeromv_pct;
|
||||
int gf_bad_count;
|
||||
int gf_update_recommended;
|
||||
int skip_true_count;
|
||||
|
||||
unsigned char *segmentation_map;
|
||||
signed char segment_feature_data[MB_LVL_MAX][MAX_MB_SEGMENTS];
|
||||
|
@ -396,7 +396,7 @@ void vp8_tokenize_mb(VP8_COMP *cpi, MACROBLOCK *x, TOKENEXTRA **t)
|
||||
else
|
||||
{
|
||||
vp8_fix_contexts(xd);
|
||||
cpi->skip_true_count++;
|
||||
x->skip_true_count++;
|
||||
}
|
||||
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user