shithub: libvpx

Download patch

ref: 2d1a7cd45a4ac7b4bc827fcc915ff3edd3009691
parent: 0f3fe088fab5998c37910f3cc539a48fa1a72c14
author: Jerome Jiang <jianj@google.com>
date: Tue Feb 18 05:46:03 EST 2020

Cap delta_q_uv to -15..15

only 4 bits in bitstream

Change-Id: I338fe54475e094ee5e556467e0b66c982bb560fa

--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -1650,7 +1650,7 @@
                                            va_list args) {
   struct vp9_extracfg extra_cfg = ctx->extra_cfg;
   int data = va_arg(args, int);
-  data = VPXMIN(VPXMAX(data, -20), 20);
+  data = VPXMIN(VPXMAX(data, -15), 15);
   extra_cfg.delta_q_uv = data;
   return update_extra_cfg(ctx, &extra_cfg);
 }
--- a/vpx/vp8cx.h
+++ b/vpx/vp8cx.h
@@ -679,7 +679,7 @@
 
   /*!\brief Codec control function to set delta q for uv.
    *
-   * Cap it at +/-20 for now.
+   * Cap it at +/-15.
    *
    * Supported in codecs: VP9
    */