FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
hevc_ps.c File Reference
#include "libavutil/imgutils.h"
#include "golomb.h"
#include "hevc.h"

Go to the source code of this file.

Functions

int ff_hevc_decode_short_term_rps (HEVCContext *s, ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header)
 
static void decode_profile_tier_level (HEVCContext *s, PTLCommon *ptl)
 
static void parse_ptl (HEVCContext *s, PTL *ptl, int max_num_sub_layers)
 
static void decode_sublayer_hrd (HEVCContext *s, unsigned int nb_cpb, int subpic_params_present)
 
static void decode_hrd (HEVCContext *s, int common_inf_present, int max_sublayers)
 
int ff_hevc_decode_nal_vps (HEVCContext *s)
 
static void decode_vui (HEVCContext *s, HEVCSPS *sps)
 
static void set_default_scaling_list_data (ScalingList *sl)
 
static int scaling_list_data (HEVCContext *s, ScalingList *sl)
 
int ff_hevc_decode_nal_sps (HEVCContext *s)
 
static void hevc_pps_free (void *opaque, uint8_t *data)
 
int ff_hevc_decode_nal_pps (HEVCContext *s)
 

Variables

static const uint8_t default_scaling_list_intra []
 
static const uint8_t default_scaling_list_inter []
 
static const AVRational vui_sar []
 

Function Documentation

int ff_hevc_decode_short_term_rps ( HEVCContext s,
ShortTermRPS rps,
const HEVCSPS sps,
int  is_slice_header 
)

Definition at line 72 of file hevc_ps.c.

Referenced by ff_hevc_decode_nal_sps(), and hls_slice_header().

static void decode_profile_tier_level ( HEVCContext s,
PTLCommon ptl 
)
static

Definition at line 195 of file hevc_ps.c.

Referenced by parse_ptl().

static void parse_ptl ( HEVCContext s,
PTL ptl,
int  max_num_sub_layers 
)
static

Definition at line 225 of file hevc_ps.c.

Referenced by ff_hevc_decode_nal_sps(), and ff_hevc_decode_nal_vps().

static void decode_sublayer_hrd ( HEVCContext s,
unsigned int  nb_cpb,
int  subpic_params_present 
)
static

Definition at line 248 of file hevc_ps.c.

Referenced by decode_hrd().

static void decode_hrd ( HEVCContext s,
int  common_inf_present,
int  max_sublayers 
)
static

Definition at line 266 of file hevc_ps.c.

Referenced by decode_vui(), and ff_hevc_decode_nal_vps().

int ff_hevc_decode_nal_vps ( HEVCContext s)

Definition at line 323 of file hevc_ps.c.

Referenced by decode_nal_unit(), and parse_nal_units().

static void decode_vui ( HEVCContext s,
HEVCSPS sps 
)
static

Definition at line 419 of file hevc_ps.c.

Referenced by ff_hevc_decode_nal_sps().

static void set_default_scaling_list_data ( ScalingList sl)
static

Definition at line 527 of file hevc_ps.c.

Referenced by ff_hevc_decode_nal_pps(), and ff_hevc_decode_nal_sps().

static int scaling_list_data ( HEVCContext s,
ScalingList sl 
)
static

Definition at line 553 of file hevc_ps.c.

Referenced by ff_hevc_decode_nal_pps(), and ff_hevc_decode_nal_sps().

int ff_hevc_decode_nal_sps ( HEVCContext s)

Definition at line 610 of file hevc_ps.c.

Referenced by decode_nal_unit(), and parse_nal_units().

static void hevc_pps_free ( void opaque,
uint8_t data 
)
static

Definition at line 970 of file hevc_ps.c.

Referenced by ff_hevc_decode_nal_pps().

int ff_hevc_decode_nal_pps ( HEVCContext s)

6.5

Definition at line 989 of file hevc_ps.c.

Referenced by decode_nal_unit(), and parse_nal_units().

Variable Documentation

const uint8_t default_scaling_list_intra[]
static
Initial value:
= {
16, 16, 16, 16, 17, 18, 21, 24,
16, 16, 16, 16, 17, 19, 22, 25,
16, 16, 17, 18, 20, 22, 25, 29,
16, 16, 18, 21, 24, 27, 31, 36,
17, 17, 20, 24, 30, 35, 41, 47,
18, 19, 22, 27, 35, 44, 54, 65,
21, 22, 25, 31, 41, 54, 70, 88,
24, 25, 29, 36, 47, 65, 88, 115
}

Definition at line 30 of file hevc_ps.c.

Referenced by set_default_scaling_list_data().

const uint8_t default_scaling_list_inter[]
static
Initial value:
= {
16, 16, 16, 16, 17, 18, 20, 24,
16, 16, 16, 17, 18, 20, 24, 25,
16, 16, 17, 18, 20, 24, 25, 28,
16, 17, 18, 20, 24, 25, 28, 33,
17, 18, 20, 24, 25, 28, 33, 41,
18, 20, 24, 25, 28, 33, 41, 54,
20, 24, 25, 28, 33, 41, 54, 71,
24, 25, 28, 33, 41, 54, 71, 91
}

Definition at line 41 of file hevc_ps.c.

Referenced by set_default_scaling_list_data().

const AVRational vui_sar[]
static
Initial value:
= {
{ 0, 1 },
{ 1, 1 },
{ 12, 11 },
{ 10, 11 },
{ 16, 11 },
{ 40, 33 },
{ 24, 11 },
{ 20, 11 },
{ 32, 11 },
{ 80, 33 },
{ 18, 11 },
{ 15, 11 },
{ 64, 33 },
{ 160, 99 },
{ 4, 3 },
{ 3, 2 },
{ 2, 1 },
}

Definition at line 52 of file hevc_ps.c.