diff options
author | John Koleszar <jkoleszar@google.com> | 2011-01-20 00:05:23 -0500 |
---|---|---|
committer | John Koleszar <jkoleszar@google.com> | 2011-01-20 00:05:28 -0500 |
commit | 3ac80a74f80452a5212c0680e678be6ab7541bed (patch) | |
tree | 05202583edd83a1f40dd03df7a0e25e073103a46 /vp8/vp8_dx_iface.c | |
parent | 5b42ae09aeecedfdff1dae9d59be9fbb2aba3392 (diff) | |
parent | 06e7320c3e909c33e248b9910dc182b13451d1c8 (diff) | |
download | libvpx-3ac80a74f80452a5212c0680e678be6ab7541bed.tar libvpx-3ac80a74f80452a5212c0680e678be6ab7541bed.tar.gz libvpx-3ac80a74f80452a5212c0680e678be6ab7541bed.tar.bz2 libvpx-3ac80a74f80452a5212c0680e678be6ab7541bed.zip |
Merge remote branch 'origin/master' into experimental
Change-Id: Ia0840303fe1dc8c12f3389e7a1fe20b6d3c6b9c5
Diffstat (limited to 'vp8/vp8_dx_iface.c')
-rw-r--r-- | vp8/vp8_dx_iface.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c index a2ad59662..1b1cf3b94 100644 --- a/vp8/vp8_dx_iface.c +++ b/vp8/vp8_dx_iface.c @@ -709,6 +709,25 @@ static vpx_codec_err_t vp8_get_last_ref_updates(vpx_codec_alg_priv_t *ctx, } +static vpx_codec_err_t vp8_get_frame_corrupted(vpx_codec_alg_priv_t *ctx, + int ctrl_id, + va_list args) +{ + + int *corrupted = va_arg(args, int *); + + if (corrupted) + { + VP8D_COMP *pbi = (VP8D_COMP *)ctx->pbi; + *corrupted = pbi->common.frame_to_show->corrupted; + + 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}, @@ -719,6 +738,7 @@ vpx_codec_ctrl_fn_map_t vp8_ctf_maps[] = {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}, + {VP8D_GET_FRAME_CORRUPTED, vp8_get_frame_corrupted}, { -1, NULL}, }; |