Add vp10_ prefix to full_to_model_counts and fill_token_costs
Change-Id: I5e6c644fb09f7a80c88142dfdfa05cf5be260241
This commit is contained in:
Родитель
9930a00ed7
Коммит
0792748646
|
@ -2313,7 +2313,7 @@ static void update_coef_probs(VP10_COMP *cpi, vp10_writer* w) {
|
|||
vp10_copy(eob_counts_copy, cm->counts.eob_branch);
|
||||
for (i = 1; i <= cpi->common.coef_probs_update_idx; ++i) {
|
||||
for (tx_size = TX_4X4; tx_size <= max_tx_size; ++tx_size)
|
||||
full_to_model_counts(cm->counts.coef[tx_size],
|
||||
vp10_full_to_model_counts(cm->counts.coef[tx_size],
|
||||
subframe_stats->coef_counts_buf[i][tx_size]);
|
||||
vp10_copy(cm->counts.eob_branch, subframe_stats->eob_counts_buf[i]);
|
||||
vp10_partial_adapt_probs(cm, 0, 0);
|
||||
|
|
|
@ -4318,7 +4318,7 @@ static void encode_rd_sb_row(VP10_COMP *cpi,
|
|||
SUBFRAME_STATS *subframe_stats = &cpi->subframe_stats;
|
||||
|
||||
for (t = TX_4X4; t <= TX_32X32; ++t)
|
||||
full_to_model_counts(cpi->td.counts->coef[t],
|
||||
vp10_full_to_model_counts(cpi->td.counts->coef[t],
|
||||
cpi->td.rd_counts.coef_counts[t]);
|
||||
vp10_partial_adapt_probs(cm, mi_row, mi_col);
|
||||
++cm->coef_probs_update_idx;
|
||||
|
@ -4328,7 +4328,7 @@ static void encode_rd_sb_row(VP10_COMP *cpi,
|
|||
cpi->td.rd_counts.coef_counts);
|
||||
vp10_copy(subframe_stats->eob_counts_buf[cm->coef_probs_update_idx],
|
||||
cm->counts.eob_branch);
|
||||
fill_token_costs(x->token_costs, cm->fc->coef_probs);
|
||||
vp10_fill_token_costs(x->token_costs, cm->fc->coef_probs);
|
||||
}
|
||||
}
|
||||
#endif // CONFIG_ENTROPY
|
||||
|
|
|
@ -3406,13 +3406,9 @@ static void full_to_model_count(unsigned int *model_count,
|
|||
model_count[EOB_MODEL_TOKEN] = full_count[EOB_TOKEN];
|
||||
}
|
||||
|
||||
#if CONFIG_ENTROPY
|
||||
void full_to_model_counts(vp10_coeff_count_model *model_count,
|
||||
|
||||
void vp10_full_to_model_counts(vp10_coeff_count_model *model_count,
|
||||
vp10_coeff_count *full_count) {
|
||||
#else
|
||||
static void full_to_model_counts(vp10_coeff_count_model *model_count,
|
||||
vp10_coeff_count *full_count) {
|
||||
#endif // CONFIG_ENTROPY
|
||||
int i, j, k, l;
|
||||
|
||||
for (i = 0; i < PLANE_TYPES; ++i)
|
||||
|
@ -4403,7 +4399,7 @@ static void encode_frame_to_data_rate(VP10_COMP *cpi,
|
|||
vp10_update_reference_frames(cpi);
|
||||
|
||||
for (t = TX_4X4; t <= TX_32X32; t++)
|
||||
full_to_model_counts(cpi->td.counts->coef[t],
|
||||
vp10_full_to_model_counts(cpi->td.counts->coef[t],
|
||||
cpi->td.rd_counts.coef_counts[t]);
|
||||
|
||||
if (cm->refresh_frame_context == REFRESH_FRAME_CONTEXT_BACKWARD) {
|
||||
|
|
|
@ -630,10 +630,8 @@ int vp10_set_size_literal(VP10_COMP *cpi, unsigned int width,
|
|||
|
||||
int vp10_get_quantizer(struct VP10_COMP *cpi);
|
||||
|
||||
#if CONFIG_ENTROPY
|
||||
void full_to_model_counts(vp10_coeff_count_model *model_count,
|
||||
void vp10_full_to_model_counts(vp10_coeff_count_model *model_count,
|
||||
vp10_coeff_count *full_count);
|
||||
#endif // CONFIG_ENTROPY
|
||||
|
||||
static INLINE int frame_is_kf_gf_arf(const VP10_COMP *cpi) {
|
||||
return frame_is_intra_only(&cpi->common) ||
|
||||
|
|
|
@ -152,13 +152,8 @@ static void fill_mode_costs(VP10_COMP *cpi) {
|
|||
#endif // CONFIG_EXT_INTRA
|
||||
}
|
||||
|
||||
#if CONFIG_ENTROPY
|
||||
void fill_token_costs(vp10_coeff_cost *c,
|
||||
void vp10_fill_token_costs(vp10_coeff_cost *c,
|
||||
vp10_coeff_probs_model (*p)[PLANE_TYPES]) {
|
||||
#else
|
||||
static void fill_token_costs(vp10_coeff_cost *c,
|
||||
vp10_coeff_probs_model (*p)[PLANE_TYPES]) {
|
||||
#endif // CONFIG_ENTROPY
|
||||
int i, j, k, l;
|
||||
TX_SIZE t;
|
||||
for (t = TX_4X4; t <= TX_32X32; ++t)
|
||||
|
@ -397,7 +392,7 @@ void vp10_initialize_rd_consts(VP10_COMP *cpi) {
|
|||
#endif
|
||||
}
|
||||
if (cpi->oxcf.pass != 1) {
|
||||
fill_token_costs(x->token_costs, cm->fc->coef_probs);
|
||||
vp10_fill_token_costs(x->token_costs, cm->fc->coef_probs);
|
||||
|
||||
if (cpi->sf.partition_search_type != VAR_BASED_PARTITION ||
|
||||
cm->frame_type == KEY_FRAME) {
|
||||
|
|
|
@ -341,10 +341,8 @@ void vp10_update_rd_thresh_fact(const VP10_COMMON *const cm,
|
|||
int (*fact)[MAX_MODES], int rd_thresh,
|
||||
int bsize, int best_mode_index);
|
||||
|
||||
#if CONFIG_ENTROPY
|
||||
void fill_token_costs(vp10_coeff_cost *c,
|
||||
void vp10_fill_token_costs(vp10_coeff_cost *c,
|
||||
vp10_coeff_probs_model (*p)[PLANE_TYPES]);
|
||||
#endif // CONFIG_ENTROPY
|
||||
|
||||
static INLINE int rd_less_than_thresh(int64_t best_rd, int thresh,
|
||||
int thresh_fact) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче