FFmpeg
|
#include <inttypes.h>
#include "libavutil/imgutils.h"
#include "mathops.h"
#include "avcodec.h"
#include "h264data.h"
#include "h2645_vui.h"
#include "h264_ps.h"
#include "golomb.h"
#include "refstruct.h"
Go to the source code of this file.
Macros | |
#define | MIN_LOG2_MAX_FRAME_NUM 4 |
Functions | |
static void | remove_pps (H264ParamSets *s, int id) |
static void | remove_sps (H264ParamSets *s, int id) |
static int | decode_hrd_parameters (GetBitContext *gb, void *logctx, SPS *sps) |
static int | decode_vui_parameters (GetBitContext *gb, void *logctx, SPS *sps) |
static int | decode_scaling_list (GetBitContext *gb, uint8_t *factors, int size, const uint8_t *jvt_list, const uint8_t *fallback_list, uint16_t *mask, int pos) |
static int | decode_scaling_matrices (GetBitContext *gb, const SPS *sps, const PPS *pps, int is_sps, int present_flag, uint16_t *mask, uint8_t(*scaling_matrix4)[16], uint8_t(*scaling_matrix8)[64]) |
void | ff_h264_ps_uninit (H264ParamSets *ps) |
Uninit H264 param sets structure. More... | |
int | ff_h264_decode_seq_parameter_set (GetBitContext *gb, AVCodecContext *avctx, H264ParamSets *ps, int ignore_truncation) |
Decode SPS. More... | |
static void | init_dequant8_coeff_table (PPS *pps, const SPS *sps) |
static void | init_dequant4_coeff_table (PPS *pps, const SPS *sps) |
static void | init_dequant_tables (PPS *pps, const SPS *sps) |
static void | build_qp_table (PPS *pps, int t, int index, const int depth) |
static int | more_rbsp_data_in_pps (const SPS *sps, void *logctx) |
static void | pps_free (FFRefStructOpaque unused, void *obj) |
int | ff_h264_decode_picture_parameter_set (GetBitContext *gb, AVCodecContext *avctx, H264ParamSets *ps, int bit_length) |
Decode PPS. More... | |
Variables | |
static const uint8_t | default_scaling4 [2][16] |
static const uint8_t | default_scaling8 [2][64] |
static const int | level_max_dpb_mbs [][2] |
H.264 / AVC / MPEG-4 part10 parameter set decoding.
Definition in file h264_ps.c.
|
static |
Definition at line 87 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set(), and remove_sps().
|
static |
Definition at line 92 of file h264_ps.c.
Referenced by ff_h264_decode_seq_parameter_set().
|
inlinestatic |
Definition at line 106 of file h264_ps.c.
Referenced by decode_vui_parameters().
|
inlinestatic |
Definition at line 133 of file h264_ps.c.
Referenced by ff_h264_decode_seq_parameter_set().
|
static |
Definition at line 201 of file h264_ps.c.
Referenced by decode_scaling_matrices().
|
static |
Definition at line 231 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set(), and ff_h264_decode_seq_parameter_set().
void ff_h264_ps_uninit | ( | H264ParamSets * | ps | ) |
Uninit H264 param sets structure.
Definition at line 270 of file h264_ps.c.
Referenced by h264_close(), and h264_decode_end().
int ff_h264_decode_seq_parameter_set | ( | GetBitContext * | gb, |
AVCodecContext * | avctx, | ||
H264ParamSets * | ps, | ||
int | ignore_truncation | ||
) |
Decode SPS.
Definition at line 284 of file h264_ps.c.
Referenced by decode_extradata_ps(), decode_nal_units(), and parse_nal_units().
Definition at line 594 of file h264_ps.c.
Referenced by init_dequant_tables().
Definition at line 621 of file h264_ps.c.
Referenced by init_dequant_tables().
Definition at line 647 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set().
Definition at line 666 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set().
Definition at line 675 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set().
|
static |
Definition at line 689 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set().
int ff_h264_decode_picture_parameter_set | ( | GetBitContext * | gb, |
AVCodecContext * | avctx, | ||
H264ParamSets * | ps, | ||
int | bit_length | ||
) |
Decode PPS.
Definition at line 696 of file h264_ps.c.
Referenced by decode_extradata_ps(), decode_nal_units(), and parse_nal_units().
|
static |
Definition at line 41 of file h264_ps.c.
Referenced by decode_scaling_matrices().
|
static |
Definition at line 48 of file h264_ps.c.
Referenced by decode_scaling_matrices().
|
static |
Definition at line 68 of file h264_ps.c.
Referenced by ff_h264_decode_seq_parameter_set().