Lines Matching refs:q_data
246 struct pxp_q_data q_data[2]; member
258 return &ctx->q_data[V4L2_M2M_SRC]; in get_q_data()
260 return &ctx->q_data[V4L2_M2M_DST]; in get_q_data()
356 if (pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_SRC].fmt->fourcc) && in pxp_setup_csc()
357 !pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_DST].fmt->fourcc)) { in pxp_setup_csc()
504 ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_setup_csc()
505 quantization = ctx->q_data[V4L2_M2M_SRC].quant; in pxp_setup_csc()
536 if (!pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_SRC].fmt->fourcc) && in pxp_setup_csc()
537 pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_DST].fmt->fourcc)) { in pxp_setup_csc()
717 ycbcr_enc = ctx->q_data[V4L2_M2M_DST].ycbcr_enc; in pxp_setup_csc()
718 quantization = ctx->q_data[V4L2_M2M_DST].quant; in pxp_setup_csc()
842 struct pxp_q_data *q_data; in pxp_start() local
853 q_data = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); in pxp_start()
855 src_width = ctx->q_data[V4L2_M2M_SRC].width; in pxp_start()
856 dst_width = ctx->q_data[V4L2_M2M_DST].width; in pxp_start()
857 src_height = ctx->q_data[V4L2_M2M_SRC].height; in pxp_start()
858 dst_height = ctx->q_data[V4L2_M2M_DST].height; in pxp_start()
859 src_stride = ctx->q_data[V4L2_M2M_SRC].bytesperline; in pxp_start()
860 dst_stride = ctx->q_data[V4L2_M2M_DST].bytesperline; in pxp_start()
861 src_fourcc = ctx->q_data[V4L2_M2M_SRC].fmt->fourcc; in pxp_start()
862 dst_fourcc = ctx->q_data[V4L2_M2M_DST].fmt->fourcc; in pxp_start()
875 in_vb->sequence = q_data->sequence++; in pxp_start()
1184 struct pxp_q_data *q_data; in pxp_g_fmt() local
1190 q_data = get_q_data(ctx, f->type); in pxp_g_fmt()
1192 f->fmt.pix.width = q_data->width; in pxp_g_fmt()
1193 f->fmt.pix.height = q_data->height; in pxp_g_fmt()
1195 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in pxp_g_fmt()
1196 f->fmt.pix.bytesperline = q_data->bytesperline; in pxp_g_fmt()
1197 f->fmt.pix.sizeimage = q_data->sizeimage; in pxp_g_fmt()
1200 f->fmt.pix.ycbcr_enc = q_data->ycbcr_enc; in pxp_g_fmt()
1201 f->fmt.pix.quantization = q_data->quant; in pxp_g_fmt()
1258 if (pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_SRC].fmt->fourcc) == in pxp_fixup_colorimetry_cap()
1264 *ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_fixup_colorimetry_cap()
1265 *quantization = ctx->q_data[V4L2_M2M_SRC].quant; in pxp_fixup_colorimetry_cap()
1328 struct pxp_q_data *q_data; in pxp_s_fmt() local
1335 q_data = get_q_data(ctx, f->type); in pxp_s_fmt()
1336 if (!q_data) in pxp_s_fmt()
1344 q_data->fmt = find_format(f->fmt.pix.pixelformat); in pxp_s_fmt()
1345 q_data->width = f->fmt.pix.width; in pxp_s_fmt()
1346 q_data->height = f->fmt.pix.height; in pxp_s_fmt()
1347 q_data->bytesperline = f->fmt.pix.bytesperline; in pxp_s_fmt()
1348 q_data->sizeimage = f->fmt.pix.sizeimage; in pxp_s_fmt()
1352 f->type, q_data->width, q_data->height, q_data->fmt->fourcc); in pxp_s_fmt()
1371 ctx->q_data[V4L2_M2M_DST].ycbcr_enc = f->fmt.pix.ycbcr_enc; in pxp_s_fmt_vid_cap()
1372 ctx->q_data[V4L2_M2M_DST].quant = f->fmt.pix.quantization; in pxp_s_fmt_vid_cap()
1393 ctx->q_data[V4L2_M2M_SRC].ycbcr_enc = f->fmt.pix.ycbcr_enc; in pxp_s_fmt_vid_out()
1394 ctx->q_data[V4L2_M2M_SRC].quant = f->fmt.pix.quantization; in pxp_s_fmt_vid_out()
1396 pxp_fixup_colorimetry_cap(ctx, ctx->q_data[V4L2_M2M_DST].fmt->fourcc, in pxp_s_fmt_vid_out()
1397 &ctx->q_data[V4L2_M2M_DST].ycbcr_enc, in pxp_s_fmt_vid_out()
1398 &ctx->q_data[V4L2_M2M_DST].quant); in pxp_s_fmt_vid_out()
1516 struct pxp_q_data *q_data; in pxp_queue_setup() local
1519 q_data = get_q_data(ctx, vq->type); in pxp_queue_setup()
1521 size = q_data->sizeimage; in pxp_queue_setup()
1541 struct pxp_q_data *q_data; in pxp_buf_prepare() local
1545 q_data = get_q_data(ctx, vb->vb2_queue->type); in pxp_buf_prepare()
1555 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in pxp_buf_prepare()
1558 (long)q_data->sizeimage); in pxp_buf_prepare()
1562 vb2_set_plane_payload(vb, 0, q_data->sizeimage); in pxp_buf_prepare()
1578 struct pxp_q_data *q_data = get_q_data(ctx, q->type); in pxp_start_streaming() local
1580 q_data->sequence = 0; in pxp_start_streaming()
1683 ctx->q_data[V4L2_M2M_SRC].fmt = &formats[0]; in pxp_open()
1684 ctx->q_data[V4L2_M2M_SRC].width = 640; in pxp_open()
1685 ctx->q_data[V4L2_M2M_SRC].height = 480; in pxp_open()
1686 ctx->q_data[V4L2_M2M_SRC].bytesperline = in pxp_open()
1688 ctx->q_data[V4L2_M2M_SRC].sizeimage = in pxp_open()
1690 ctx->q_data[V4L2_M2M_DST] = ctx->q_data[V4L2_M2M_SRC]; in pxp_open()