Lines Matching refs:sps
138 H264RawSPS *sps) in h264_metadata_update_sps() argument
164 sps->vui.aspect_ratio_idc = 255; in h264_metadata_update_sps()
165 sps->vui.sar_width = num; in h264_metadata_update_sps()
166 sps->vui.sar_height = den; in h264_metadata_update_sps()
168 sps->vui.aspect_ratio_idc = i; in h264_metadata_update_sps()
170 sps->vui.aspect_ratio_info_present_flag = 1; in h264_metadata_update_sps()
176 sps->vui.field = ctx->field; \ in h264_metadata_update_sps()
183 sps->vui.overscan_info_present_flag = 1; in h264_metadata_update_sps()
204 sps->vui.colour_description_present_flag = 1; in h264_metadata_update_sps()
206 sps->vui.video_signal_type_present_flag = 1; in h264_metadata_update_sps()
210 sps->vui.chroma_sample_loc_type_top_field = in h264_metadata_update_sps()
212 sps->vui.chroma_sample_loc_type_bottom_field = in h264_metadata_update_sps()
214 sps->vui.chroma_loc_info_present_flag = 1; in h264_metadata_update_sps()
224 sps->vui.time_scale = num; in h264_metadata_update_sps()
225 sps->vui.num_units_in_tick = den; in h264_metadata_update_sps()
227 sps->vui.timing_info_present_flag = 1; in h264_metadata_update_sps()
232 if (sps->separate_colour_plane_flag || sps->chroma_format_idc == 0) { in h264_metadata_update_sps()
234 crop_unit_y = 2 - sps->frame_mbs_only_flag; in h264_metadata_update_sps()
236 crop_unit_x = 1 + (sps->chroma_format_idc < 3); in h264_metadata_update_sps()
237 crop_unit_y = (1 + (sps->chroma_format_idc < 2)) * in h264_metadata_update_sps()
238 (2 - sps->frame_mbs_only_flag); in h264_metadata_update_sps()
247 sps->frame_crop_ ## border ## _offset = \ in h264_metadata_update_sps()
249 sps->frame_cropping_flag = 1; \ in h264_metadata_update_sps()
267 if (sps->vui.nal_hrd_parameters_present_flag) { in h264_metadata_update_sps()
268 bit_rate = (sps->vui.nal_hrd_parameters.bit_rate_value_minus1[0] + 1) * in h264_metadata_update_sps()
269 (INT64_C(1) << (sps->vui.nal_hrd_parameters.bit_rate_scale + 6)); in h264_metadata_update_sps()
270 } else if (sps->vui.vcl_hrd_parameters_present_flag) { in h264_metadata_update_sps()
271 bit_rate = (sps->vui.vcl_hrd_parameters.bit_rate_value_minus1[0] + 1) * in h264_metadata_update_sps()
272 (INT64_C(1) << (sps->vui.vcl_hrd_parameters.bit_rate_scale + 6)); in h264_metadata_update_sps()
280 dpb_frames = sps->vui.bitstream_restriction_flag ? in h264_metadata_update_sps()
281 sps->vui.max_dec_frame_buffering : H264_MAX_DPB_FRAMES; in h264_metadata_update_sps()
283 width = 16 * (sps->pic_width_in_mbs_minus1 + 1); in h264_metadata_update_sps()
284 height = 16 * (sps->pic_height_in_map_units_minus1 + 1) * in h264_metadata_update_sps()
285 (2 - sps->frame_mbs_only_flag); in h264_metadata_update_sps()
287 if (sps->vui.timing_info_present_flag) in h264_metadata_update_sps()
288 framerate = sps->vui.time_scale / sps->vui.num_units_in_tick / 2; in h264_metadata_update_sps()
292 desc = ff_h264_guess_level(sps->profile_idc, bit_rate, framerate, in h264_metadata_update_sps()
306 if (sps->profile_idc == 66 || in h264_metadata_update_sps()
307 sps->profile_idc == 77 || in h264_metadata_update_sps()
308 sps->profile_idc == 88) { in h264_metadata_update_sps()
309 sps->level_idc = 11; in h264_metadata_update_sps()
310 sps->constraint_set3_flag = 1; in h264_metadata_update_sps()
312 sps->level_idc = 9; in h264_metadata_update_sps()
315 sps->level_idc = level_idc; in h264_metadata_update_sps()
320 sps->vui_parameters_present_flag = 1; in h264_metadata_update_sps()