/* Include controls common to both the encoder and decoder */ #include"./vp8.h"
/*!\name Algorithm interface for VP8 * *ThisinterfaceprovidesthecapabilitytodecodeVP8streams. *@{
*/
/*!\brief A single instance of the VP8 decoder. *\deprecatedThisaccessmechanismisprovidedforbackwardscompatibility; *prefervpx_codec_vp8_dx().
*/ extern vpx_codec_iface_t vpx_codec_vp8_dx_algo;
/*!\brief The interface to the VP8 decoder.
*/ extern vpx_codec_iface_t *vpx_codec_vp8_dx(void); /*!@} - end algorithm interface member group*/
/*!\name Algorithm interface for VP9 * *ThisinterfaceprovidesthecapabilitytodecodeVP9streams. *@{
*/
/*!\brief A single instance of the VP9 decoder. *\deprecatedThisaccessmechanismisprovidedforbackwardscompatibility; *prefervpx_codec_vp9_dx().
*/ extern vpx_codec_iface_t vpx_codec_vp9_dx_algo;
/*!\brief The interface to the VP9 decoder.
*/ extern vpx_codec_iface_t *vpx_codec_vp9_dx(void); /*!@} - end algorithm interface member group*/
/*!\enum vp8_dec_control_id *\briefVP8decodercontrolfunctions * *ThissetofmacrosdefinethecontrolfunctionsavailablefortheVP8 *decoderinterface. * *\sa#vpx_codec_control
*/ enum vp8_dec_control_id { /** control function to get info on which reference frames were updated *bythelastdecode
*/
VP8D_GET_LAST_REF_UPDATES = VP8_DECODER_CTRL_ID_START,
/** check if the indicated frame is corrupted */
VP8D_GET_FRAME_CORRUPTED,
/** control function to get info on which reference frames were used *bythelastdecode
*/
VP8D_GET_LAST_REF_USED,
/** decryption function to decrypt encoded buffer data immediately *beforedecoding.Takesavpx_decrypt_init,whichcontains *acallbackfunctionandopaquecontextpointer.
*/
VPXD_SET_DECRYPTOR,
VP8D_SET_DECRYPTOR = VPXD_SET_DECRYPTOR,
/** control function to get the dimensions that the current frame is decoded *at.Thismaybedifferenttotheintendeddisplaysizefortheframeas
* specified in the wrapper or frame header (see VP9D_GET_DISPLAY_SIZE). */
VP9D_GET_FRAME_SIZE,
/** control function to get the current frame's intended display dimensions *(asspecifiedinthewrapperorframeheader).Thismaybedifferentto
* the decoded dimensions of this frame (see VP9D_GET_FRAME_SIZE). */
VP9D_GET_DISPLAY_SIZE,
/** control function to get the bit depth of the stream. */
VP9D_GET_BIT_DEPTH,
/** control function to set the byte alignment of the planes in the reference *buffers.Validvaluesarepowerof2,from32to1024.Avalueof0sets *legacyalignment.I.e.Yplaneisalignedto32bytes,Uplanedirectly *followsYplane,andVplanedirectlyfollowsUplane.Defaultvalueis0.
*/
VP9_SET_BYTE_ALIGNMENT,
/** control function to invert the decoding order to from right to left. The *functionisusedinatesttoconfirmthedecodingindependenceoftile *columns.Thefunctionmaybeusedinapplicationwherethisorder *ofdecodingisdesired. * *TODO(yaowu):Reworktheunittestthatusesthiscontrol,andinafuture *release,thistest-onlycontrolshallberemoved.
*/
VP9_INVERT_TILE_DECODE_ORDER,
/** control function to set the skip loop filter flag. Valid values are *integers.Thedecoderwillskiptheloopfilterwhenitsvalueissetto *nonzero.Iftheloopfilterisskippedthedecodermayaccumulatedecode *artifacts.Thedefaultvalueis0.
*/
VP9_SET_SKIP_LOOP_FILTER,
/** control function to decode SVC stream up to the x spatial layers, *wherexispassedinthroughthecontrol,andis0forbaselayer.
*/
VP9_DECODE_SVC_SPATIAL_LAYER,
/*!\brief Codec control function to get last decoded frame quantizer. * *Returnvalueusesinternalquantizerscaledefinedbythecodec. * *Supportedincodecs:VP8,VP9
*/
VPXD_GET_LAST_QUANTIZER,
/*!\brief Codec control function to set row level multi-threading. * *0:off,1:on * *Supportedincodecs:VP9
*/
VP9D_SET_ROW_MT,
/*!\brief Codec control function to set loopfilter optimization. * *0:off,Loopfilterisdoneafteralltileshavebeendecoded *1:on,Loopfilterisdoneimmediatelyafterdecodewithout *waitingforallthreadstosync. * *Supportedincodecs:VP9
*/
VP9D_SET_LOOP_FILTER_OPT,
VP8_DECODER_CTRL_ID_MAX
};
/** Decrypt n bytes of data from input -> output, using the decrypt_state *passedinVPXD_SET_DECRYPTOR.
*/ typedefvoid (*vpx_decrypt_cb)(void *decrypt_state, constunsignedchar *input, unsignedchar *output, int count);
/*!\brief Structure to hold decryption state * *Definesastructuretoholdthedecryptionstateandaccessfunction.
*/ typedefstruct vpx_decrypt_init { /*! Decrypt callback. */
vpx_decrypt_cb decrypt_cb;
/*!\cond */ /*!\brief VP8 decoder control function parameter type * *DefinesthedatatypesthatVP8Dcontrolfunctionstake.Notethat *additionalcommoncontrolsaredefinedinvp8.h *
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.