Lines Matching full:sps
11 * RBSP for VPS/SPS/PPS nal units and add them to the encoded stream if the
340 static void nal_hevc_rbsp_sps(struct rbsp *rbsp, struct nal_hevc_sps *sps) in nal_hevc_rbsp_sps() argument
344 rbsp_bits(rbsp, 4, &sps->video_parameter_set_id); in nal_hevc_rbsp_sps()
345 rbsp_bits(rbsp, 3, &sps->max_sub_layers_minus1); in nal_hevc_rbsp_sps()
346 rbsp_bit(rbsp, &sps->temporal_id_nesting_flag); in nal_hevc_rbsp_sps()
347 nal_hevc_rbsp_profile_tier_level(rbsp, &sps->profile_tier_level); in nal_hevc_rbsp_sps()
348 rbsp_uev(rbsp, &sps->seq_parameter_set_id); in nal_hevc_rbsp_sps()
350 rbsp_uev(rbsp, &sps->chroma_format_idc); in nal_hevc_rbsp_sps()
351 if (sps->chroma_format_idc == 3) in nal_hevc_rbsp_sps()
352 rbsp_bit(rbsp, &sps->separate_colour_plane_flag); in nal_hevc_rbsp_sps()
353 rbsp_uev(rbsp, &sps->pic_width_in_luma_samples); in nal_hevc_rbsp_sps()
354 rbsp_uev(rbsp, &sps->pic_height_in_luma_samples); in nal_hevc_rbsp_sps()
355 rbsp_bit(rbsp, &sps->conformance_window_flag); in nal_hevc_rbsp_sps()
356 if (sps->conformance_window_flag) { in nal_hevc_rbsp_sps()
357 rbsp_uev(rbsp, &sps->conf_win_left_offset); in nal_hevc_rbsp_sps()
358 rbsp_uev(rbsp, &sps->conf_win_right_offset); in nal_hevc_rbsp_sps()
359 rbsp_uev(rbsp, &sps->conf_win_top_offset); in nal_hevc_rbsp_sps()
360 rbsp_uev(rbsp, &sps->conf_win_bottom_offset); in nal_hevc_rbsp_sps()
362 rbsp_uev(rbsp, &sps->bit_depth_luma_minus8); in nal_hevc_rbsp_sps()
363 rbsp_uev(rbsp, &sps->bit_depth_chroma_minus8); in nal_hevc_rbsp_sps()
365 rbsp_uev(rbsp, &sps->log2_max_pic_order_cnt_lsb_minus4); in nal_hevc_rbsp_sps()
367 rbsp_bit(rbsp, &sps->sub_layer_ordering_info_present_flag); in nal_hevc_rbsp_sps()
368 for (i = (sps->sub_layer_ordering_info_present_flag ? 0 : sps->max_sub_layers_minus1); in nal_hevc_rbsp_sps()
369 i <= sps->max_sub_layers_minus1; i++) { in nal_hevc_rbsp_sps()
370 rbsp_uev(rbsp, &sps->max_dec_pic_buffering_minus1[i]); in nal_hevc_rbsp_sps()
371 rbsp_uev(rbsp, &sps->max_num_reorder_pics[i]); in nal_hevc_rbsp_sps()
372 rbsp_uev(rbsp, &sps->max_latency_increase_plus1[i]); in nal_hevc_rbsp_sps()
374 rbsp_uev(rbsp, &sps->log2_min_luma_coding_block_size_minus3); in nal_hevc_rbsp_sps()
375 rbsp_uev(rbsp, &sps->log2_diff_max_min_luma_coding_block_size); in nal_hevc_rbsp_sps()
376 rbsp_uev(rbsp, &sps->log2_min_luma_transform_block_size_minus2); in nal_hevc_rbsp_sps()
377 rbsp_uev(rbsp, &sps->log2_diff_max_min_luma_transform_block_size); in nal_hevc_rbsp_sps()
378 rbsp_uev(rbsp, &sps->max_transform_hierarchy_depth_inter); in nal_hevc_rbsp_sps()
379 rbsp_uev(rbsp, &sps->max_transform_hierarchy_depth_intra); in nal_hevc_rbsp_sps()
381 rbsp_bit(rbsp, &sps->scaling_list_enabled_flag); in nal_hevc_rbsp_sps()
382 if (sps->scaling_list_enabled_flag) in nal_hevc_rbsp_sps()
385 rbsp_bit(rbsp, &sps->amp_enabled_flag); in nal_hevc_rbsp_sps()
386 rbsp_bit(rbsp, &sps->sample_adaptive_offset_enabled_flag); in nal_hevc_rbsp_sps()
387 rbsp_bit(rbsp, &sps->pcm_enabled_flag); in nal_hevc_rbsp_sps()
388 if (sps->pcm_enabled_flag) { in nal_hevc_rbsp_sps()
389 rbsp_bits(rbsp, 4, &sps->pcm_sample_bit_depth_luma_minus1); in nal_hevc_rbsp_sps()
390 rbsp_bits(rbsp, 4, &sps->pcm_sample_bit_depth_chroma_minus1); in nal_hevc_rbsp_sps()
391 rbsp_uev(rbsp, &sps->log2_min_pcm_luma_coding_block_size_minus3); in nal_hevc_rbsp_sps()
392 rbsp_uev(rbsp, &sps->log2_diff_max_min_pcm_luma_coding_block_size); in nal_hevc_rbsp_sps()
393 rbsp_bit(rbsp, &sps->pcm_loop_filter_disabled_flag); in nal_hevc_rbsp_sps()
396 rbsp_uev(rbsp, &sps->num_short_term_ref_pic_sets); in nal_hevc_rbsp_sps()
397 if (sps->num_short_term_ref_pic_sets > 0) in nal_hevc_rbsp_sps()
400 rbsp_bit(rbsp, &sps->long_term_ref_pics_present_flag); in nal_hevc_rbsp_sps()
401 if (sps->long_term_ref_pics_present_flag) in nal_hevc_rbsp_sps()
404 rbsp_bit(rbsp, &sps->sps_temporal_mvp_enabled_flag); in nal_hevc_rbsp_sps()
405 rbsp_bit(rbsp, &sps->strong_intra_smoothing_enabled_flag); in nal_hevc_rbsp_sps()
406 rbsp_bit(rbsp, &sps->vui_parameters_present_flag); in nal_hevc_rbsp_sps()
407 if (sps->vui_parameters_present_flag) in nal_hevc_rbsp_sps()
408 nal_hevc_rbsp_vui_parameters(rbsp, &sps->vui); in nal_hevc_rbsp_sps()
410 rbsp_bit(rbsp, &sps->extension_present_flag); in nal_hevc_rbsp_sps()
411 if (sps->extension_present_flag) { in nal_hevc_rbsp_sps()
412 rbsp_bit(rbsp, &sps->sps_range_extension_flag); in nal_hevc_rbsp_sps()
413 rbsp_bit(rbsp, &sps->sps_multilayer_extension_flag); in nal_hevc_rbsp_sps()
414 rbsp_bit(rbsp, &sps->sps_3d_extension_flag); in nal_hevc_rbsp_sps()
415 rbsp_bit(rbsp, &sps->sps_scc_extension_flag); in nal_hevc_rbsp_sps()
416 rbsp_bits(rbsp, 5, &sps->sps_extension_4bits); in nal_hevc_rbsp_sps()
418 if (sps->sps_range_extension_flag) in nal_hevc_rbsp_sps()
420 if (sps->sps_multilayer_extension_flag) in nal_hevc_rbsp_sps()
422 if (sps->sps_3d_extension_flag) in nal_hevc_rbsp_sps()
424 if (sps->sps_scc_extension_flag) in nal_hevc_rbsp_sps()
426 if (sps->sps_extension_4bits) in nal_hevc_rbsp_sps()
601 * nal_hevc_write_sps() - Write SPS NAL unit into RBSP format
605 * @sps: &struct nal_hevc_sps to convert to RBSP
607 * Convert @sps to RBSP data and write it into @dest.
609 * The size of the SPS NAL unit is not known in advance and this function will
610 * fail, if @dest does not hold sufficient space for the SPS NAL unit.
615 void *dest, size_t n, struct nal_hevc_sps *sps) in nal_hevc_write_sps() argument
636 nal_hevc_rbsp_sps(&rbsp, sps); in nal_hevc_write_sps()
648 * nal_hevc_read_sps() - Read SPS NAL unit from RBSP format
650 * @sps: the &struct nal_hevc_sps to fill from the RBSP data
654 * Read RBSP data from @src and use it to fill @sps.
659 struct nal_hevc_sps *sps, void *src, size_t n) in nal_hevc_read_sps() argument
684 nal_hevc_rbsp_sps(&rbsp, sps); in nal_hevc_read_sps()