Lines Matching refs:windsor
713 struct windsor_pic_info *windsor = (struct windsor_pic_info *)pkt->data; in vpu_windsor_unpack_pic_info() local
714 struct timespec64 ts = { windsor->tv_s, windsor->tv_ns }; in vpu_windsor_unpack_pic_info()
716 info->frame_id = windsor->frame_id; in vpu_windsor_unpack_pic_info()
717 switch (windsor->pic_type) { in vpu_windsor_unpack_pic_info()
731 info->skipped_frame = windsor->skipped_frame; in vpu_windsor_unpack_pic_info()
732 info->error_flag = windsor->error_flag; in vpu_windsor_unpack_pic_info()
733 info->psnr = windsor->psnr; in vpu_windsor_unpack_pic_info()
734 info->frame_size = windsor->frame_size; in vpu_windsor_unpack_pic_info()
735 info->wptr = get_ptr(windsor->str_buff_wptr); in vpu_windsor_unpack_pic_info()
736 info->crc = windsor->frame_crc; in vpu_windsor_unpack_pic_info()
738 info->average_qp = windsor->average_qp; in vpu_windsor_unpack_pic_info()
987 static int vpu_windsor_set_size(struct vpu_enc_param *windsor, in vpu_windsor_set_size() argument
990 windsor->src_stride = params->src_stride; in vpu_windsor_set_size()
991 windsor->src_width = params->src_width; in vpu_windsor_set_size()
992 windsor->src_height = params->src_height; in vpu_windsor_set_size()
993 windsor->src_offset_x = params->crop.left; in vpu_windsor_set_size()
994 windsor->src_offset_y = params->crop.top; in vpu_windsor_set_size()
995 windsor->src_crop_width = params->crop.width; in vpu_windsor_set_size()
996 windsor->src_crop_height = params->crop.height; in vpu_windsor_set_size()
997 windsor->out_width = params->out_width; in vpu_windsor_set_size()
998 windsor->out_height = params->out_height; in vpu_windsor_set_size()
1040 static int vpu_windsor_set_bitrate(struct vpu_enc_param *windsor, in vpu_windsor_set_bitrate() argument
1043 windsor->target_bitrate = vpu_windsor_bitrate(params->bitrate); in vpu_windsor_set_bitrate()
1044 windsor->min_bitrate = vpu_windsor_bitrate(params->bitrate_min); in vpu_windsor_set_bitrate()
1045 windsor->max_bitrate = vpu_windsor_bitrate(params->bitrate_max); in vpu_windsor_set_bitrate()
1094 struct vpu_enc_param *windsor; in vpu_windsor_update_bitrate() local
1097 windsor = get_enc_param(shared, instance); in vpu_windsor_update_bitrate()
1100 if (windsor->bitrate_mode != MEDIAIP_ENC_BITRATE_MODE_CBR) in vpu_windsor_update_bitrate()
1104 if (vpu_windsor_bitrate(params->bitrate) == windsor->target_bitrate) in vpu_windsor_update_bitrate()
1107 vpu_windsor_set_bitrate(windsor, params); in vpu_windsor_update_bitrate()
1108 expert->static_param.rate_control_bitrate = windsor->target_bitrate; in vpu_windsor_update_bitrate()
1109 expert->static_param.rate_control_bitrate_min = windsor->min_bitrate; in vpu_windsor_update_bitrate()
1110 expert->static_param.rate_control_bitrate_max = windsor->max_bitrate; in vpu_windsor_update_bitrate()
1118 struct vpu_enc_param *windsor; in vpu_windsor_set_params() local
1121 windsor = get_enc_param(shared, instance); in vpu_windsor_set_params()
1127 ret = vpu_windsor_set_format(windsor, params->codec_format); in vpu_windsor_set_params()
1130 vpu_windsor_set_profile(windsor, params->profile); in vpu_windsor_set_params()
1131 vpu_windsor_set_level(windsor, params->level); in vpu_windsor_set_params()
1132 vpu_windsor_set_size(windsor, params); in vpu_windsor_set_params()
1133 vpu_windsor_set_gop(windsor, params->gop_length); in vpu_windsor_set_params()
1134 vpu_windsor_set_bframes(windsor, params->bframes); in vpu_windsor_set_params()
1135 vpu_windsor_set_bitrate_mode(windsor, params->rc_enable, params->rc_mode); in vpu_windsor_set_params()
1136 vpu_windsor_set_bitrate(windsor, params); in vpu_windsor_set_params()
1137 windsor->init_slice_qp = params->i_frame_qp; in vpu_windsor_set_params()
1141 windsor->frame_rate = params->frame_rate.denominator / params->frame_rate.numerator; in vpu_windsor_set_params()