FFmpeg
Functions
video_enc_params.c File Reference
#include <stddef.h>
#include <stdint.h>
#include "buffer.h"
#include "frame.h"
#include "mem.h"
#include "video_enc_params.h"

Go to the source code of this file.

Functions

AVVideoEncParamsav_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. More...
 
AVVideoEncParamsav_video_enc_params_create_side_data (AVFrame *frame, enum AVVideoEncParamsType type, unsigned int nb_blocks)
 Allocates memory for AVEncodeInfoFrame plus an array of. More...
 

Function Documentation

◆ av_video_enc_params_alloc()

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.

nb_blocks

AVVideoBlockParams and initializes the variables. Can be freed with a normal av_free() call.

Parameters
out_sizeif non-NULL, the size in bytes of the resulting data array is written here.

Definition at line 27 of file video_enc_params.c.

Referenced by av_video_enc_params_create_side_data().

◆ av_video_enc_params_create_side_data()

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.

nb_blocks

AVEncodeInfoBlock in the given AVFrame

as AVFrameSideData of type AV_FRAME_DATA_VIDEO_ENC_PARAMS and initializes the variables.

Definition at line 58 of file video_enc_params.c.

Referenced by ff_mpv_export_qp_table(), filter_frame(), h264_export_enc_params(), and vp9_export_enc_params().

frame
static AVFrame * frame
Definition: demux_decode.c:54