Go to the documentation of this file.
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++) {
77 put_bits(&pb, 1,
vps->vps_temporal_id_nesting_flag);
82 put_bits(&pb, 1,
vps->vps_sub_layer_ordering_info_present_flag);
83 for (
i =
vps->vps_sub_layer_ordering_info_present_flag ? 0 :
vps->vps_max_layers - 1;
84 i < vps->vps_max_sub_layers;
i++) {
93 if (
vps->vps_num_layer_sets > 1) {
98 put_bits(&pb, 1,
vps->vps_timing_info_present_flag);
99 if (
vps->vps_timing_info_present_flag) {
102 put_bits(&pb, 1,
vps->vps_poc_proportional_to_timing_flag);
103 if (
vps->vps_poc_proportional_to_timing_flag)
107 if (
vps->vps_num_hrd_parameters) {
static void av_unused put_bits32(PutBitContext *s, uint32_t value)
Write exactly 32 bits into a bitstream.
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
uint8_t sub_layer_level_present_flag[HEVC_MAX_SUB_LAYERS]
uint8_t sub_layer_profile_present_flag[HEVC_MAX_SUB_LAYERS]
static void write_ptl(PutBitContext *pb, PTL *ptl, int max_num_sub_layers)
const H265RawProfileTierLevel * ptl
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
static int FUNC() vps(CodedBitstreamContext *ctx, RWContext *rw, H265RawVPS *current)
static void write_ptl_layer(PutBitContext *pb, PTLCommon *ptl)
void avpriv_align_put_bits(PutBitContext *s)
Pad the bitstream with zeros up to the next byte boundary.
void avpriv_report_missing_feature(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
static void set_ue_golomb(PutBitContext *pb, int i)
write unsigned exp golomb code.
#define i(width, name, range_min, range_max)
static int put_bits_count(PutBitContext *s)
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
int ff_hevc_encode_nal_vps(HEVCVPS *vps, unsigned int id, uint8_t *buf, int buf_size)