Lines Matching refs:ctr

613 	struct venc_controls *ctr = &inst->controls.enc;  in venc_set_properties()  local
657 ctr->h264_entropy_mode); in venc_set_properties()
667 ctr->h264_loop_filter_mode); in venc_set_properties()
668 deblock.slice_alpha_offset = ctr->h264_loop_filter_alpha; in venc_set_properties()
669 deblock.slice_beta_offset = ctr->h264_loop_filter_beta; in venc_set_properties()
677 if (ctr->profile.h264 == V4L2_MPEG_VIDEO_H264_PROFILE_HIGH || in venc_set_properties()
678 ctr->profile.h264 == V4L2_MPEG_VIDEO_H264_PROFILE_CONSTRAINED_HIGH) in venc_set_properties()
679 h264_transform.enable_type = ctr->h264_8x8_transform; in venc_set_properties()
702 ctr->profile.hevc == V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN_10) { in venc_set_properties()
710 ctr->mastering.display_primaries_x[c]; in venc_set_properties()
712 ctr->mastering.display_primaries_y[c]; in venc_set_properties()
715 hdr10.mastering.white_point_x = ctr->mastering.white_point_x; in venc_set_properties()
716 hdr10.mastering.white_point_y = ctr->mastering.white_point_y; in venc_set_properties()
718 ctr->mastering.max_display_mastering_luminance; in venc_set_properties()
720 ctr->mastering.min_display_mastering_luminance; in venc_set_properties()
722 hdr10.cll.max_content_light = ctr->cll.max_content_light_level; in venc_set_properties()
724 ctr->cll.max_pic_average_light_level; in venc_set_properties()
731 if (ctr->num_b_frames) { in venc_set_properties()
741 intra_period.pframes = ctr->num_p_frames; in venc_set_properties()
742 intra_period.bframes = ctr->num_b_frames; in venc_set_properties()
748 if (!ctr->rc_enable) in venc_set_properties()
750 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_VBR) in venc_set_properties()
751 rate_control = ctr->frame_skip_mode ? HFI_RATE_CONTROL_VBR_VFR : in venc_set_properties()
753 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) in venc_set_properties()
754 rate_control = ctr->frame_skip_mode ? HFI_RATE_CONTROL_CBR_VFR : in venc_set_properties()
756 else if (ctr->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CQ) in venc_set_properties()
764 if (rate_control == HFI_RATE_CONTROL_CQ && ctr->const_quality) { in venc_set_properties()
768 quality.frame_quality = ctr->const_quality; in venc_set_properties()
774 if (!ctr->bitrate) in venc_set_properties()
777 bitrate = ctr->bitrate; in venc_set_properties()
790 if (ctr->header_mode == V4L2_MPEG_VIDEO_HEADER_MODE_SEPARATE) in venc_set_properties()
800 if (!ctr->bitrate_peak) in venc_set_properties()
803 bitrate = ctr->bitrate_peak; in venc_set_properties()
815 quant.qp_i = ctr->hevc_i_qp; in venc_set_properties()
816 quant.qp_p = ctr->hevc_p_qp; in venc_set_properties()
817 quant.qp_b = ctr->hevc_b_qp; in venc_set_properties()
819 quant.qp_i = ctr->h264_i_qp; in venc_set_properties()
820 quant.qp_p = ctr->h264_p_qp; in venc_set_properties()
821 quant.qp_b = ctr->h264_b_qp; in venc_set_properties()
830 quant_range.min_qp = ctr->hevc_min_qp; in venc_set_properties()
831 quant_range.max_qp = ctr->hevc_max_qp; in venc_set_properties()
833 quant_range.min_qp = ctr->h264_min_qp; in venc_set_properties()
834 quant_range.max_qp = ctr->h264_max_qp; in venc_set_properties()
842 ltr_mode.ltr_count = ctr->ltr_count; in venc_set_properties()
851 profile = ctr->profile.h264; in venc_set_properties()
852 level = ctr->level.h264; in venc_set_properties()
855 profile = ctr->profile.mpeg4; in venc_set_properties()
856 level = ctr->level.mpeg4; in venc_set_properties()
859 profile = ctr->profile.vp8; in venc_set_properties()
863 profile = ctr->profile.vp9; in venc_set_properties()
864 level = ctr->level.vp9; in venc_set_properties()
867 profile = ctr->profile.hevc; in venc_set_properties()
868 level = ctr->level.hevc; in venc_set_properties()
887 if (ctr->aud_enable) in venc_set_properties()
900 if (ctr->intra_refresh_period) { in venc_set_properties()
905 if (mbs % ctr->intra_refresh_period) in venc_set_properties()
907 mbs /= ctr->intra_refresh_period; in venc_set_properties()
910 if (ctr->intra_refresh_type == in venc_set_properties()