]> granicus.if.org Git - libvpx/commitdiff
Disable background update on non-base layer frames
authorAdrian Grange <agrange@google.com>
Wed, 5 Dec 2012 21:24:52 +0000 (13:24 -0800)
committerAdrian Grange <agrange@google.com>
Wed, 5 Dec 2012 21:24:52 +0000 (13:24 -0800)
Multi-threaded code was not updated to disable background
refresh for non base-layer frames at the time it was
disabled in the main C-code.

Change-Id: Id6cc376130b7def046942121cfd0526b4f0a71d4

vp8/encoder/encodeframe.c
vp8/encoder/ethreading.c

index d91f1c6966567fa3d3e85daa233780593179e201..219f7f3b77ba63b136a387e0f77c5fd8903be313 100644 (file)
@@ -529,7 +529,8 @@ void encode_mb_row(VP8_COMP *cpi,
              * segmentation map
              */
             if ((cpi->current_layer == 0) &&
-                (cpi->cyclic_refresh_mode_enabled && xd->segmentation_enabled))
+                (cpi->cyclic_refresh_mode_enabled &&
+                 xd->segmentation_enabled))
             {
                 cpi->segmentation_map[map_index+mb_col] = xd->mode_info_context->mbmi.segment_id;
 
index 071f254ee6bf8dc4d079f8cce861f33ce30f674e..ea636f76ac8a40092afdefe816cbc0319c7ec85d 100644 (file)
@@ -214,7 +214,9 @@ THREAD_FUNCTION thread_encoding_proc(void *p_data)
                          * vp8cx_encode_inter_macroblock()) back into the
                          * global segmentation map
                          */
-                        if (cpi->cyclic_refresh_mode_enabled && xd->segmentation_enabled)
+                        if ((cpi->current_layer == 0) &&
+                            (cpi->cyclic_refresh_mode_enabled &&
+                             xd->segmentation_enabled))
                         {
                             const MB_MODE_INFO * mbmi = &xd->mode_info_context->mbmi;
                             cpi->segmentation_map[map_index + mb_col] = mbmi->segment_id;