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"
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) |
static int | decode_scaling_matrices (GetBitContext *gb, const SPS *sps, const PPS *pps, int is_sps, 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 (void *opaque, uint8_t *data) |
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 86 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set(), and remove_sps().
|
static |
Definition at line 91 of file h264_ps.c.
Referenced by ff_h264_decode_seq_parameter_set().
|
inlinestatic |
Definition at line 105 of file h264_ps.c.
Referenced by decode_vui_parameters().
|
inlinestatic |
Definition at line 131 of file h264_ps.c.
Referenced by ff_h264_decode_seq_parameter_set().
|
static |
Definition at line 199 of file h264_ps.c.
Referenced by decode_scaling_matrices().
|
static |
Definition at line 227 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 264 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 280 of file h264_ps.c.
Referenced by decode_extradata_ps(), decode_nal_units(), and parse_nal_units().
Definition at line 591 of file h264_ps.c.
Referenced by init_dequant_tables().
Definition at line 618 of file h264_ps.c.
Referenced by init_dequant_tables().
Definition at line 644 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set().
Definition at line 663 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set().
Definition at line 672 of file h264_ps.c.
Referenced by ff_h264_decode_picture_parameter_set().
|
static |
Definition at line 686 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 695 of file h264_ps.c.
Referenced by decode_extradata_ps(), decode_nal_units(), and parse_nal_units().
|
static |
Definition at line 40 of file h264_ps.c.
Referenced by decode_scaling_matrices().
|
static |
Definition at line 47 of file h264_ps.c.
Referenced by decode_scaling_matrices().
|
static |
Definition at line 67 of file h264_ps.c.
Referenced by ff_h264_decode_seq_parameter_set().