shithub: libvpx

Download patch

ref: 76d9afc349fec0d1edc4d674daaca89b6c8c9c90
parent: b0e761f95b71450a8808497d840f59c00d97fe8b
author: James Zern <jzern@google.com>
date: Fri Nov 15 15:30:39 EST 2019

vp9_cx_iface: quiet unused fn warning w/CONFIG_REALTIME_ONLY

since:
71684703a Remove output_pkt_list from cpi

Change-Id: I14afae6598051680fdaf8c7509b6705d73789dd6

--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -1121,6 +1121,8 @@
   pkt.data.psnr = *psnr;
   return pkt;
 }
+
+#if !CONFIG_REALTIME_ONLY
 static INLINE vpx_codec_cx_pkt_t
 get_first_pass_stats_pkt(FIRSTPASS_STATS *stats) {
   // WARNNING: This function assumes that stats will
@@ -1132,6 +1134,7 @@
   pkt.data.twopass_stats.sz = sizeof(*stats);
   return pkt;
 }
+#endif
 
 const size_t kMinCompressedSize = 8192;
 static vpx_codec_err_t encoder_encode(vpx_codec_alg_priv_t *ctx,