diff options
author | Henrik Lundin <hlundin@google.com> | 2010-12-14 14:05:06 +0100 |
---|---|---|
committer | Henrik Lundin <hlundin@google.com> | 2010-12-17 14:43:13 +0100 |
commit | 2a87491fb07221886c8c570e6b0b48f56855a2c7 (patch) | |
tree | d4870496593cb691326da47863130137389eafa2 /vpx | |
parent | 3809d7bbd984a763cf7f288a51c9924667addf4a (diff) | |
download | libvpx-2a87491fb07221886c8c570e6b0b48f56855a2c7.tar libvpx-2a87491fb07221886c8c570e6b0b48f56855a2c7.tar.gz libvpx-2a87491fb07221886c8c570e6b0b48f56855a2c7.tar.bz2 libvpx-2a87491fb07221886c8c570e6b0b48f56855a2c7.zip |
Inform caller of decoder about updated references
Inform the caller of the decoder if a decoded frame updated last,
golden, or altref frames, required for realtime communication
proposed in document VP8 RTP payload format.
Added a new vpx_codec_control called VP8D_GET_LAST_REF_UPDATES, to be
called after vpx_codec_decode. The control will indicate which of the
reference frames that were updated by setting the 3 LSBs in the input
int (pointer).
Change-Id: Iac9db60dac414356c7ffa0b0fede88cb91e11bd7
Diffstat (limited to 'vpx')
-rw-r--r-- | vpx/vp8dx.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vpx/vp8dx.h b/vpx/vp8dx.h index fccd407f3..9feab7cc2 100644 --- a/vpx/vp8dx.h +++ b/vpx/vp8dx.h @@ -36,6 +36,30 @@ extern vpx_codec_iface_t* vpx_codec_vp8_dx(void); #include "vp8.h" +/*!\brief VP8 decoder control functions + * + * The set of macros define the control functions of VP8 decoder interface + */ +enum vp8d_dec_control_id +{ + VP8_DECODER_CTRL_ID_START = 256, + VP8D_GET_LAST_REF_UPDATES, /**< control function to get info on which reference frames were updated + by the last decode */ + VP8_DECODER_CTRL_ID_MAX +} ; + + +/*!\brief VP8 encoder control function parameter type + * + * Defines the data types that VP8E control functions take. Note that + * additional common controls are defined in vp8.h + * + */ + + +VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *) + + /*! @} - end defgroup vp8_decoder */ |