30 unsigned int nb_blocks,
size_t *
out_size)
58 unsigned int nb_blocks)
void av_buffer_unref(AVBufferRef **buf)
Free a given reference and automatically free the buffer if there are no more references to it...
This structure describes decoded (raw) audio or video data.
size_t blocks_offset
Offset in bytes from the beginning of this structure at which the array of blocks starts...
Memory handling functions.
Data structure for storing block-level encoding information.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
enum AVVideoEncParamsType type
Type of the parameters (the codec they are used with).
AVBufferRef * av_buffer_create(uint8_t *data, int size, void(*free)(void *opaque, uint8_t *data), void *opaque, int flags)
Create an AVBuffer from an existing array.
reference-counted frame API
Video encoding parameters for a given frame.
AVFrameSideData * av_frame_new_side_data_from_buf(AVFrame *frame, enum AVFrameSideDataType type, AVBufferRef *buf)
Add a new side data to a frame from an existing AVBufferRef.
AVVideoEncParams * av_video_enc_params_alloc(enum AVVideoEncParamsType type, unsigned int nb_blocks, size_t *out_size)
Allocates memory for AVVideoEncParams of the given type, plus an array of.
AVVideoEncParams * av_video_enc_params_create_side_data(AVFrame *frame, enum AVVideoEncParamsType type, unsigned int nb_blocks)
Allocates memory for AVEncodeInfoFrame plus an array of.
refcounted data buffer API
unsigned int nb_blocks
Number of blocks in the array.
A reference to a data buffer.
common internal and external API header
Encoding parameters for a video frame, as described by AVVideoEncParams.