Properly set segmentation for error-resilient mode
authorYaowu Xu <yaowu@google.com>
Thu, 14 Jan 2016 01:27:17 +0000 (17:27 -0800)
committerYaowu Xu <yaowu@google.com>
Thu, 14 Jan 2016 01:27:17 +0000 (17:27 -0800)
Change-Id: I0c85b637e51dc949a4e919f10a78870f23c2ca6a

vp9/encoder/vp9_aq_complexity.c
vp9/encoder/vp9_aq_variance.c

index 30ec191..e597322 100644 (file)
@@ -51,7 +51,7 @@ void vp9_setup_in_frame_q_adj(VP9_COMP *cpi) {
   // Make SURE use of floating point in this function is safe.
   vpx_clear_system_state();
 
-  if (cm->frame_type == KEY_FRAME ||
+  if (frame_is_intra_only(cm) || cm->error_resilient_mode ||
       cpi->refresh_alt_ref_frame ||
       (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref)) {
     int segment;
index 1c99105..d8f7d07 100644 (file)
@@ -48,7 +48,7 @@ void vp9_vaq_frame_setup(VP9_COMP *cpi) {
   struct segmentation *seg = &cm->seg;
   int i;
 
-  if (cm->frame_type == KEY_FRAME ||
+  if (frame_is_intra_only(cm) || cm->error_resilient_mode ||
       cpi->refresh_alt_ref_frame ||
       (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref)) {
     vp9_enable_segmentation(seg);