Lines Matching full:sps
94 * because it needs to write SPS/PPS NAL units. The encoder writes the actual
1572 struct nal_h264_sps *sps; in allegro_h264_write_sps() local
1583 sps = kzalloc(sizeof(*sps), GFP_KERNEL); in allegro_h264_write_sps()
1584 if (!sps) in allegro_h264_write_sps()
1590 sps->profile_idc = nal_h264_profile(profile); in allegro_h264_write_sps()
1591 sps->constraint_set0_flag = 0; in allegro_h264_write_sps()
1592 sps->constraint_set1_flag = 1; in allegro_h264_write_sps()
1593 sps->constraint_set2_flag = 0; in allegro_h264_write_sps()
1594 sps->constraint_set3_flag = 0; in allegro_h264_write_sps()
1595 sps->constraint_set4_flag = 0; in allegro_h264_write_sps()
1596 sps->constraint_set5_flag = 0; in allegro_h264_write_sps()
1597 sps->level_idc = nal_h264_level(level); in allegro_h264_write_sps()
1598 sps->seq_parameter_set_id = 0; in allegro_h264_write_sps()
1599 sps->log2_max_frame_num_minus4 = LOG2_MAX_FRAME_NUM - 4; in allegro_h264_write_sps()
1600 sps->pic_order_cnt_type = 0; in allegro_h264_write_sps()
1601 sps->log2_max_pic_order_cnt_lsb_minus4 = LOG2_MAX_PIC_ORDER_CNT - 4; in allegro_h264_write_sps()
1602 sps->max_num_ref_frames = 3; in allegro_h264_write_sps()
1603 sps->gaps_in_frame_num_value_allowed_flag = 0; in allegro_h264_write_sps()
1604 sps->pic_width_in_mbs_minus1 = in allegro_h264_write_sps()
1606 sps->pic_height_in_map_units_minus1 = in allegro_h264_write_sps()
1608 sps->frame_mbs_only_flag = 1; in allegro_h264_write_sps()
1609 sps->mb_adaptive_frame_field_flag = 0; in allegro_h264_write_sps()
1610 sps->direct_8x8_inference_flag = 1; in allegro_h264_write_sps()
1611 sps->frame_cropping_flag = in allegro_h264_write_sps()
1613 if (sps->frame_cropping_flag) { in allegro_h264_write_sps()
1614 sps->crop_left = 0; in allegro_h264_write_sps()
1615 sps->crop_right = (round_up(channel->width, size_mb) - channel->width) / crop_unit_x; in allegro_h264_write_sps()
1616 sps->crop_top = 0; in allegro_h264_write_sps()
1617 sps->crop_bottom = (round_up(channel->height, size_mb) - channel->height) / crop_unit_y; in allegro_h264_write_sps()
1619 sps->vui_parameters_present_flag = 1; in allegro_h264_write_sps()
1620 sps->vui.aspect_ratio_info_present_flag = 0; in allegro_h264_write_sps()
1621 sps->vui.overscan_info_present_flag = 0; in allegro_h264_write_sps()
1623 sps->vui.video_signal_type_present_flag = 1; in allegro_h264_write_sps()
1624 sps->vui.video_format = 5; /* unspecified */ in allegro_h264_write_sps()
1625 sps->vui.video_full_range_flag = nal_h264_full_range(channel->quantization); in allegro_h264_write_sps()
1626 sps->vui.colour_description_present_flag = 1; in allegro_h264_write_sps()
1627 sps->vui.colour_primaries = nal_h264_color_primaries(channel->colorspace); in allegro_h264_write_sps()
1628 sps->vui.transfer_characteristics = in allegro_h264_write_sps()
1630 sps->vui.matrix_coefficients = in allegro_h264_write_sps()
1633 sps->vui.chroma_loc_info_present_flag = 1; in allegro_h264_write_sps()
1634 sps->vui.chroma_sample_loc_type_top_field = 0; in allegro_h264_write_sps()
1635 sps->vui.chroma_sample_loc_type_bottom_field = 0; in allegro_h264_write_sps()
1637 sps->vui.timing_info_present_flag = 1; in allegro_h264_write_sps()
1638 sps->vui.num_units_in_tick = channel->framerate.denominator; in allegro_h264_write_sps()
1639 sps->vui.time_scale = 2 * channel->framerate.numerator; in allegro_h264_write_sps()
1641 sps->vui.fixed_frame_rate_flag = 1; in allegro_h264_write_sps()
1642 sps->vui.nal_hrd_parameters_present_flag = 0; in allegro_h264_write_sps()
1643 sps->vui.vcl_hrd_parameters_present_flag = 1; in allegro_h264_write_sps()
1644 sps->vui.vcl_hrd_parameters.cpb_cnt_minus1 = 0; in allegro_h264_write_sps()
1646 sps->vui.vcl_hrd_parameters.bit_rate_scale = in allegro_h264_write_sps()
1648 sps->vui.vcl_hrd_parameters.bit_rate_value_minus1[0] = in allegro_h264_write_sps()
1649 channel->bitrate_peak / (1 << (6 + sps->vui.vcl_hrd_parameters.bit_rate_scale)) - 1; in allegro_h264_write_sps()
1653 sps->vui.vcl_hrd_parameters.cpb_size_scale = cpb_size_scale; in allegro_h264_write_sps()
1654 sps->vui.vcl_hrd_parameters.cpb_size_value_minus1[0] = in allegro_h264_write_sps()
1656 sps->vui.vcl_hrd_parameters.cbr_flag[0] = in allegro_h264_write_sps()
1658 sps->vui.vcl_hrd_parameters.initial_cpb_removal_delay_length_minus1 = 31; in allegro_h264_write_sps()
1659 sps->vui.vcl_hrd_parameters.cpb_removal_delay_length_minus1 = 31; in allegro_h264_write_sps()
1660 sps->vui.vcl_hrd_parameters.dpb_output_delay_length_minus1 = 31; in allegro_h264_write_sps()
1661 sps->vui.vcl_hrd_parameters.time_offset_length = 0; in allegro_h264_write_sps()
1662 sps->vui.low_delay_hrd_flag = 0; in allegro_h264_write_sps()
1663 sps->vui.pic_struct_present_flag = 1; in allegro_h264_write_sps()
1664 sps->vui.bitstream_restriction_flag = 0; in allegro_h264_write_sps()
1666 size = nal_h264_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_h264_write_sps()
1668 kfree(sps); in allegro_h264_write_sps()
1762 struct nal_hevc_sps *sps; in allegro_hevc_write_sps() local
1773 sps = kzalloc(sizeof(*sps), GFP_KERNEL); in allegro_hevc_write_sps()
1774 if (!sps) in allegro_hevc_write_sps()
1777 sps->temporal_id_nesting_flag = 1; in allegro_hevc_write_sps()
1779 ptl = &sps->profile_tier_level; in allegro_hevc_write_sps()
1787 sps->seq_parameter_set_id = 0; in allegro_hevc_write_sps()
1788 sps->chroma_format_idc = 1; /* Only 4:2:0 sampling supported */ in allegro_hevc_write_sps()
1789 sps->pic_width_in_luma_samples = round_up(channel->width, 8); in allegro_hevc_write_sps()
1790 sps->pic_height_in_luma_samples = round_up(channel->height, 8); in allegro_hevc_write_sps()
1791 sps->conf_win_right_offset = in allegro_hevc_write_sps()
1792 sps->pic_width_in_luma_samples - channel->width; in allegro_hevc_write_sps()
1793 sps->conf_win_bottom_offset = in allegro_hevc_write_sps()
1794 sps->pic_height_in_luma_samples - channel->height; in allegro_hevc_write_sps()
1795 sps->conformance_window_flag = in allegro_hevc_write_sps()
1796 sps->conf_win_right_offset || sps->conf_win_bottom_offset; in allegro_hevc_write_sps()
1798 sps->log2_max_pic_order_cnt_lsb_minus4 = LOG2_MAX_PIC_ORDER_CNT - 4; in allegro_hevc_write_sps()
1800 sps->sub_layer_ordering_info_present_flag = 1; in allegro_hevc_write_sps()
1801 sps->max_dec_pic_buffering_minus1[0] = num_ref_frames; in allegro_hevc_write_sps()
1802 sps->max_num_reorder_pics[0] = num_ref_frames; in allegro_hevc_write_sps()
1804 sps->log2_min_luma_coding_block_size_minus3 = in allegro_hevc_write_sps()
1806 sps->log2_diff_max_min_luma_coding_block_size = in allegro_hevc_write_sps()
1808 sps->log2_min_luma_transform_block_size_minus2 = in allegro_hevc_write_sps()
1810 sps->log2_diff_max_min_luma_transform_block_size = in allegro_hevc_write_sps()
1812 sps->max_transform_hierarchy_depth_intra = in allegro_hevc_write_sps()
1814 sps->max_transform_hierarchy_depth_inter = in allegro_hevc_write_sps()
1817 sps->sps_temporal_mvp_enabled_flag = channel->temporal_mvp_enable; in allegro_hevc_write_sps()
1818 sps->strong_intra_smoothing_enabled_flag = channel->max_cu_size > 4; in allegro_hevc_write_sps()
1820 sps->vui_parameters_present_flag = 1; in allegro_hevc_write_sps()
1821 vui = &sps->vui; in allegro_hevc_write_sps()
1864 size = nal_hevc_write_sps(&dev->plat_dev->dev, dest, n, sps); in allegro_hevc_write_sps()
1866 kfree(sps); in allegro_hevc_write_sps()
2034 * because we will put the sps and pps data there. in allegro_channel_finish_frame()
2071 "channel %d: wrote %zd byte SPS nal unit\n", in allegro_channel_finish_frame()