Lines Matching refs:q_data

701 	struct mxc_jpeg_q_data *q_data;  in mxc_jpeg_addrs()  local
703 q_data = mxc_jpeg_get_q_data(ctx, raw_buf->type); in mxc_jpeg_addrs()
710 desc->buf_base1 = desc->buf_base0 + q_data->sizeimage[0]; in mxc_jpeg_addrs()
853 static u32 mxc_jpeg_get_plane_size(struct mxc_jpeg_q_data *q_data, u32 plane_no) in mxc_jpeg_get_plane_size() argument
855 const struct mxc_jpeg_fmt *fmt = q_data->fmt; in mxc_jpeg_get_plane_size()
863 return q_data->sizeimage[plane_no]; in mxc_jpeg_get_plane_size()
866 return q_data->sizeimage[plane_no]; in mxc_jpeg_get_plane_size()
868 size = q_data->sizeimage[fmt->mem_planes - 1]; in mxc_jpeg_get_plane_size()
871 if (WARN_ON_ONCE(fmt->comp_planes > ARRAY_SIZE(q_data->sizeimage))) in mxc_jpeg_get_plane_size()
875 size += q_data->sizeimage[i]; in mxc_jpeg_get_plane_size()
891 struct mxc_jpeg_q_data *q_data; in mxc_jpeg_dec_irq() local
942 q_data = mxc_jpeg_get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); in mxc_jpeg_dec_irq()
946 mxc_jpeg_enc_mode_go(dev, reg, mxc_jpeg_is_extended_sequential(q_data->fmt)); in mxc_jpeg_dec_irq()
961 q_data = mxc_jpeg_get_q_data(ctx, cap_type); in mxc_jpeg_dec_irq()
962 payload = mxc_jpeg_get_plane_size(q_data, 0); in mxc_jpeg_dec_irq()
965 if (q_data->fmt->mem_planes == 2) { in mxc_jpeg_dec_irq()
966 payload = mxc_jpeg_get_plane_size(q_data, 1); in mxc_jpeg_dec_irq()
1243 struct mxc_jpeg_q_data *q_data; in mxc_jpeg_config_enc_desc() local
1247 q_data = mxc_jpeg_get_q_data(ctx, src_buf->vb2_queue->type); in mxc_jpeg_config_enc_desc()
1251 q_data->fmt->fourcc, in mxc_jpeg_config_enc_desc()
1252 q_data->crop.width, in mxc_jpeg_config_enc_desc()
1253 q_data->crop.height); in mxc_jpeg_config_enc_desc()
1270 w = q_data->crop.width; in mxc_jpeg_config_enc_desc()
1271 h = q_data->crop.height; in mxc_jpeg_config_enc_desc()
1272 v4l_bound_align_image(&w, w, MXC_JPEG_MAX_WIDTH, q_data->fmt->h_align, in mxc_jpeg_config_enc_desc()
1273 &h, h, MXC_JPEG_MAX_HEIGHT, q_data->fmt->v_align, 0); in mxc_jpeg_config_enc_desc()
1275 mxc_jpeg_set_line_pitch(desc, q_data->bytesperline[0]); in mxc_jpeg_config_enc_desc()
1277 img_fmt = mxc_jpeg_fourcc_to_imgfmt(q_data->fmt->fourcc); in mxc_jpeg_config_enc_desc()
1283 if (mxc_jpeg_is_extended_sequential(q_data->fmt)) in mxc_jpeg_config_enc_desc()
1595 struct mxc_jpeg_q_data *q_data = NULL; in mxc_jpeg_queue_setup() local
1598 q_data = mxc_jpeg_get_q_data(ctx, q->type); in mxc_jpeg_queue_setup()
1599 if (!q_data) in mxc_jpeg_queue_setup()
1604 if (*nplanes != q_data->fmt->mem_planes) in mxc_jpeg_queue_setup()
1607 if (sizes[i] < mxc_jpeg_get_plane_size(q_data, i)) in mxc_jpeg_queue_setup()
1614 *nplanes = q_data->fmt->mem_planes; in mxc_jpeg_queue_setup()
1616 sizes[i] = mxc_jpeg_get_plane_size(q_data, i); in mxc_jpeg_queue_setup()
1627 struct mxc_jpeg_q_data *q_data = mxc_jpeg_get_q_data(ctx, q->type); in mxc_jpeg_start_streaming() local
1635 q_data->sequence = 0; in mxc_jpeg_start_streaming()
1900 struct mxc_jpeg_q_data *q_data; in mxc_jpeg_buf_queue() local
1902 q_data = mxc_jpeg_get_q_data(ctx, vb->vb2_queue->type); in mxc_jpeg_buf_queue()
1904 vbuf->sequence = q_data->sequence++; in mxc_jpeg_buf_queue()
1941 struct mxc_jpeg_q_data *q_data = NULL; in mxc_jpeg_buf_prepare() local
1948 q_data = mxc_jpeg_get_q_data(ctx, vb->vb2_queue->type); in mxc_jpeg_buf_prepare()
1949 if (!q_data) in mxc_jpeg_buf_prepare()
1951 for (i = 0; i < q_data->fmt->mem_planes; i++) { in mxc_jpeg_buf_prepare()
1952 sizeimage = mxc_jpeg_get_plane_size(q_data, i); in mxc_jpeg_buf_prepare()
2165 struct mxc_jpeg_q_data *q_data = mxc_jpeg_get_q_data(ctx, f->type); in mxc_jpeg_enum_fmt_vid_cap() local
2184 f->pixelformat = q_data->fmt->fourcc; in mxc_jpeg_enum_fmt_vid_cap()
2188 sibling = mxc_jpeg_get_sibling_format(q_data->fmt); in mxc_jpeg_enum_fmt_vid_cap()
2255 struct mxc_jpeg_ctx *ctx, struct mxc_jpeg_q_data *q_data) in mxc_jpeg_try_fmt() argument
2280 q_data->fmt = fmt; in mxc_jpeg_try_fmt()
2287 q_data->w = w; in mxc_jpeg_try_fmt()
2288 q_data->h = h; in mxc_jpeg_try_fmt()
2289 q_data->w_adjusted = w; in mxc_jpeg_try_fmt()
2290 q_data->h_adjusted = h; in mxc_jpeg_try_fmt()
2291 v4l_bound_align_image(&q_data->w_adjusted, in mxc_jpeg_try_fmt()
2295 &q_data->h_adjusted, in mxc_jpeg_try_fmt()
2302 q_data->bytesperline[i] = pfmt->bytesperline; in mxc_jpeg_try_fmt()
2303 q_data->sizeimage[i] = pfmt->sizeimage; in mxc_jpeg_try_fmt()
2307 mxc_jpeg_bytesperline(q_data, fmt->precision); in mxc_jpeg_try_fmt()
2308 mxc_jpeg_sizeimage(q_data); in mxc_jpeg_try_fmt()
2314 pfmt->bytesperline = q_data->bytesperline[i]; in mxc_jpeg_try_fmt()
2315 pfmt->sizeimage = mxc_jpeg_get_plane_size(q_data, i); in mxc_jpeg_try_fmt()
2330 q_data->crop.left = 0; in mxc_jpeg_try_fmt()
2331 q_data->crop.top = 0; in mxc_jpeg_try_fmt()
2332 q_data->crop.width = q_data->w; in mxc_jpeg_try_fmt()
2333 q_data->crop.height = q_data->h; in mxc_jpeg_try_fmt()
2336 pix_mp->width = q_data->w_adjusted; in mxc_jpeg_try_fmt()
2337 pix_mp->height = q_data->h_adjusted; in mxc_jpeg_try_fmt()
2462 struct mxc_jpeg_q_data *q_data = mxc_jpeg_get_q_data(ctx, f->type); in mxc_jpeg_g_fmt_vid() local
2470 pix_mp->pixelformat = q_data->fmt->fourcc; in mxc_jpeg_g_fmt_vid()
2471 pix_mp->width = q_data->w; in mxc_jpeg_g_fmt_vid()
2472 pix_mp->height = q_data->h; in mxc_jpeg_g_fmt_vid()
2474 if (q_data->fmt->flags == MXC_JPEG_FMT_TYPE_RAW) { in mxc_jpeg_g_fmt_vid()
2475 pix_mp->width = q_data->w_adjusted; in mxc_jpeg_g_fmt_vid()
2476 pix_mp->height = q_data->h_adjusted; in mxc_jpeg_g_fmt_vid()
2485 pix_mp->num_planes = q_data->fmt->mem_planes; in mxc_jpeg_g_fmt_vid()
2487 pix_mp->plane_fmt[i].bytesperline = q_data->bytesperline[i]; in mxc_jpeg_g_fmt_vid()
2488 pix_mp->plane_fmt[i].sizeimage = mxc_jpeg_get_plane_size(q_data, i); in mxc_jpeg_g_fmt_vid()