Lines Matching refs:ctr

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