Lines Matching full:ctr

664 	struct venc_controls *ctr = &inst->controls.enc;  in venc_set_properties()  local
709 ctr->h264_entropy_mode); in venc_set_properties()
719 ctr->h264_loop_filter_mode); in venc_set_properties()
720 deblock.slice_alpha_offset = ctr->h264_loop_filter_alpha; in venc_set_properties()
721 deblock.slice_beta_offset = ctr->h264_loop_filter_beta; in venc_set_properties()
729 if (ctr->profile.h264 == V4L2_MPEG_VIDEO_H264_PROFILE_HIGH || in venc_set_properties()
730 ctr->profile.h264 == V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_HIGH) in venc_set_properties()
731 h264_transform.enable_type = ctr->h264_8x8_transform; in venc_set_properties()
737 if (ctr->layer_bitrate) { in venc_set_properties()
741 ret = hfi_session_set_property(inst, ptype, &ctr->h264_hier_layers); in venc_set_properties()
746 ret = hfi_session_set_property(inst, ptype, &ctr->layer_bitrate); in venc_set_properties()
750 for (i = 0; i < ctr->h264_hier_layers; ++i) { in venc_set_properties()
752 brate.bitrate = ctr->h264_hier_layer_bitrate[i]; in venc_set_properties()
777 ctr->profile.hevc == V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10) { in venc_set_properties()
785 ctr->mastering.display_primaries_x[c]; in venc_set_properties()
787 ctr->mastering.display_primaries_y[c]; in venc_set_properties()
790 hdr10.mastering.white_point_x = ctr->mastering.white_point_x; in venc_set_properties()
791 hdr10.mastering.white_point_y = ctr->mastering.white_point_y; in venc_set_properties()
793 ctr->mastering.max_display_mastering_luminance; in venc_set_properties()
795 ctr->mastering.min_display_mastering_luminance; in venc_set_properties()
797 hdr10.cll.max_content_light = ctr->cll.max_content_light_level; in venc_set_properties()
799 ctr->cll.max_pic_average_light_level; in venc_set_properties()
806 if (ctr->num_b_frames) { in venc_set_properties()
816 intra_period.pframes = ctr->num_p_frames; in venc_set_properties()
817 intra_period.bframes = ctr->num_b_frames; in venc_set_properties()
823 if (!ctr->rc_enable) in venc_set_properties()
825 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_VBR) in venc_set_properties()
826 rate_control = ctr->frame_skip_mode ? HFI_RATE_CONTROL_VBR_VFR : in venc_set_properties()
828 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) in venc_set_properties()
829 rate_control = ctr->frame_skip_mode ? HFI_RATE_CONTROL_CBR_VFR : in venc_set_properties()
831 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) in venc_set_properties()
839 if (rate_control == HFI_RATE_CONTROL_CQ && ctr->const_quality) { in venc_set_properties()
843 quality.frame_quality = ctr->const_quality; in venc_set_properties()
849 if (!ctr->layer_bitrate) { in venc_set_properties()
850 if (!ctr->bitrate) in venc_set_properties()
853 bitrate = ctr->bitrate; in venc_set_properties()
863 if (!ctr->bitrate_peak) in venc_set_properties()
866 bitrate = ctr->bitrate_peak; in venc_set_properties()
880 if (ctr->header_mode == V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE) in venc_set_properties()
892 quant.qp_i = ctr->hevc_i_qp; in venc_set_properties()
893 quant.qp_p = ctr->hevc_p_qp; in venc_set_properties()
894 quant.qp_b = ctr->hevc_b_qp; in venc_set_properties()
896 quant.qp_i = ctr->h264_i_qp; in venc_set_properties()
897 quant.qp_p = ctr->h264_p_qp; in venc_set_properties()
898 quant.qp_b = ctr->h264_b_qp; in venc_set_properties()
910 quant_range_v2.min_qp.qp_packed = ctr->hevc_min_qp; in venc_set_properties()
911 quant_range_v2.max_qp.qp_packed = ctr->hevc_max_qp; in venc_set_properties()
913 quant_range_v2.min_qp.qp_packed = ctr->vp8_min_qp; in venc_set_properties()
914 quant_range_v2.max_qp.qp_packed = ctr->vp8_max_qp; in venc_set_properties()
916 quant_range_v2.min_qp.qp_packed = ctr->h264_min_qp; in venc_set_properties()
917 quant_range_v2.max_qp.qp_packed = ctr->h264_max_qp; in venc_set_properties()
925 quant_range.min_qp = ctr->hevc_min_qp; in venc_set_properties()
926 quant_range.max_qp = ctr->hevc_max_qp; in venc_set_properties()
928 quant_range.min_qp = ctr->vp8_min_qp; in venc_set_properties()
929 quant_range.max_qp = ctr->vp8_max_qp; in venc_set_properties()
931 quant_range.min_qp = ctr->h264_min_qp; in venc_set_properties()
932 quant_range.max_qp = ctr->h264_max_qp; in venc_set_properties()
943 ltr_mode.ltr_count = ctr->ltr_count; in venc_set_properties()
952 profile = ctr->profile.h264; in venc_set_properties()
953 level = ctr->level.h264; in venc_set_properties()
956 profile = ctr->profile.mpeg4; in venc_set_properties()
957 level = ctr->level.mpeg4; in venc_set_properties()
960 profile = ctr->profile.vp8; in venc_set_properties()
964 profile = ctr->profile.vp9; in venc_set_properties()
965 level = ctr->level.vp9; in venc_set_properties()
968 profile = ctr->profile.hevc; in venc_set_properties()
969 level = ctr->level.hevc; in venc_set_properties()
988 if (ctr->aud_enable) in venc_set_properties()
1001 if (ctr->intra_refresh_period) { in venc_set_properties()
1006 if (mbs % ctr->intra_refresh_period) in venc_set_properties()
1008 mbs /= ctr->intra_refresh_period; in venc_set_properties()
1011 if (ctr->intra_refresh_type == in venc_set_properties()