Commit da04312f authored by Paul Wilkins's avatar Paul Wilkins
Browse files

Minor tweak to implicit segmentation experiment.

This minor tweak makes segment 0 neutral and used by
key frames and also extends beyond 4 segments.

Change-Id: Ife4744602aba66ac9432746db3113cc5cd88a482
parent 31ee193a
......@@ -99,7 +99,7 @@ void vp9_implicit_segment_map_update(VP9_COMMON * cm) {
mi = mi_ptr;
// Experimental use of tx size to define implicit segmentation
for (col = 0; col < cm->mb_cols; ++col, ++mi) {
map_ptr[col] = mi->mbmi.txfm_size;
map_ptr[col] = 1 + mi->mbmi.txfm_size;
}
mi_ptr += cm->mode_info_stride;
map_ptr += cm->mb_cols;
......
......@@ -534,8 +534,8 @@ static void configure_implicit_segmentation(VP9_COMP *cpi) {
xd->update_mb_segmentation_data = 1;
// Enable use of q deltas on segments
for (i = 0; i < MAX_MB_SEGMENTS; ++i) {
// Enable use of q deltas on segments 1 and up
for (i = 1; i < MAX_MB_SEGMENTS; ++i) {
qi_delta = compute_qdelta(cpi, cpi->active_worst_quality, q_target);
vp9_set_segdata(xd, i, SEG_LVL_ALT_Q, qi_delta);
q_target *= 0.95;
......
Supports Markdown
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