summaryrefslogtreecommitdiff
path: root/vpx
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2023-04-28 14:32:47 -0400
committerJerome Jiang <jianj@google.com>2023-05-03 19:16:24 -0400
commitde45e4b612bb576f76d35770afc62ae799e6c0fd (patch)
tree19e1399563fe257de000351c48e45e902c9e3f08 /vpx
parent84a180fe858fd6de9c301cd884e2f1ff341781b3 (diff)
downloadlibvpx-de45e4b612bb576f76d35770afc62ae799e6c0fd.tar.gz
Add codec control to export TPL stats
new codec control: VP9E_GET_TPL_STATS with unit test Bug: b/273736974 Change-Id: I27343bd3f6dffafc86925234537bcdb557bc4079
Diffstat (limited to 'vpx')
-rw-r--r--vpx/vp8cx.h14
-rw-r--r--vpx/vpx_encoder.h2
2 files changed, 15 insertions, 1 deletions
diff --git a/vpx/vp8cx.h b/vpx/vp8cx.h
index e0b679fbb..123a645d9 100644
--- a/vpx/vp8cx.h
+++ b/vpx/vp8cx.h
@@ -767,6 +767,18 @@ enum vp8e_enc_control_id {
*
*/
VP9E_SET_QUANTIZER_ONE_PASS,
+
+ /*!\brief Codec control to get TPL stats for the current GOP.
+ *
+ * Allocation and free of memory of size MAX_ARF_GOP_SIZE (50) *
+ * sizeof(TplFrameStats) should be done by applications.
+ *
+ * VPX_CODEC_INVALID_PARAM will be returned if the pointer passed in is NULL.
+ *
+ * Supported in codecs: VP9
+ *
+ */
+ VP9E_GET_TPL_STATS,
};
/*!\brief vpx 1-D scaling mode
@@ -1097,6 +1109,8 @@ VPX_CTRL_USE_TYPE(VP8E_SET_RTC_EXTERNAL_RATECTRL, int)
#define VPX_CTRL_VP8E_SET_RTC_EXTERNAL_RATECTRL
VPX_CTRL_USE_TYPE(VP9E_SET_QUANTIZER_ONE_PASS, int)
#define VPX_CTRL_VP9E_SET_QUANTIZER_ONE_PASS
+VPX_CTRL_USE_TYPE(VP9E_GET_TPL_STATS, void *)
+#define VPX_CTRL_VP9E_GET_TPL_STATS
/*!\endcond */
/*! @} - end defgroup vp8_encoder */
diff --git a/vpx/vpx_encoder.h b/vpx/vpx_encoder.h
index 924723132..1910a1904 100644
--- a/vpx/vpx_encoder.h
+++ b/vpx/vpx_encoder.h
@@ -58,7 +58,7 @@ extern "C" {
* fields to structures
*/
#define VPX_ENCODER_ABI_VERSION \
- (15 + VPX_CODEC_ABI_VERSION + \
+ (16 + VPX_CODEC_ABI_VERSION + \
VPX_EXT_RATECTRL_ABI_VERSION) /**<\hideinitializer*/
/*! \brief Encoder capabilities bitfield