#include <stddef.h>
#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/frame.h"
Go to the source code of this file.
◆ AVVideoEncParamsType
Enumerator |
---|
AV_VIDEO_ENC_PARAMS_NONE | |
AV_VIDEO_ENC_PARAMS_VP9 | VP9 stores:
To compute the resulting quantizer index for a block:
- for luma AC, add the base qp and the per-block delta_qp, saturating to unsigned 8-bit.
- for luma DC and chroma AC/DC, add the corresponding AVVideoBlockParams.delta_qp to the luma AC index, again saturating to unsigned 8-bit.
|
AV_VIDEO_ENC_PARAMS_H264 | H.264 stores:
- in PPS (per-picture):
- per-slice QP delta, not exported directly, added to the per-MB value
- per-MB delta; not exported directly; the final per-MB quantizer parameter - QP_Y - minus the value in AVVideoEncParams.qp is exported as AVVideoBlockParams.qp_delta.
|
AV_VIDEO_ENC_PARAMS_MPEG2 | |
Definition at line 28 of file video_enc_params.h.
◆ av_video_enc_params_block()
◆ av_video_enc_params_alloc()
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_size | if non-NULL, the size in bytes of the resulting data array is written here. |
◆ av_video_enc_params_create_side_data()
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.