Lines Matching full:ctr

543 	struct venc_controls *ctr = &inst->controls.enc;  in venc_set_properties()  local
587 ctr->h264_entropy_mode); in venc_set_properties()
597 ctr->h264_loop_filter_mode); in venc_set_properties()
598 deblock.slice_alpha_offset = ctr->h264_loop_filter_alpha; in venc_set_properties()
599 deblock.slice_beta_offset = ctr->h264_loop_filter_beta; in venc_set_properties()
607 if (ctr->profile.h264 == HFI_H264_PROFILE_HIGH || in venc_set_properties()
608 ctr->profile.h264 == HFI_H264_PROFILE_CONSTRAINED_HIGH) in venc_set_properties()
609 h264_transform.enable_type = ctr->h264_8x8_transform; in venc_set_properties()
639 ctr->mastering.display_primaries_x[c]; in venc_set_properties()
641 ctr->mastering.display_primaries_y[c]; in venc_set_properties()
644 hdr10.mastering.white_point_x = ctr->mastering.white_point_x; in venc_set_properties()
645 hdr10.mastering.white_point_y = ctr->mastering.white_point_y; in venc_set_properties()
647 ctr->mastering.max_display_mastering_luminance; in venc_set_properties()
649 ctr->mastering.min_display_mastering_luminance; in venc_set_properties()
651 hdr10.cll.max_content_light = ctr->cll.max_content_light_level; in venc_set_properties()
653 ctr->cll.max_pic_average_light_level; in venc_set_properties()
660 if (ctr->num_b_frames) { in venc_set_properties()
670 intra_period.pframes = ctr->num_p_frames; in venc_set_properties()
671 intra_period.bframes = ctr->num_b_frames; in venc_set_properties()
677 if (!ctr->rc_enable) in venc_set_properties()
679 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_VBR) in venc_set_properties()
680 rate_control = ctr->frame_skip_mode ? HFI_RATE_CONTROL_VBR_VFR : in venc_set_properties()
682 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) in venc_set_properties()
683 rate_control = ctr->frame_skip_mode ? HFI_RATE_CONTROL_CBR_VFR : in venc_set_properties()
685 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) in venc_set_properties()
693 if (rate_control == HFI_RATE_CONTROL_CQ && ctr->const_quality) { in venc_set_properties()
697 quality.frame_quality = ctr->const_quality; in venc_set_properties()
703 if (!ctr->bitrate) in venc_set_properties()
706 bitrate = ctr->bitrate; in venc_set_properties()
719 if (ctr->header_mode == V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE) in venc_set_properties()
729 if (!ctr->bitrate_peak) in venc_set_properties()
732 bitrate = ctr->bitrate_peak; in venc_set_properties()
744 quant.qp_i = ctr->hevc_i_qp; in venc_set_properties()
745 quant.qp_p = ctr->hevc_p_qp; in venc_set_properties()
746 quant.qp_b = ctr->hevc_b_qp; in venc_set_properties()
748 quant.qp_i = ctr->h264_i_qp; in venc_set_properties()
749 quant.qp_p = ctr->h264_p_qp; in venc_set_properties()
750 quant.qp_b = ctr->h264_b_qp; in venc_set_properties()
759 quant_range.min_qp = ctr->hevc_min_qp; in venc_set_properties()
760 quant_range.max_qp = ctr->hevc_max_qp; in venc_set_properties()
762 quant_range.min_qp = ctr->h264_min_qp; in venc_set_properties()
763 quant_range.max_qp = ctr->h264_max_qp; in venc_set_properties()
771 ltr_mode.ltr_count = ctr->ltr_count; in venc_set_properties()
780 profile = ctr->profile.h264; in venc_set_properties()
781 level = ctr->level.h264; in venc_set_properties()
784 profile = ctr->profile.mpeg4; in venc_set_properties()
785 level = ctr->level.mpeg4; in venc_set_properties()
788 profile = ctr->profile.vp8; in venc_set_properties()
792 profile = ctr->profile.vp9; in venc_set_properties()
793 level = ctr->level.vp9; in venc_set_properties()
796 profile = ctr->profile.hevc; in venc_set_properties()
797 level = ctr->level.hevc; in venc_set_properties()
816 if (ctr->aud_enable) in venc_set_properties()
829 if (ctr->intra_refresh_period) { in venc_set_properties()
834 if (mbs % ctr->intra_refresh_period) in venc_set_properties()
836 mbs /= ctr->intra_refresh_period; in venc_set_properties()