summaryrefslogtreecommitdiff
path: root/vpx/vp8cx.h
diff options
context:
space:
mode:
authorPaul Wilkins <paulwilkins@google.com>2011-01-07 18:29:37 +0000
committerPaul Wilkins <paulwilkins@google.com>2011-01-07 18:46:29 +0000
commite0846c9c8c374a07911ced982ce68949886d0f21 (patch)
tree39424a4195d3ff9b812176c60bc8eaadcc2d12aa /vpx/vp8cx.h
parent3af3593c8ecb2a724c3c9f63e2186366550854fa (diff)
downloadlibvpx-e0846c9c8c374a07911ced982ce68949886d0f21.tar
libvpx-e0846c9c8c374a07911ced982ce68949886d0f21.tar.gz
libvpx-e0846c9c8c374a07911ced982ce68949886d0f21.tar.bz2
libvpx-e0846c9c8c374a07911ced982ce68949886d0f21.zip
CQ Mode
The merge includes hooks to for CQ mode and other code changes merged from the test branch. CQ mode attempts to maintain a more stable quantizer within a clip whilst also trying to adhere to a guidline maximum bitrate. The existing target data rate parameter is used to specify the guideline maximum bitrate. A new parameter allows the user to specify a target CQ level. For normal (non kf/gf/arf) frames, the quantizer will not drop BELOW the user specified value (0-63). However, in some cases the encoder may choose to impose a target CQ that is above that specified by the user, if it estimates that consistent use of the target value is not compatible with guideline maximum bitrate. Change-Id: I2221f9eecae8cc3c431d36caf83503941b25e4c1
Diffstat (limited to 'vpx/vp8cx.h')
-rw-r--r--vpx/vp8cx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vpx/vp8cx.h b/vpx/vp8cx.h
index 3ed1cf182..d574c4462 100644
--- a/vpx/vp8cx.h
+++ b/vpx/vp8cx.h
@@ -141,6 +141,7 @@ enum vp8e_enc_control_id
VP8E_SET_ARNR_STRENGTH , /**< control function to set the filter strength for the arf */
VP8E_SET_ARNR_TYPE , /**< control function to set the type of filter to use for the arf*/
VP8E_SET_TUNING, /**< control function to set visual tuning */
+ VP8E_SET_CQ_LEVEL, /**< control function to set constrained quality level */
};
/*!\brief vpx 1-D scaling mode
@@ -267,6 +268,7 @@ VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_MAXFRAMES, unsigned int)
VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_STRENGTH , unsigned int)
VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_TYPE , unsigned int)
VPX_CTRL_USE_TYPE(VP8E_SET_TUNING, vp8e_tuning)
+VPX_CTRL_USE_TYPE(VP8E_SET_CQ_LEVEL , unsigned int)
VPX_CTRL_USE_TYPE(VP8E_GET_LAST_QUANTIZER, int *)
VPX_CTRL_USE_TYPE(VP8E_GET_LAST_QUANTIZER_64, int *)