]> granicus.if.org Git - libvpx/commitdiff
Skip loop filter operation in show_existing_frame mode
authorJingning Han <jingning@google.com>
Tue, 21 Aug 2018 17:48:47 +0000 (10:48 -0700)
committerJingning Han <jingning@google.com>
Tue, 21 Aug 2018 17:50:03 +0000 (10:50 -0700)
Skip the loop filtering for frame coding in show_existing_frame
mode. This matches the decoder operation for show_existing_frame
mode.

Change-Id: I96f275cf5384eb5fe8c0404ec4142cf5b580ac16

vp9/encoder/vp9_encoder.c

index c1a33ec4edd8262cb0d2cd5be8a71d09d999c63c..0151e1ba17d61d64fc9f5a20805f1b255d891c9c 100644 (file)
@@ -3251,6 +3251,12 @@ static void loopfilter_frame(VP9_COMP *cpi, VP9_COMMON *cm) {
       cpi->svc.temporal_layering_mode == VP9E_TEMPORAL_LAYERING_MODE_BYPASS)
     is_reference_frame = !cpi->svc.non_reference_frame;
 
+  // Skip loop filter in show_existing_frame mode.
+  if (cm->show_existing_frame) {
+    lf->filter_level = 0;
+    return;
+  }
+
   if (xd->lossless) {
     lf->filter_level = 0;
     lf->last_filt_level = 0;