]> granicus.if.org Git - libvpx/commitdiff
vp9_cx_iface: quiet unused fn warning w/CONFIG_REALTIME_ONLY
authorJames Zern <jzern@google.com>
Sat, 16 Nov 2019 04:30:39 +0000 (20:30 -0800)
committerJames Zern <jzern@google.com>
Sat, 16 Nov 2019 04:30:39 +0000 (20:30 -0800)
since:
71684703a Remove output_pkt_list from cpi

Change-Id: I14afae6598051680fdaf8c7509b6705d73789dd6

vp9/vp9_cx_iface.c

index b794466a6790a020e3b9f3c7743dab7551a37dbf..e3ae48bd11afe364232887c5adc5473f5555f664 100644 (file)
@@ -1121,6 +1121,8 @@ static INLINE vpx_codec_cx_pkt_t get_psnr_pkt(const PSNR_STATS *psnr) {
   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 @@ get_first_pass_stats_pkt(FIRSTPASS_STATS *stats) {
   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,