Lines Matching refs: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()
754 ctr->profile.hevc == V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10) { in venc_set_properties()
762 ctr->mastering.display_primaries_x[c]; in venc_set_properties()
764 ctr->mastering.display_primaries_y[c]; in venc_set_properties()
767 hdr10.mastering.white_point_x = ctr->mastering.white_point_x; in venc_set_properties()
768 hdr10.mastering.white_point_y = ctr->mastering.white_point_y; in venc_set_properties()
770 ctr->mastering.max_display_mastering_luminance; in venc_set_properties()
772 ctr->mastering.min_display_mastering_luminance; in venc_set_properties()
774 hdr10.cll.max_content_light = ctr->cll.max_content_light_level; in venc_set_properties()
776 ctr->cll.max_pic_average_light_level; in venc_set_properties()
783 if (ctr->num_b_frames) { in venc_set_properties()
793 intra_period.pframes = ctr->num_p_frames; in venc_set_properties()
794 intra_period.bframes = ctr->num_b_frames; in venc_set_properties()
800 if (!ctr->rc_enable) in venc_set_properties()
802 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_VBR) in venc_set_properties()
803 rate_control = ctr->frame_skip_mode ? HFI_RATE_CONTROL_VBR_VFR : in venc_set_properties()
805 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) in venc_set_properties()
806 rate_control = ctr->frame_skip_mode ? HFI_RATE_CONTROL_CBR_VFR : in venc_set_properties()
808 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) in venc_set_properties()
816 if (rate_control == HFI_RATE_CONTROL_CQ && ctr->const_quality) { in venc_set_properties()
820 quality.frame_quality = ctr->const_quality; in venc_set_properties()
826 if (!ctr->bitrate) in venc_set_properties()
829 bitrate = ctr->bitrate; in venc_set_properties()
842 if (ctr->header_mode == V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE) in venc_set_properties()
852 if (!ctr->bitrate_peak) in venc_set_properties()
855 bitrate = ctr->bitrate_peak; in venc_set_properties()
867 quant.qp_i = ctr->hevc_i_qp; in venc_set_properties()
868 quant.qp_p = ctr->hevc_p_qp; in venc_set_properties()
869 quant.qp_b = ctr->hevc_b_qp; in venc_set_properties()
871 quant.qp_i = ctr->h264_i_qp; in venc_set_properties()
872 quant.qp_p = ctr->h264_p_qp; in venc_set_properties()
873 quant.qp_b = ctr->h264_b_qp; in venc_set_properties()
885 quant_range_v2.min_qp.qp_packed = ctr->hevc_min_qp; in venc_set_properties()
886 quant_range_v2.max_qp.qp_packed = ctr->hevc_max_qp; in venc_set_properties()
888 quant_range_v2.min_qp.qp_packed = ctr->vp8_min_qp; in venc_set_properties()
889 quant_range_v2.max_qp.qp_packed = ctr->vp8_max_qp; in venc_set_properties()
891 quant_range_v2.min_qp.qp_packed = ctr->h264_min_qp; in venc_set_properties()
892 quant_range_v2.max_qp.qp_packed = ctr->h264_max_qp; in venc_set_properties()
900 quant_range.min_qp = ctr->hevc_min_qp; in venc_set_properties()
901 quant_range.max_qp = ctr->hevc_max_qp; in venc_set_properties()
903 quant_range.min_qp = ctr->vp8_min_qp; in venc_set_properties()
904 quant_range.max_qp = ctr->vp8_max_qp; in venc_set_properties()
906 quant_range.min_qp = ctr->h264_min_qp; in venc_set_properties()
907 quant_range.max_qp = ctr->h264_max_qp; in venc_set_properties()
918 ltr_mode.ltr_count = ctr->ltr_count; in venc_set_properties()
927 profile = ctr->profile.h264; in venc_set_properties()
928 level = ctr->level.h264; in venc_set_properties()
931 profile = ctr->profile.mpeg4; in venc_set_properties()
932 level = ctr->level.mpeg4; in venc_set_properties()
935 profile = ctr->profile.vp8; in venc_set_properties()
939 profile = ctr->profile.vp9; in venc_set_properties()
940 level = ctr->level.vp9; in venc_set_properties()
943 profile = ctr->profile.hevc; in venc_set_properties()
944 level = ctr->level.hevc; in venc_set_properties()
963 if (ctr->aud_enable) in venc_set_properties()
976 if (ctr->intra_refresh_period) { in venc_set_properties()
981 if (mbs % ctr->intra_refresh_period) in venc_set_properties()
983 mbs /= ctr->intra_refresh_period; in venc_set_properties()
986 if (ctr->intra_refresh_type == in venc_set_properties()