Commit bd49603b authored by Yaowu Xu's avatar Yaowu Xu Committed by On2 (Google) Code Review
Browse files

Merge "Added intra mode probabilites into coding_context" into experimental

parents bb4ed8d8 31afc770
......@@ -90,6 +90,13 @@ typedef struct
vp8_prob coef_probs_8x8[BLOCK_TYPES]
vp8_prob ymode_prob [VP8_YMODES-1]; /* interframe intra mode probs */
vp8_prob uv_mode_prob [VP8_YMODES][VP8_UV_MODES-1];
vp8_prob uv_mode_prob [VP8_UV_MODES-1];
int mv_ref_ct[6][4][2];
int mode_context[6][4];
int mv_ref_ct_a[6][4][2];
......@@ -155,6 +155,9 @@ void vp8_save_coding_context(VP8_COMP *cpi)
vp8_copy( cc->mv_ref_ct_a, cm->mv_ref_ct_a );
vp8_copy( cc->mode_context_a, cm->mode_context_a );
vp8_copy( cc->ymode_prob, cm->fc.ymode_prob );
vp8_copy( cc->uv_mode_prob, cm->fc.uv_mode_prob );
// Stats
vp8_copy(cc->y_modes, y_modes);
......@@ -201,6 +204,9 @@ void vp8_restore_coding_context(VP8_COMP *cpi)
vp8_copy( cm->mv_ref_ct_a, cc->mv_ref_ct_a );
vp8_copy( cm->mode_context_a, cc->mode_context_a );
vp8_copy( cm->fc.ymode_prob, cc->ymode_prob);
vp8_copy( cm->fc.uv_mode_prob, cc->uv_mode_prob);
// Stats
vp8_copy(y_modes, cc->y_modes);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment