FFmpeg 7.1.1
|
#include <stddef.h>
#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/frame.h"
Go to the source code of this file.
Data Structures | |
struct | AVVideoEncParams |
Video encoding parameters for a given frame. More... | |
struct | AVVideoBlockParams |
Data structure for storing block-level encoding information. More... | |
Enumerations | |
enum | AVVideoEncParamsType { AV_VIDEO_ENC_PARAMS_NONE = -1 , AV_VIDEO_ENC_PARAMS_VP9 , AV_VIDEO_ENC_PARAMS_H264 , AV_VIDEO_ENC_PARAMS_MPEG2 } |
Functions | |
static av_always_inline AVVideoBlockParams * | av_video_enc_params_block (AVVideoEncParams *par, unsigned int idx) |
Get the block at the specified idx . | |
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. | |
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 frame as AVFrameSideData of type AV_FRAME_DATA_VIDEO_ENC_PARAMS and initializes the variables. | |
enum AVVideoEncParamsType |
Enumerator | |
---|---|
AV_VIDEO_ENC_PARAMS_NONE | |
AV_VIDEO_ENC_PARAMS_VP9 | VP9 stores:
To compute the resulting quantizer index for a block:
|
AV_VIDEO_ENC_PARAMS_H264 | H.264 stores:
|
AV_VIDEO_ENC_PARAMS_MPEG2 |
Definition at line 28 of file video_enc_params.h.
|
static |
Get the block at the specified idx
.
Must be between 0 and nb_blocks - 1.
Definition at line 143 of file video_enc_params.h.
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.
out_size | if non-NULL, the size in bytes of the resulting data array is written here. |
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 frame
as AVFrameSideData of type AV_FRAME_DATA_VIDEO_ENC_PARAMS and initializes the variables.