• Home
  • Raw
  • Download

Lines Matching refs:vps

109         if (s->vps == (const HEVCVPS*)s->vps_list[id]->data)  in remove_vps()
110 s->vps = NULL; in remove_vps()
464 HEVCVPS *vps; in ff_hevc_decode_nal_vps() local
465 AVBufferRef *vps_buf = av_buffer_allocz(sizeof(*vps)); in ff_hevc_decode_nal_vps()
469 vps = (HEVCVPS*)vps_buf->data; in ff_hevc_decode_nal_vps()
474 if (nal_size > sizeof(vps->data)) { in ff_hevc_decode_nal_vps()
477 nal_size, sizeof(vps->data)); in ff_hevc_decode_nal_vps()
478 vps->data_size = sizeof(vps->data); in ff_hevc_decode_nal_vps()
480 vps->data_size = nal_size; in ff_hevc_decode_nal_vps()
482 memcpy(vps->data, gb->buffer, vps->data_size); in ff_hevc_decode_nal_vps()
491 vps->vps_max_layers = get_bits(gb, 6) + 1; in ff_hevc_decode_nal_vps()
492 vps->vps_max_sub_layers = get_bits(gb, 3) + 1; in ff_hevc_decode_nal_vps()
493 vps->vps_temporal_id_nesting_flag = get_bits1(gb); in ff_hevc_decode_nal_vps()
500 if (vps->vps_max_sub_layers > HEVC_MAX_SUB_LAYERS) { in ff_hevc_decode_nal_vps()
502 vps->vps_max_sub_layers); in ff_hevc_decode_nal_vps()
506 if (parse_ptl(gb, avctx, &vps->ptl, vps->vps_max_sub_layers) < 0) in ff_hevc_decode_nal_vps()
509 vps->vps_sub_layer_ordering_info_present_flag = get_bits1(gb); in ff_hevc_decode_nal_vps()
511 i = vps->vps_sub_layer_ordering_info_present_flag ? 0 : vps->vps_max_sub_layers - 1; in ff_hevc_decode_nal_vps()
512 for (; i < vps->vps_max_sub_layers; i++) { in ff_hevc_decode_nal_vps()
513 vps->vps_max_dec_pic_buffering[i] = get_ue_golomb_long(gb) + 1; in ff_hevc_decode_nal_vps()
514 vps->vps_num_reorder_pics[i] = get_ue_golomb_long(gb); in ff_hevc_decode_nal_vps()
515 vps->vps_max_latency_increase[i] = get_ue_golomb_long(gb) - 1; in ff_hevc_decode_nal_vps()
517 … if (vps->vps_max_dec_pic_buffering[i] > HEVC_MAX_DPB_SIZE || !vps->vps_max_dec_pic_buffering[i]) { in ff_hevc_decode_nal_vps()
519 vps->vps_max_dec_pic_buffering[i] - 1); in ff_hevc_decode_nal_vps()
522 if (vps->vps_num_reorder_pics[i] > vps->vps_max_dec_pic_buffering[i] - 1) { in ff_hevc_decode_nal_vps()
524 vps->vps_num_reorder_pics[i]); in ff_hevc_decode_nal_vps()
530 vps->vps_max_layer_id = get_bits(gb, 6); in ff_hevc_decode_nal_vps()
531 vps->vps_num_layer_sets = get_ue_golomb_long(gb) + 1; in ff_hevc_decode_nal_vps()
532 if (vps->vps_num_layer_sets < 1 || vps->vps_num_layer_sets > 1024 || in ff_hevc_decode_nal_vps()
533 (vps->vps_num_layer_sets - 1LL) * (vps->vps_max_layer_id + 1LL) > get_bits_left(gb)) { in ff_hevc_decode_nal_vps()
538 for (i = 1; i < vps->vps_num_layer_sets; i++) in ff_hevc_decode_nal_vps()
539 for (j = 0; j <= vps->vps_max_layer_id; j++) in ff_hevc_decode_nal_vps()
542 vps->vps_timing_info_present_flag = get_bits1(gb); in ff_hevc_decode_nal_vps()
543 if (vps->vps_timing_info_present_flag) { in ff_hevc_decode_nal_vps()
544 vps->vps_num_units_in_tick = get_bits_long(gb, 32); in ff_hevc_decode_nal_vps()
545 vps->vps_time_scale = get_bits_long(gb, 32); in ff_hevc_decode_nal_vps()
546 vps->vps_poc_proportional_to_timing_flag = get_bits1(gb); in ff_hevc_decode_nal_vps()
547 if (vps->vps_poc_proportional_to_timing_flag) in ff_hevc_decode_nal_vps()
548 vps->vps_num_ticks_poc_diff_one = get_ue_golomb_long(gb) + 1; in ff_hevc_decode_nal_vps()
549 vps->vps_num_hrd_parameters = get_ue_golomb_long(gb); in ff_hevc_decode_nal_vps()
550 if (vps->vps_num_hrd_parameters > (unsigned)vps->vps_num_layer_sets) { in ff_hevc_decode_nal_vps()
552 "vps_num_hrd_parameters %d is invalid\n", vps->vps_num_hrd_parameters); in ff_hevc_decode_nal_vps()
555 for (i = 0; i < vps->vps_num_hrd_parameters; i++) { in ff_hevc_decode_nal_vps()
561 decode_hrd(gb, common_inf_present, vps->vps_max_sub_layers); in ff_hevc_decode_nal_vps()
1760 ps->vps = NULL; in ff_hevc_ps_uninit()