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
This commit is contained in:
Paul Wilkins 2013-04-24 16:05:02 +01:00
parent 31ee193a9c
commit da04312f79
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;