#include <avcodec.h>
Name of the hardware accelerated codec.
The name is globally unique among encoders and among decoders (but an encoder and a decoder can share the same name).
Definition at line 2045 of file avcodec.h.
Referenced by convert_from_tensorflow.Operand::__str__(), and hwaccel_init().
Supported pixel format.
Only hardware accelerated formats are supported here.
Definition at line 2066 of file avcodec.h.
Referenced by ff_decode_get_hw_frames_ctx(), ff_dxva2_decode_init(), and nvdec_init_hwframes().
Hardware accelerated codec capabilities.
see AV_HWACCEL_CODEC_CAP_*
Definition at line 2072 of file avcodec.h.
Referenced by hwaccel_init().
Called at the beginning of each frame or field picture.
Meaningful frame information (codec specific) is guaranteed to be parsed at this point. This function is mandatory.
Note that buf can be NULL along with buf_size set to 0. Otherwise, this means the whole frame is available at this point.
Definition at line 2101 of file avcodec.h.
Referenced by av1_decode_frame(), decode_frame(), ff_h263_decode_frame(), mpeg_field_start(), vc1_decode_frame(), vp78_decode_frame(), and vp9_decode_frame().
Callback for parameter data (SPS/PPS/VPS etc).
Useful for hardware decoders which keep persistent state about the video parameters, and need to receive any changes to update that state.
Definition at line 2115 of file avcodec.h.
Referenced by av1_decode_frame(), and decode_nal_units().
Callback for each slice.
Meaningful slice information (codec specific) is guaranteed to be parsed at this point. This function is mandatory. The only exception is XvMC, that works on MB level.
Definition at line 2129 of file avcodec.h.
Referenced by av1_decode_frame(), decode_frame(), decode_nal_units(), mpeg_decode_slice(), vc1_decode_frame(), vp78_decode_frame(), and vp9_decode_frame().
Called at the end of each frame or field picture.
The whole picture is parsed at this point and can now be sent to the hardware accelerator. This function is mandatory.
Definition at line 2140 of file avcodec.h.
Referenced by av1_decode_frame(), decode_frame(), ff_h263_decode_frame(), ff_h264_field_end(), hevc_decode_frame(), vc1_decode_frame(), vp78_decode_frame(), and vp9_decode_frame().
Size of per-frame hardware accelerator private data.
Private data is allocated with av_mallocz() before AVCodecContext.get_buffer() and deallocated after AVCodecContext.release_buffer().
Definition at line 2149 of file avcodec.h.
Referenced by alloc_frame(), alloc_frame_buffer(), alloc_picture(), av1_frame_alloc(), vp8_alloc_frame(), and vp9_frame_alloc().
Called for every Macroblock in a slice.
XvMC uses it to replace the ff_mpv_reconstruct_mb(). Instead of decoding to raw picture, MB parameters are stored in an array provided by the video driver.
Definition at line 2160 of file avcodec.h.
Referenced by ff_blockdsp_init_x86().
Initialize the hwaccel private data.
This will be called from ff_get_format(), after hwaccel and hwaccel_context are set and the hwaccel private data in AVCodecInternal is allocated.
Definition at line 2169 of file avcodec.h.
Referenced by ff_vdpau_common_reinit(), and hwaccel_init().
Uninitialize the hwaccel private data.
This will be called from get_format() or avcodec_close(), after hwaccel and hwaccel_context are already uninitialized.
Definition at line 2177 of file avcodec.h.
Referenced by avcodec_close(), ff_vdpau_common_reinit(), and hwaccel_uninit().
Size of the private data to allocate in AVCodecInternal.hwaccel_priv_data.
Definition at line 2183 of file avcodec.h.
Referenced by hwaccel_init().
Internal hwaccel capabilities.
Definition at line 2188 of file avcodec.h.
Referenced by ff_thread_finish_setup().
Fill the given hw_frames context with current codec parameters.
Called from get_format. Refer to avcodec_get_hw_frames_parameters() for details.
This CAN be called before AVHWAccel.init is called, and you must assume that avctx->hwaccel_priv_data is invalid.
Definition at line 2198 of file avcodec.h.
Referenced by avcodec_get_hw_frames_parameters().