summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2010-12-17 07:08:21 -0800
committerCode Review <code-review@webmproject.org>2010-12-17 07:08:21 -0800
commitfc6ce744a606872c6d8001deabaab0b819326214 (patch)
treeeab80bb99f64793aac3bec066adbfd57bd34af6f /vp8
parent64baa8df2e3f5cd8036fac9715d3f7d348620fa6 (diff)
parent2a87491fb07221886c8c570e6b0b48f56855a2c7 (diff)
downloadlibvpx-fc6ce744a606872c6d8001deabaab0b819326214.tar
libvpx-fc6ce744a606872c6d8001deabaab0b819326214.tar.gz
libvpx-fc6ce744a606872c6d8001deabaab0b819326214.tar.bz2
libvpx-fc6ce744a606872c6d8001deabaab0b819326214.zip
Merge "Inform caller of decoder about updated references"
Diffstat (limited to 'vp8')
-rw-r--r--vp8/vp8_dx_iface.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c
index 9dd492217..cf32d1f38 100644
--- a/vp8/vp8_dx_iface.c
+++ b/vp8/vp8_dx_iface.c
@@ -688,6 +688,26 @@ static vpx_codec_err_t vp8_set_dbg_options(vpx_codec_alg_priv_t *ctx,
#endif
}
+static vpx_codec_err_t vp8_get_last_ref_updates(vpx_codec_alg_priv_t *ctx,
+ int ctrl_id,
+ va_list args)
+{
+ int *update_info = va_arg(args, int *);
+ VP8D_COMP *pbi = (VP8D_COMP *)ctx->pbi;
+
+ if (update_info)
+ {
+ *update_info = pbi->common.refresh_alt_ref_frame * (int) VP8_ALTR_FRAME
+ + pbi->common.refresh_golden_frame * (int) VP8_GOLD_FRAME
+ + pbi->common.refresh_last_frame * (int) VP8_LAST_FRAME;
+
+ return VPX_CODEC_OK;
+ }
+ else
+ return VPX_CODEC_INVALID_PARAM;
+}
+
+
vpx_codec_ctrl_fn_map_t vp8_ctf_maps[] =
{
{VP8_SET_REFERENCE, vp8_set_reference},
@@ -697,6 +717,7 @@ vpx_codec_ctrl_fn_map_t vp8_ctf_maps[] =
{VP8_SET_DBG_COLOR_MB_MODES, vp8_set_dbg_options},
{VP8_SET_DBG_COLOR_B_MODES, vp8_set_dbg_options},
{VP8_SET_DBG_DISPLAY_MV, vp8_set_dbg_options},
+ {VP8D_GET_LAST_REF_UPDATES, vp8_get_last_ref_updates},
{ -1, NULL},
};