32 for (i = 0; i < 32; i++)
49 for (i = 0; i < max_num_sub_layers - 1; i++) {
54 if (max_num_sub_layers > 1)
55 for (i = max_num_sub_layers - 1; i < 8; i++)
58 for (i = 0; i < max_num_sub_layers - 1; i++) {
84 i < vps->vps_max_sub_layers; i++) {
static void av_unused put_bits32(PutBitContext *s, uint32_t value)
Write exactly 32 bits into a bitstream.
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
static void set_ue_golomb(PutBitContext *pb, int i)
write unsigned exp golomb code.
int vps_num_ticks_poc_diff_one
vps_num_ticks_poc_diff_one_minus1 + 1
void avpriv_align_put_bits(PutBitContext *s)
Pad the bitstream with zeros up to the next byte boundary.
static void write_ptl(PutBitContext *pb, PTL *ptl, int max_num_sub_layers)
uint8_t profile_compatibility_flag[32]
uint8_t sub_layer_profile_present_flag[MAX_SUB_LAYERS]
unsigned int vps_num_reorder_pics[MAX_SUB_LAYERS]
uint8_t vps_timing_info_present_flag
int vps_max_sub_layers
vps_max_temporal_layers_minus1 + 1
uint8_t frame_only_constraint_flag
uint8_t vps_temporal_id_nesting_flag
static int put_bits_count(PutBitContext *s)
uint32_t vps_num_units_in_tick
int vps_num_layer_sets
vps_num_layer_sets_minus1 + 1
uint8_t vps_poc_proportional_to_timing_flag
static void write_ptl_layer(PutBitContext *pb, PTLCommon *ptl)
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
uint8_t sub_layer_level_present_flag[MAX_SUB_LAYERS]
int vps_num_hrd_parameters
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
PTLCommon sub_layer_ptl[MAX_SUB_LAYERS]
unsigned int vps_max_dec_pic_buffering[MAX_SUB_LAYERS]
unsigned int vps_max_latency_increase[MAX_SUB_LAYERS]
int ff_hevc_encode_nal_vps(HEVCVPS *vps, unsigned int id, uint8_t *buf, int buf_size)
uint8_t progressive_source_flag
uint8_t non_packed_constraint_flag
uint8_t interlaced_source_flag
int vps_sub_layer_ordering_info_present_flag