Lines Matching refs:ctrls
417 struct hva_controls *ctrls, in hva_h264_fill_slice_header() argument
437 u32 frame_order = frame_num % ctrls->gop_size; in hva_h264_fill_slice_header()
439 if (!(frame_num % ctrls->gop_size)) in hva_h264_fill_slice_header()
456 if ((frame_num / ctrls->gop_size) % 2) { in hva_h264_fill_slice_header()
469 if (ctrls->entropy_mode == cabac) { in hva_h264_fill_slice_header()
599 struct hva_controls *ctrls = &pctx->ctrls; in hva_h264_prepare_task() local
600 struct v4l2_fract *time_per_frame = &pctx->ctrls.time_per_frame; in hva_h264_prepare_task()
624 level = ctrls->level; in hva_h264_prepare_task()
644 td->brc_type = (ctrls->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) in hva_h264_prepare_task()
647 td->entropy_coding_mode = (ctrls->entropy_mode == cavlc) ? CAVLC : in hva_h264_prepare_task()
650 td->bit_rate = ctrls->bitrate; in hva_h264_prepare_task()
677 if (ctrls->profile >= V4L2_MPEG_VIDEO_H264_PROFILE_HIGH) in hva_h264_prepare_task()
693 td->cpb_buffer_size = ctrls->cpb_size * 8000; in hva_h264_prepare_task()
696 if (ctrls->profile >= V4L2_MPEG_VIDEO_H264_PROFILE_HIGH) in hva_h264_prepare_task()
715 if ((ctrls->bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) && in hva_h264_prepare_task()
746 td->transform_mode = ctrls->dct8x8; in hva_h264_prepare_task()
768 td->qp_min = clamp_val(ctrls->qpmin, 0, 51); in hva_h264_prepare_task()
769 td->qp_max = clamp_val(ctrls->qpmax, 0, 51); in hva_h264_prepare_task()
816 if (!(frame_num % ctrls->gop_size)) { in hva_h264_prepare_task()
828 hva_h264_fill_slice_header(pctx, slice_header_vaddr, ctrls, frame_num, in hva_h264_prepare_task()
855 if (ctrls->sei_fp && hva_h264_fill_sei_nal(pctx, SEI_STEREO_VIDEO_INFO, in hva_h264_prepare_task()