FFmpeg
Macros | Functions
cbs_h265_syntax_template.c File Reference

Go to the source code of this file.

Macros

#define profile_compatible(x)
 
#define profile_compatible(x)
 

Functions

static int FUNC() rbsp_trailing_bits (CodedBitstreamContext *ctx, RWContext *rw)
 
static int FUNC() nal_unit_header (CodedBitstreamContext *ctx, RWContext *rw, H265RawNALUnitHeader *current, int expected_nal_unit_type)
 
static int FUNC() byte_alignment (CodedBitstreamContext *ctx, RWContext *rw)
 
static int FUNC() extension_data (CodedBitstreamContext *ctx, RWContext *rw, H265RawExtensionData *current)
 
static int FUNC() profile_tier_level (CodedBitstreamContext *ctx, RWContext *rw, H265RawProfileTierLevel *current, int profile_present_flag, int max_num_sub_layers_minus1)
 
static int FUNC() sub_layer_hrd_parameters (CodedBitstreamContext *ctx, RWContext *rw, H265RawHRDParameters *hrd, int nal, int sub_layer_id)
 
static int FUNC() hrd_parameters (CodedBitstreamContext *ctx, RWContext *rw, H265RawHRDParameters *current, int common_inf_present_flag, int max_num_sub_layers_minus1)
 
static int FUNC() vui_parameters (CodedBitstreamContext *ctx, RWContext *rw, H265RawVUI *current, const H265RawSPS *sps)
 
static int FUNC() vps (CodedBitstreamContext *ctx, RWContext *rw, H265RawVPS *current)
 
static int FUNC() st_ref_pic_set (CodedBitstreamContext *ctx, RWContext *rw, H265RawSTRefPicSet *current, int st_rps_idx, const H265RawSPS *sps)
 
static int FUNC() scaling_list_data (CodedBitstreamContext *ctx, RWContext *rw, H265RawScalingList *current)
 
static int FUNC() sps_range_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawSPS *current)
 
static int FUNC() sps_scc_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawSPS *current)
 
static int FUNC() sps_multilayer_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawSPS *current)
 
static int FUNC() vui_parameters_default (CodedBitstreamContext *ctx, RWContext *rw, H265RawVUI *current, H265RawSPS *sps)
 
static int FUNC() sps (CodedBitstreamContext *ctx, RWContext *rw, H265RawSPS *current)
 
static int FUNC() pps_range_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current)
 
static int FUNC() colour_mapping_octants (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current, unsigned int inp_depth, unsigned int idx_y, unsigned int idx_cb, unsigned int idx_cr, unsigned int inp_length)
 
static int FUNC() colour_mapping_table (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current)
 
static int FUNC() pps_multilayer_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current)
 
static int FUNC() pps_scc_extension (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current)
 
static int FUNC() pps (CodedBitstreamContext *ctx, RWContext *rw, H265RawPPS *current)
 
static int FUNC() aud (CodedBitstreamContext *ctx, RWContext *rw, H265RawAUD *current)
 
static int FUNC() ref_pic_lists_modification (CodedBitstreamContext *ctx, RWContext *rw, H265RawSliceHeader *current, unsigned int num_pic_total_curr)
 
static int FUNC() pred_weight_table (CodedBitstreamContext *ctx, RWContext *rw, H265RawSliceHeader *current)
 
static int FUNC() slice_segment_header (CodedBitstreamContext *ctx, RWContext *rw, H265RawSliceHeader *current)
 
 SEI_FUNC (sei_buffering_period,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIBufferingPeriod *current, SEIMessageState *sei))
 
 SEI_FUNC (sei_pic_timing,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIPicTiming *current, SEIMessageState *sei))
 
 SEI_FUNC (sei_pan_scan_rect,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIPanScanRect *current, SEIMessageState *sei))
 
 SEI_FUNC (sei_recovery_point,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIRecoveryPoint *current, SEIMessageState *sei))
 
 SEI_FUNC (film_grain_characteristics,(CodedBitstreamContext *ctx, RWContext *rw, H265RawFilmGrainCharacteristics *current, SEIMessageState *state))
 
 SEI_FUNC (sei_display_orientation,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIDisplayOrientation *current, SEIMessageState *sei))
 
 SEI_FUNC (sei_active_parameter_sets,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIActiveParameterSets *current, SEIMessageState *sei))
 
 SEI_FUNC (sei_decoded_picture_hash,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIDecodedPictureHash *current, SEIMessageState *sei))
 
 SEI_FUNC (sei_time_code,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEITimeCode *current, SEIMessageState *sei))
 
 SEI_FUNC (sei_alpha_channel_info,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIAlphaChannelInfo *current, SEIMessageState *sei))
 
 SEI_FUNC (sei_3d_reference_displays_info,(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEI3DReferenceDisplaysInfo *current, SEIMessageState *sei))
 
static int FUNC() sei (CodedBitstreamContext *ctx, RWContext *rw, H265RawSEI *current, int prefix)
 
static int FUNC() filler (CodedBitstreamContext *ctx, RWContext *rw, H265RawFiller *current)
 

Macro Definition Documentation

◆ profile_compatible [1/2]

#define profile_compatible (   x)
Value:
(current->general_profile_idc == (x) || \
current->general_profile_compatibility_flag[x])

◆ profile_compatible [2/2]

#define profile_compatible (   x)
Value:
(current->sub_layer_profile_idc[i] == (x) || \
current->sub_layer_profile_compatibility_flag[i][x])

Function Documentation

◆ rbsp_trailing_bits()

static int FUNC() rbsp_trailing_bits ( CodedBitstreamContext ctx,
RWContext rw 
)
static

Definition at line 19 of file cbs_h265_syntax_template.c.

Referenced by aud(), filler(), pps(), sei(), sps(), and vps().

◆ nal_unit_header()

static int FUNC() nal_unit_header ( CodedBitstreamContext ctx,
RWContext rw,
H265RawNALUnitHeader current,
int  expected_nal_unit_type 
)
static

Definition at line 30 of file cbs_h265_syntax_template.c.

Referenced by aud(), filler(), pps(), sei(), slice_segment_header(), sps(), and vps().

◆ byte_alignment()

static int FUNC() byte_alignment ( CodedBitstreamContext ctx,
RWContext rw 
)
static

Definition at line 50 of file cbs_h265_syntax_template.c.

Referenced by rbsp_trailing_bits(), and slice_segment_header().

◆ extension_data()

static int FUNC() extension_data ( CodedBitstreamContext ctx,
RWContext rw,
H265RawExtensionData current 
)
static

Definition at line 61 of file cbs_h265_syntax_template.c.

Referenced by cbs_mpeg2_read_unit(), cbs_mpeg2_write_header(), pps(), sps(), and vps().

◆ profile_tier_level()

static int FUNC() profile_tier_level ( CodedBitstreamContext ctx,
RWContext rw,
H265RawProfileTierLevel current,
int  profile_present_flag,
int  max_num_sub_layers_minus1 
)
static

Definition at line 88 of file cbs_h265_syntax_template.c.

Referenced by sps(), and vps().

◆ sub_layer_hrd_parameters()

static int FUNC() sub_layer_hrd_parameters ( CodedBitstreamContext ctx,
RWContext rw,
H265RawHRDParameters hrd,
int  nal,
int  sub_layer_id 
)
static

Definition at line 232 of file cbs_h265_syntax_template.c.

Referenced by hrd_parameters().

◆ hrd_parameters()

static int FUNC() hrd_parameters ( CodedBitstreamContext ctx,
RWContext rw,
H265RawHRDParameters current,
int  common_inf_present_flag,
int  max_num_sub_layers_minus1 
)
static

Definition at line 257 of file cbs_h265_syntax_template.c.

Referenced by vps(), and vui_parameters().

◆ vui_parameters()

static int FUNC() vui_parameters ( CodedBitstreamContext ctx,
RWContext rw,
H265RawVUI current,
const H265RawSPS sps 
)
static

Definition at line 322 of file cbs_h265_syntax_template.c.

Referenced by sps().

◆ vps()

static int FUNC() vps ( CodedBitstreamContext ctx,
RWContext rw,
H265RawVPS current 
)
static

◆ st_ref_pic_set()

static int FUNC() st_ref_pic_set ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSTRefPicSet current,
int  st_rps_idx,
const H265RawSPS sps 
)
static

Definition at line 516 of file cbs_h265_syntax_template.c.

Referenced by slice_segment_header(), and sps().

◆ scaling_list_data()

static int FUNC() scaling_list_data ( CodedBitstreamContext ctx,
RWContext rw,
H265RawScalingList current 
)
static

Definition at line 671 of file cbs_h265_syntax_template.c.

Referenced by pps(), and sps().

◆ sps_range_extension()

static int FUNC() sps_range_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSPS current 
)
static

Definition at line 702 of file cbs_h265_syntax_template.c.

Referenced by sps().

◆ sps_scc_extension()

static int FUNC() sps_scc_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSPS current 
)
static

Definition at line 720 of file cbs_h265_syntax_template.c.

Referenced by sps().

◆ sps_multilayer_extension()

static int FUNC() sps_multilayer_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSPS current 
)
static

Definition at line 750 of file cbs_h265_syntax_template.c.

Referenced by sps().

◆ vui_parameters_default()

static int FUNC() vui_parameters_default ( CodedBitstreamContext ctx,
RWContext rw,
H265RawVUI current,
H265RawSPS sps 
)
static

Definition at line 760 of file cbs_h265_syntax_template.c.

Referenced by sps().

◆ sps()

static int FUNC() sps ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSPS current 
)
static

◆ pps_range_extension()

static int FUNC() pps_range_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current 
)
static

Definition at line 1014 of file cbs_h265_syntax_template.c.

Referenced by pps().

◆ colour_mapping_octants()

static int FUNC() colour_mapping_octants ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current,
unsigned int  inp_depth,
unsigned int  idx_y,
unsigned int  idx_cb,
unsigned int  idx_cr,
unsigned int  inp_length 
)
static

Definition at line 1042 of file cbs_h265_syntax_template.c.

Referenced by colour_mapping_table().

◆ colour_mapping_table()

static int FUNC() colour_mapping_table ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current 
)
static

Definition at line 1104 of file cbs_h265_syntax_template.c.

Referenced by pps_multilayer_extension().

◆ pps_multilayer_extension()

static int FUNC() pps_multilayer_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current 
)
static

Definition at line 1137 of file cbs_h265_syntax_template.c.

Referenced by pps().

◆ pps_scc_extension()

static int FUNC() pps_scc_extension ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current 
)
static

Definition at line 1203 of file cbs_h265_syntax_template.c.

Referenced by pps().

◆ pps()

static int FUNC() pps ( CodedBitstreamContext ctx,
RWContext rw,
H265RawPPS current 
)
static

Definition at line 1243 of file cbs_h265_syntax_template.c.

Referenced by slice_segment_header().

◆ aud()

static int FUNC() aud ( CodedBitstreamContext ctx,
RWContext rw,
H265RawAUD current 
)
static

Definition at line 1366 of file cbs_h265_syntax_template.c.

◆ ref_pic_lists_modification()

static int FUNC() ref_pic_lists_modification ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSliceHeader current,
unsigned int  num_pic_total_curr 
)
static

Definition at line 1382 of file cbs_h265_syntax_template.c.

Referenced by slice_segment_header().

◆ pred_weight_table()

static int FUNC() pred_weight_table ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSliceHeader current 
)
static

Definition at line 1408 of file cbs_h265_syntax_template.c.

Referenced by slice_segment_header().

◆ slice_segment_header()

static int FUNC() slice_segment_header ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSliceHeader current 
)
static

Definition at line 1508 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [1/11]

SEI_FUNC ( sei_buffering_period  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIBufferingPeriod *current, SEIMessageState *sei  
)

Definition at line 1828 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [2/11]

SEI_FUNC ( sei_pic_timing  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIPicTiming *current, SEIMessageState *sei  
)

Definition at line 1938 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [3/11]

SEI_FUNC ( sei_pan_scan_rect  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIPanScanRect *current, SEIMessageState *sei  
)

Definition at line 2013 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [4/11]

SEI_FUNC ( sei_recovery_point  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIRecoveryPoint *current, SEIMessageState *sei  
)

Definition at line 2040 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [5/11]

SEI_FUNC ( film_grain_characteristics  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawFilmGrainCharacteristics *current, SEIMessageState *state  
)

Definition at line 2056 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [6/11]

SEI_FUNC ( sei_display_orientation  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIDisplayOrientation *current, SEIMessageState *sei  
)

Definition at line 2121 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [7/11]

SEI_FUNC ( sei_active_parameter_sets  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIActiveParameterSets *current, SEIMessageState *sei  
)

Definition at line 2140 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [8/11]

SEI_FUNC ( sei_decoded_picture_hash  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIDecodedPictureHash *current, SEIMessageState *sei  
)

Definition at line 2177 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [9/11]

SEI_FUNC ( sei_time_code  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEITimeCode *current, SEIMessageState *sei  
)

Definition at line 2209 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [10/11]

SEI_FUNC ( sei_alpha_channel_info  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEIAlphaChannelInfo *current, SEIMessageState *sei  
)

Definition at line 2259 of file cbs_h265_syntax_template.c.

◆ SEI_FUNC() [11/11]

SEI_FUNC ( sei_3d_reference_displays_info  ,
(CodedBitstreamContext *ctx, RWContext *rw, H265RawSEI3DReferenceDisplaysInfo *current, SEIMessageState *sei  
)

Definition at line 2287 of file cbs_h265_syntax_template.c.

◆ sei()

static int FUNC() sei ( CodedBitstreamContext ctx,
RWContext rw,
H265RawSEI current,
int  prefix 
)
static

Definition at line 2347 of file cbs_h265_syntax_template.c.

Referenced by SEI_FUNC().

◆ filler()

static int FUNC() filler ( CodedBitstreamContext ctx,
RWContext rw,
H265RawFiller current 
)
static

Definition at line 2369 of file cbs_h265_syntax_template.c.

i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:256