Port active map / cyclic refresh fixes to vp10.
This fixes VP10/ActiveMapRefreshTest.Test/*. Bring commits575e81f
and3d6b8a6
to aom/vp10. These changes predate the creation of the active map cyclic refresh test. Change-Id: I3559b6933ffa5649926a4b214e45ed0fae523a25
This commit is contained in:
Родитель
e2511e158b
Коммит
efefdad7cf
|
@ -262,9 +262,17 @@ void vp10_cyclic_refresh_update_segment(VP10_COMP *const cpi,
|
||||||
// don't update the map for them. For cases where motion is non-zero or
|
// don't update the map for them. For cases where motion is non-zero or
|
||||||
// the reference frame isn't the previous frame, the previous value in
|
// the reference frame isn't the previous frame, the previous value in
|
||||||
// the map for this spatial location is not entirely correct.
|
// the map for this spatial location is not entirely correct.
|
||||||
if (!is_inter_block(mbmi) || !skip)
|
if ((!is_inter_block(mbmi) || !skip) &&
|
||||||
|
mbmi->segment_id <= CR_SEGMENT_ID_BOOST2) {
|
||||||
cr->last_coded_q_map[map_offset] = clamp(
|
cr->last_coded_q_map[map_offset] = clamp(
|
||||||
cm->base_qindex + cr->qindex_delta[mbmi->segment_id], 0, MAXQ);
|
cm->base_qindex + cr->qindex_delta[mbmi->segment_id], 0, MAXQ);
|
||||||
|
} else if (is_inter_block(mbmi) && skip &&
|
||||||
|
mbmi->segment_id <= CR_SEGMENT_ID_BOOST2) {
|
||||||
|
cr->last_coded_q_map[map_offset] =
|
||||||
|
VPXMIN(clamp(cm->base_qindex + cr->qindex_delta[mbmi->segment_id],
|
||||||
|
0, MAXQ),
|
||||||
|
cr->last_coded_q_map[map_offset]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче