FFmpeg
|
#include "libavutil/buffer.h"
#include "libavutil/frame.h"
#include "libavutil/hwcontext.h"
#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | FrameDecodeData |
This struct stores per-frame lavc-internal data and is attached to it via private_ref. More... | |
Functions | |
int | ff_decode_get_packet (AVCodecContext *avctx, AVPacket *pkt) |
Called by decoders to get the next packet for decoding. More... | |
int | ff_decode_frame_props (AVCodecContext *avctx, AVFrame *frame) |
Set various frame properties from the codec context / packet data. More... | |
int | ff_decode_get_hw_frames_ctx (AVCodecContext *avctx, enum AVHWDeviceType dev_type) |
Make sure avctx.hw_frames_ctx is set. More... | |
int | ff_attach_decode_data (AVFrame *frame) |
int | ff_copy_palette (void *dst, const AVPacket *src, void *logctx) |
Check whether the side-data of src contains a palette of size AVPALETTE_SIZE; if so, copy it to dst and return 1; else return 0. More... | |
int | ff_decode_preinit (AVCodecContext *avctx) |
Perform decoder initialization and validation. More... | |
int ff_decode_get_packet | ( | AVCodecContext * | avctx, |
AVPacket * | pkt | ||
) |
Called by decoders to get the next packet for decoding.
pkt | An empty packet to be filled with data. |
Definition at line 224 of file decode.c.
Referenced by binkaudio_receive_frame(), crystalhd_receive_frame(), cuvid_output_frame(), decode_simple_internal(), ffmmal_receive_frame(), libdav1d_receive_frame(), mediacodec_receive_frame(), mjpeg_get_packet(), and v4l2_receive_frame().
int ff_decode_frame_props | ( | AVCodecContext * | avctx, |
AVFrame * | frame | ||
) |
Set various frame properties from the codec context / packet data.
Definition at line 1489 of file decode.c.
Referenced by cuvid_output_frame(), ff_get_buffer(), ffmal_copy_frame(), libdav1d_receive_frame(), qsv_get_continuous_buffer(), qtrle_decode_frame(), raw_decode(), reget_buffer_internal(), vpx_decode(), and wrapped_avframe_decode().
int ff_decode_get_hw_frames_ctx | ( | AVCodecContext * | avctx, |
enum AVHWDeviceType | dev_type | ||
) |
Make sure avctx.hw_frames_ctx is set.
If it's not set, the function will try to allocate it from hw_device_ctx. If that is not possible, an error message is printed, and an error code is returned.
Definition at line 940 of file decode.c.
Referenced by ff_dxva2_decode_init(), ff_vaapi_decode_init(), and ff_vdpau_common_init().
Definition at line 1628 of file decode.c.
Referenced by ff_get_buffer(), ff_videotoolbox_alloc_frame(), qsv_get_continuous_buffer(), and wrapped_avframe_decode().
Check whether the side-data of src contains a palette of size AVPALETTE_SIZE; if so, copy it to dst and return 1; else return 0.
Also emit an error message upon encountering a palette with invalid size.
Definition at line 1854 of file decode.c.
Referenced by cinepak_decode_frame(), decode_frame(), gdv_decode_frame(), idcin_decode_frame(), imx_decode_frame(), ipvideo_decode_frame(), msrle_decode_frame(), msvideo1_decode_frame(), qtrle_decode_frame(), raw_decode(), rscc_decode_frame(), and smc_decode_frame().
int ff_decode_preinit | ( | AVCodecContext * | avctx | ) |
Perform decoder initialization and validation.
Called when opening the decoder, before the AVCodec.init() call.
Definition at line 1767 of file decode.c.
Referenced by avcodec_open2().