37 unsigned int nb_mb = mb_h * mb_w;
38 unsigned int block_idx;
65 for (block_idx = 0; block_idx < nb_mb; block_idx++) {
67 (*table)[block_idx] = par->
qp +
b->delta_qp;
reference-counted frame API
AVFrameSideData * av_frame_get_side_data(const AVFrame *frame, enum AVFrameSideDataType type)
@ AV_FRAME_DATA_VIDEO_ENC_PARAMS
Encoding parameters for a video frame, as described by AVVideoEncParams.
common internal api header.
#define FF_QSCALE_TYPE_MPEG2
Memory handling functions.
static const uint16_t table[]
int ff_qp_table_extract(AVFrame *frame, int8_t **table, int *table_w, int *table_h, int *qscale_type)
Extract a libpostproc-compatible QP table - an 8-bit QP value per 16x16 macroblock,...
Structure to hold side data for an AVFrame.
This structure describes decoded (raw) audio or video data.
Data structure for storing block-level encoding information.
Video encoding parameters for a given frame.
enum AVVideoEncParamsType type
Type of the parameters (the codec they are used with).
unsigned int nb_blocks
Number of blocks in the array.
int32_t qp
Base quantisation parameter for the frame.
static av_always_inline AVVideoBlockParams * av_video_enc_params_block(AVVideoEncParams *par, unsigned int idx)
@ AV_VIDEO_ENC_PARAMS_MPEG2