FFmpeg
Functions
qp_table.h File Reference
#include <stdint.h>
#include "libavutil/frame.h"
#include "libavcodec/internal.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, int *qscale_type)
 Extract a libpostproc-compatible QP table - an 8-bit QP value per 16x16 macroblock, stored in raster order - from AVVideoEncParams side data. More...
 
static int ff_norm_qscale (int qscale, int type)
 Normalize the qscale factor FIXME the H264 qscale is a log based scale, mpeg1/2 is not, the code below cannot be optimal. More...
 

Function Documentation

◆ ff_qp_table_extract()

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, stored in raster order - from AVVideoEncParams side data.

Definition at line 30 of file qp_table.c.

Referenced by filter_frame(), and pp_filter_frame().

◆ ff_norm_qscale()

static int ff_norm_qscale ( int  qscale,
int  type 
)
inlinestatic

Normalize the qscale factor FIXME the H264 qscale is a log based scale, mpeg1/2 is not, the code below cannot be optimal.

Definition at line 39 of file qp_table.h.

Referenced by filter(), and filter_frame().