shithub: libvpx

Download patch

ref: 86eb1259113250ddc012b024f48fe673797b5b95
parent: 53a0b134a6aa8a4577816c85a60b2a697bc5cdfd
author: angiebird <angiebird@google.com>
date: Sat Nov 2 10:51:20 EDT 2019

Remove psnr_pkt in LAYER_CONTEXT

It's not used by anycode

Change-Id: I30e86c142d4367c7b301f5b19e39c14480d4129b

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -2778,13 +2778,9 @@
     pkt.data.psnr.psnr[i] = psnr.psnr[i];
   }
   pkt.kind = VPX_CODEC_PSNR_PKT;
-  if (cpi->use_svc)
-    cpi->svc
-        .layer_context[cpi->svc.spatial_layer_id *
-                       cpi->svc.number_temporal_layers]
-        .psnr_pkt = pkt.data.psnr;
-  else
+  if (!cpi->use_svc) {
     vpx_codec_pkt_list_add(cpi->output_pkt_list, &pkt);
+  }
 }
 
 int vp9_use_as_reference(VP9_COMP *cpi, int ref_frame_flags) {
--- a/vp9/encoder/vp9_svc_layercontext.h
+++ b/vp9/encoder/vp9_svc_layercontext.h
@@ -58,7 +58,6 @@
   int gold_ref_idx;
   int has_alt_frame;
   size_t layer_size;
-  struct vpx_psnr_pkt psnr_pkt;
   // Cyclic refresh parameters (aq-mode=3), that need to be updated per-frame.
   // TODO(jianj/marpan): Is it better to use the full cyclic refresh struct.
   int sb_index;