Lines Matching refs:q_data
92 void coda_write_base(struct coda_ctx *ctx, struct coda_q_data *q_data, in coda_write_base() argument
98 switch (q_data->fourcc) { in coda_write_base()
104 base_cb = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
105 base_cr = base_cb + q_data->bytesperline * q_data->height / 4; in coda_write_base()
109 base_cr = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
110 base_cb = base_cr + q_data->bytesperline * q_data->height / 4; in coda_write_base()
113 base_cb = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
114 base_cr = base_cb + q_data->bytesperline * q_data->height / 2; in coda_write_base()
494 struct coda_q_data *q_data; in coda_g_fmt() local
497 q_data = get_q_data(ctx, f->type); in coda_g_fmt()
498 if (!q_data) in coda_g_fmt()
502 f->fmt.pix.pixelformat = q_data->fourcc; in coda_g_fmt()
503 f->fmt.pix.width = q_data->width; in coda_g_fmt()
504 f->fmt.pix.height = q_data->height; in coda_g_fmt()
505 f->fmt.pix.bytesperline = q_data->bytesperline; in coda_g_fmt()
507 f->fmt.pix.sizeimage = q_data->sizeimage; in coda_g_fmt()
518 struct coda_q_data *q_data; in coda_try_pixelformat() local
542 q_data = get_q_data(ctx, f->type); in coda_try_pixelformat()
543 f->fmt.pix.pixelformat = q_data->fourcc; in coda_try_pixelformat()
784 struct coda_q_data *q_data; in coda_s_fmt() local
791 q_data = get_q_data(ctx, f->type); in coda_s_fmt()
792 if (!q_data) in coda_s_fmt()
801 q_data->fourcc = f->fmt.pix.pixelformat; in coda_s_fmt()
802 q_data->width = f->fmt.pix.width; in coda_s_fmt()
803 q_data->height = f->fmt.pix.height; in coda_s_fmt()
804 q_data->bytesperline = f->fmt.pix.bytesperline; in coda_s_fmt()
805 q_data->sizeimage = f->fmt.pix.sizeimage; in coda_s_fmt()
807 q_data->rect = *r; in coda_s_fmt()
809 q_data->rect.left = 0; in coda_s_fmt()
810 q_data->rect.top = 0; in coda_s_fmt()
811 q_data->rect.width = f->fmt.pix.width; in coda_s_fmt()
812 q_data->rect.height = f->fmt.pix.height; in coda_s_fmt()
846 v4l2_type_names[f->type], q_data->width, q_data->height, in coda_s_fmt()
847 (char *)&q_data->fourcc, in coda_s_fmt()
1024 struct coda_q_data *q_data; in coda_g_selection() local
1027 q_data = get_q_data(ctx, s->type); in coda_g_selection()
1028 if (!q_data) in coda_g_selection()
1033 r.width = q_data->width; in coda_g_selection()
1034 r.height = q_data->height; in coda_g_selection()
1035 rsel = &q_data->rect; in coda_g_selection()
1070 struct coda_q_data *q_data; in coda_s_selection() local
1076 q_data = get_q_data(ctx, s->type); in coda_s_selection()
1077 if (!q_data) in coda_s_selection()
1082 s->r.width = clamp(s->r.width, 2U, q_data->width); in coda_s_selection()
1083 s->r.height = clamp(s->r.height, 2U, q_data->height); in coda_s_selection()
1093 q_data->rect = s->r; in coda_s_selection()
1318 struct coda_q_data *q_data; in coda_enum_frameintervals() local
1329 q_data = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_enum_frameintervals()
1331 q_data->fourcc); in coda_enum_frameintervals()
1679 ctx->q_data[V4L2_M2M_SRC].fourcc = ctx->cvd->src_formats[0]; in set_default_params()
1680 ctx->q_data[V4L2_M2M_DST].fourcc = ctx->cvd->dst_formats[0]; in set_default_params()
1681 ctx->q_data[V4L2_M2M_SRC].width = max_w; in set_default_params()
1682 ctx->q_data[V4L2_M2M_SRC].height = max_h; in set_default_params()
1683 ctx->q_data[V4L2_M2M_DST].width = max_w; in set_default_params()
1684 ctx->q_data[V4L2_M2M_DST].height = max_h; in set_default_params()
1686 ctx->q_data[V4L2_M2M_SRC].bytesperline = max_w; in set_default_params()
1687 ctx->q_data[V4L2_M2M_SRC].sizeimage = usize; in set_default_params()
1688 ctx->q_data[V4L2_M2M_DST].bytesperline = 0; in set_default_params()
1689 ctx->q_data[V4L2_M2M_DST].sizeimage = csize; in set_default_params()
1691 ctx->q_data[V4L2_M2M_SRC].bytesperline = 0; in set_default_params()
1692 ctx->q_data[V4L2_M2M_SRC].sizeimage = csize; in set_default_params()
1693 ctx->q_data[V4L2_M2M_DST].bytesperline = max_w; in set_default_params()
1694 ctx->q_data[V4L2_M2M_DST].sizeimage = usize; in set_default_params()
1696 ctx->q_data[V4L2_M2M_SRC].rect.width = max_w; in set_default_params()
1697 ctx->q_data[V4L2_M2M_SRC].rect.height = max_h; in set_default_params()
1698 ctx->q_data[V4L2_M2M_DST].rect.width = max_w; in set_default_params()
1699 ctx->q_data[V4L2_M2M_DST].rect.height = max_h; in set_default_params()
1716 struct coda_q_data *q_data; in coda_queue_setup() local
1719 q_data = get_q_data(ctx, vq->type); in coda_queue_setup()
1720 size = q_data->sizeimage; in coda_queue_setup()
1738 struct coda_q_data *q_data; in coda_buf_prepare() local
1740 q_data = get_q_data(ctx, vb->vb2_queue->type); in coda_buf_prepare()
1751 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in coda_buf_prepare()
1755 (long)q_data->sizeimage); in coda_buf_prepare()
1870 struct coda_q_data *q_data; in coda_buf_queue() local
1872 q_data = get_q_data(ctx, vb->vb2_queue->type); in coda_buf_queue()
1886 if (q_data->fourcc == V4L2_PIX_FMT_H264) { in coda_buf_queue()