FFmpeg
Loading...
Searching...
No Matches
qp_table.h File Reference
#include <stdint.h>
#include "libavutil/frame.h"
#include "libavutil/video_enc_params.h"

Go to the source code of this file.

Functions

int ff_qp_table_extract (AVFrame *frame, int8_t **table, int *table_w, int *table_h, enum AVVideoEncParamsType *qscale_type)
 Extract a libpostproc-compatible QP table - an 8-bit QP value per 16x16 macroblock, stored in raster order - from AVVideoEncParams side data.
 
static int ff_norm_qscale (int qscale, enum AVVideoEncParamsType type)
 Normalize the qscale factor FIXME Add support for other values of enum AVVideoEncParamsType besides AV_VIDEO_ENC_PARAMS_MPEG2.
 

Function Documentation

◆ ff_qp_table_extract()

int ff_qp_table_extract ( AVFrame * frame,
int8_t ** table,
int * table_w,
int * table_h,
enum AVVideoEncParamsType * qscale_type )

Extract a libpostproc-compatible QP table - an 8-bit QP value per 16x16 macroblock, stored in raster order - from AVVideoEncParams side data.

Definition at line 27 of file qp_table.c.

Referenced by filter_frame(), filter_frame(), filter_frame(), filter_frame(), and filter_frame().

◆ ff_norm_qscale()

static int ff_norm_qscale ( int qscale,
enum AVVideoEncParamsType type )
inlinestatic

Normalize the qscale factor FIXME Add support for other values of enum AVVideoEncParamsType besides AV_VIDEO_ENC_PARAMS_MPEG2.

Definition at line 39 of file qp_table.h.

Referenced by filter(), filter(), filter(), filter(), and filter_frame().