Lines Matching refs:vps
196 GstH265VPS *vps; in gst_h265_parser_get_vps() local
198 vps = &parser->vps[vps_id]; in gst_h265_parser_get_vps()
200 if (vps->valid) in gst_h265_parser_get_vps()
201 return vps; in gst_h265_parser_get_vps()
1598 GstH265VPS vps; in gst_h265_parser_parse_nal() local
1604 return gst_h265_parser_parse_vps (parser, nalu, &vps); in gst_h265_parser_parse_nal()
1628 GstH265VPS * vps) in gst_h265_parser_parse_vps() argument
1630 GstH265ParserResult res = gst_h265_parse_vps (nalu, vps); in gst_h265_parser_parse_vps()
1633 GST_DEBUG ("adding video parameter set with id: %d to array", vps->id); in gst_h265_parser_parse_vps()
1635 parser->vps[vps->id] = *vps; in gst_h265_parser_parse_vps()
1636 parser->last_vps = &parser->vps[vps->id]; in gst_h265_parser_parse_vps()
1652 gst_h265_parse_vps (GstH265NalUnit * nalu, GstH265VPS * vps) in gst_h265_parse_vps() argument
1662 memset (vps, 0, sizeof (*vps)); in gst_h265_parse_vps()
1664 vps->cprms_present_flag = 1; in gst_h265_parse_vps()
1666 READ_UINT8 (&nr, vps->id, 4); in gst_h265_parse_vps()
1668 READ_UINT8 (&nr, vps->base_layer_internal_flag, 1); in gst_h265_parse_vps()
1669 READ_UINT8 (&nr, vps->base_layer_available_flag, 1); in gst_h265_parse_vps()
1671 READ_UINT8 (&nr, vps->max_layers_minus1, 6); in gst_h265_parse_vps()
1672 READ_UINT8 (&nr, vps->max_sub_layers_minus1, 3); in gst_h265_parse_vps()
1673 CHECK_ALLOWED (vps->max_sub_layers_minus1, 0, 6); in gst_h265_parse_vps()
1674 READ_UINT8 (&nr, vps->temporal_id_nesting_flag, 1); in gst_h265_parse_vps()
1680 if (!gst_h265_parse_profile_tier_level (&vps->profile_tier_level, &nr, in gst_h265_parse_vps()
1681 vps->max_sub_layers_minus1)) in gst_h265_parse_vps()
1684 READ_UINT8 (&nr, vps->sub_layer_ordering_info_present_flag, 1); in gst_h265_parse_vps()
1687 (vps->sub_layer_ordering_info_present_flag ? 0 : in gst_h265_parse_vps()
1688 vps->max_sub_layers_minus1); i <= vps->max_sub_layers_minus1; i++) { in gst_h265_parse_vps()
1689 READ_UE_MAX (&nr, vps->max_dec_pic_buffering_minus1[i], G_MAXUINT32 - 1); in gst_h265_parse_vps()
1690 READ_UE_MAX (&nr, vps->max_num_reorder_pics[i], in gst_h265_parse_vps()
1691 vps->max_dec_pic_buffering_minus1[i]); in gst_h265_parse_vps()
1692 READ_UE_MAX (&nr, vps->max_latency_increase_plus1[i], G_MAXUINT32 - 1); in gst_h265_parse_vps()
1695 if (!vps->sub_layer_ordering_info_present_flag && vps->max_sub_layers_minus1) { in gst_h265_parse_vps()
1696 for (i = 0; i <= (vps->max_sub_layers_minus1 - 1); i++) { in gst_h265_parse_vps()
1697 vps->max_dec_pic_buffering_minus1[i] = in gst_h265_parse_vps()
1698 vps->max_dec_pic_buffering_minus1[vps->max_sub_layers_minus1]; in gst_h265_parse_vps()
1699 vps->max_num_reorder_pics[i] = in gst_h265_parse_vps()
1700 vps->max_num_reorder_pics[vps->max_sub_layers_minus1]; in gst_h265_parse_vps()
1701 vps->max_latency_increase_plus1[i] = in gst_h265_parse_vps()
1702 vps->max_latency_increase_plus1[vps->max_sub_layers_minus1]; in gst_h265_parse_vps()
1706 READ_UINT8 (&nr, vps->max_layer_id, 6); in gst_h265_parse_vps()
1708 CHECK_ALLOWED_MAX (vps->max_layer_id, 63); in gst_h265_parse_vps()
1710 READ_UE_MAX (&nr, vps->num_layer_sets_minus1, 1023); in gst_h265_parse_vps()
1712 CHECK_ALLOWED_MAX (vps->num_layer_sets_minus1, 1023); in gst_h265_parse_vps()
1714 for (i = 1; i <= vps->num_layer_sets_minus1; i++) { in gst_h265_parse_vps()
1715 for (j = 0; j <= vps->max_layer_id; j++) { in gst_h265_parse_vps()
1722 READ_UINT8 (&nr, vps->timing_info_present_flag, 1); in gst_h265_parse_vps()
1724 if (vps->timing_info_present_flag) { in gst_h265_parse_vps()
1725 READ_UINT32 (&nr, vps->num_units_in_tick, 32); in gst_h265_parse_vps()
1726 READ_UINT32 (&nr, vps->time_scale, 32); in gst_h265_parse_vps()
1727 READ_UINT8 (&nr, vps->poc_proportional_to_timing_flag, 1); in gst_h265_parse_vps()
1729 if (vps->poc_proportional_to_timing_flag) in gst_h265_parse_vps()
1730 READ_UE_MAX (&nr, vps->num_ticks_poc_diff_one_minus1, G_MAXUINT32 - 1); in gst_h265_parse_vps()
1732 READ_UE_MAX (&nr, vps->num_hrd_parameters, 1024); in gst_h265_parse_vps()
1735 CHECK_ALLOWED_MAX (vps->num_hrd_parameters, vps->num_layer_sets_minus1 + 1); in gst_h265_parse_vps()
1737 if (vps->num_hrd_parameters) { in gst_h265_parse_vps()
1738 READ_UE_MAX (&nr, vps->hrd_layer_set_idx, 1023); in gst_h265_parse_vps()
1742 CHECK_ALLOWED_MAX (vps->hrd_layer_set_idx, vps->num_layer_sets_minus1); in gst_h265_parse_vps()
1744 if (!gst_h265_parse_hrd_parameters (&vps->hrd_params, &nr, in gst_h265_parse_vps()
1745 vps->cprms_present_flag, vps->max_sub_layers_minus1)) in gst_h265_parse_vps()
1758 for (i = 1; i < vps->num_hrd_parameters; i++) { in gst_h265_parse_vps()
1764 CHECK_ALLOWED_MAX (hrd_layer_set_idx, vps->num_layer_sets_minus1); in gst_h265_parse_vps()
1770 cprms_present_flag, vps->max_sub_layers_minus1)) in gst_h265_parse_vps()
1774 READ_UINT8 (&nr, vps->vps_extension, 1); in gst_h265_parse_vps()
1775 vps->valid = TRUE; in gst_h265_parse_vps()
1781 vps->valid = FALSE; in gst_h265_parse_vps()
1829 GstH265VPS *vps; in gst_h265_parse_sps() local
1844 vps = gst_h265_parser_get_vps (parser, vps_id); in gst_h265_parse_sps()
1845 if (!vps) { in gst_h265_parse_sps()
1849 sps->vps = vps; in gst_h265_parse_sps()
2083 } else if (vps && vps->timing_info_present_flag) { in gst_h265_parse_sps()
2084 sps->fps_num = vps->time_scale; in gst_h265_parse_sps()
2085 sps->fps_den = vps->num_units_in_tick; in gst_h265_parse_sps()
3033 gst_h265_parser_update_vps (GstH265Parser * parser, GstH265VPS * vps) in gst_h265_parser_update_vps() argument
3036 g_return_val_if_fail (vps != NULL, GST_H265_PARSER_ERROR); in gst_h265_parser_update_vps()
3037 g_return_val_if_fail (vps->id < GST_H265_MAX_VPS_COUNT, in gst_h265_parser_update_vps()
3040 if (!vps->valid) { in gst_h265_parser_update_vps()
3045 GST_DEBUG ("Updating video parameter set with id: %d", vps->id); in gst_h265_parser_update_vps()
3047 parser->vps[vps->id] = *vps; in gst_h265_parser_update_vps()
3048 parser->last_vps = &parser->vps[vps->id]; in gst_h265_parser_update_vps()
3078 if (sps->vps) { in gst_h265_parser_update_sps()
3079 GstH265VPS *vps = gst_h265_parser_get_vps (parser, sps->vps->id); in gst_h265_parser_update_sps() local
3080 if (!vps || vps != sps->vps) { in gst_h265_parser_update_sps()