Commit 404d92e7 authored by Zoe Liu's avatar Zoe Liu

Remove unused variables for ext-skip

The removed variable was once defined for evaluating the use of
distance-weighted compound prediction for the new skip mode, under
the scenario when all reference frames are forward predicted.

Change-Id: I114daa66d911ec8bb8ef220f7c519566037429b1
parent 5641635f
......@@ -671,10 +671,6 @@ typedef struct macroblockd {
#if CONFIG_JNT_COMP
JNT_COMP_PARAMS jcp_param;
#endif
#if CONFIG_EXT_SKIP
int all_one_sided_refs;
#endif // CONFIG_EXT_SKIP
} MACROBLOCKD;
static INLINE int get_bitdepth_data_path_index(const MACROBLOCKD *xd) {
......
......@@ -3043,18 +3043,6 @@ static size_t read_uncompressed_header(AV1Decoder *pbi,
#if CONFIG_EXT_SKIP
av1_setup_skip_mode_allowed(cm);
cm->skip_mode_flag = cm->is_skip_mode_allowed ? aom_rb_read_bit(rb) : 0;
xd->all_one_sided_refs =
frame_is_intra_only(cm) ? 0 : av1_refs_are_one_sided(cm);
#if 0
printf(
"DECODER: Frame=%d, frame_offset=%d, show_frame=%d, "
"show_existing_frame=%d, is_skip_mode_allowed=%d, "
"ref_frame_idx=(%d,%d), reference_mode=%d, "
"skip_mode_flag=%d\n\n",
cm->current_video_frame, cm->frame_offset, cm->show_frame,
cm->show_existing_frame, cm->is_skip_mode_allowed, cm->ref_frame_idx_0,
cm->ref_frame_idx_1, cm->reference_mode, cm->skip_mode_flag);
#endif // 0
#endif // CONFIG_EXT_SKIP
read_compound_tools(cm, rb);
......
......@@ -3829,18 +3829,6 @@ static void encode_frame_internal(AV1_COMP *cpi) {
#if CONFIG_EXT_SKIP
cm->skip_mode_flag = check_skip_mode_enabled(cpi);
xd->all_one_sided_refs = cpi->all_one_sided_refs;
#if 0
printf(
"\nENCODER: Frame=%d, frame_offset=%d, show_frame=%d, "
"show_existing_frame=%d, is_skip_mode_allowed=%d, "
"ref_frame_idx=(%d,%d), reference_mode=%d, "
"skip_mode_flag=%d, lag_in_frames=%d\n",
cm->current_video_frame, cm->frame_offset, cm->show_frame,
cm->show_existing_frame, cm->is_skip_mode_allowed, cm->ref_frame_idx_0,
cm->ref_frame_idx_1, cm->reference_mode, cm->skip_mode_flag,
cpi->oxcf.lag_in_frames);
#endif // 0
#endif // CONFIG_EXT_SKIP
{
......
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