ref: b70f23caec2b06fc7e71b124e0fe8802d1c19ba7
parent: d37cd9768258aa976bfd0df69a5ae9dded04a30c
author: Yaowu Xu <yaowu@google.com>
date: Wed Dec 7 08:55:58 EST 2011
Removed #if CONFIG_MULCONTEXT This commit removed the macro CONFIG_MULCONTEXT, which was used to indicate the experiment code for using separate context for altref and normal frames. This commit made the change fully merged in. Change-Id: I525f927f68e2365d37b340ef23b836a136a4f70b
--- a/configure
+++ b/configure
@@ -226,7 +226,6 @@
qimode
uvintra
newnear
- mulcontext
"
CONFIG_LIST="
external_build
--- a/vp8/common/onyxc_int.h
+++ b/vp8/common/onyxc_int.h
@@ -211,9 +211,7 @@
vp8_prob i8x8_mode_prob [VP8_UV_MODES-1];
-#if CONFIG_MULCONTEXT
FRAME_CONTEXT lfc_a; /* last alt ref entropy */
-#endif
FRAME_CONTEXT lfc; /* last frame entropy */
FRAME_CONTEXT fc; /* this frame entropy */
--- a/vp8/decoder/decodframe.c
+++ b/vp8/decoder/decodframe.c
@@ -844,10 +844,9 @@
pc->ref_frame_sign_bias[GOLDEN_FRAME] = 0;
pc->ref_frame_sign_bias[ALTREF_FRAME] = 0;
-#if CONFIG_MULCONTEXT
vpx_memcpy(&pc->lfc, &pc->fc, sizeof(pc->fc));
vpx_memcpy(&pc->lfc_a, &pc->fc, sizeof(pc->fc));
-#endif
+
#if CONFIG_NEWNEAR
vp8_init_mv_ref_counts(&pbi->common);
#endif
@@ -1236,12 +1235,10 @@
pc->refresh_alt_ref_frame = 0;
#endif
-#if CONFIG_MULCONTEXT
if(pc->refresh_alt_ref_frame)
vpx_memcpy(&pc->fc, &pc->lfc_a, sizeof(pc->fc));
else
vpx_memcpy(&pc->fc, &pc->lfc, sizeof(pc->fc));
-#endif
/* Buffer to buffer copy flags. */
pc->copy_buffer_to_gf = 0;
@@ -1450,7 +1447,6 @@
{
pc->last_kf_gf_q = pc->base_qindex;
}
-#if CONFIG_MULCONTEXT
if(pc->refresh_entropy_probs)
{
if(pc->refresh_alt_ref_frame)
@@ -1458,13 +1454,6 @@
else
vpx_memcpy(&pc->lfc, &pc->fc, sizeof(pc->fc));
}
-#else
- if (pc->refresh_entropy_probs == 0)
- {
- vpx_memcpy(&pc->fc, &pc->lfc, sizeof(pc->fc));
- pbi->independent_partitions = prev_independent_partitions;
- }
-#endif
#ifdef PACKET_TESTING
{
--- a/vp8/encoder/bitstream.c
+++ b/vp8/encoder/bitstream.c
@@ -2294,13 +2294,6 @@
vp8_clear_system_state(); //__asm emms;
- //************************************************
- // save a copy for later refresh
-#if !CONFIG_MULCONTEXT
- {
- vpx_memcpy(&cpi->common.lfc, &cpi->common.fc, sizeof(cpi->common.fc));
- }
-#endif
update_coef_probs(cpi);
#ifdef ENTROPY_STATS
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -4353,13 +4353,11 @@
resize_key_frame(cpi);
vp8_setup_key_frame(cpi);
}
-#if CONFIG_MULCONTEXT
else
{
/* setup entropy for nonkey frame */
vp8_setup_inter_frame(cpi);
}
-#endif
// transform / motion compensation build reconstruction frame
vp8_encode_frame(cpi);
@@ -5522,7 +5520,6 @@
-#if CONFIG_MULCONTEXT
if(cm->refresh_entropy_probs)
{
if(cm->refresh_alt_ref_frame)
@@ -5530,13 +5527,6 @@
else
vpx_memcpy(&cm->lfc, &cm->fc, sizeof(cm->fc));
}
-#else
- if (cm->refresh_entropy_probs == 0)
- {
- vpx_memcpy(&cm->fc, &cm->lfc, sizeof(cm->fc));
- }
-#endif
-
// if its a dropped frame honor the requests on subsequent frames
if (*size > 0)
--- a/vp8/encoder/ratectrl.c
+++ b/vp8/encoder/ratectrl.c
@@ -262,16 +262,13 @@
cpi->common.refresh_golden_frame = TRUE;
cpi->common.refresh_alt_ref_frame = TRUE;
-#if CONFIG_MULCONTEXT
vpx_memcpy(&cpi->common.lfc, &cpi->common.fc, sizeof(cpi->common.fc));
vpx_memcpy(&cpi->common.lfc_a, &cpi->common.fc, sizeof(cpi->common.fc));
-#endif
#if CONFIG_NEWNEAR
vp8_init_mv_ref_counts(&cpi->common);
#endif
}
-#if CONFIG_MULCONTEXT
void vp8_setup_inter_frame(VP8_COMP *cpi)
{
if(cpi->common.refresh_alt_ref_frame)
@@ -279,7 +276,6 @@
else
vpx_memcpy(&cpi->common.fc, &cpi->common.lfc, sizeof(cpi->common.fc));
}
-#endif
static int estimate_bits_at_q(int frame_kind, int Q, int MBs,
--
⑨