Lines Matching refs:q_data
888 struct fdp1_q_data *q_data = &ctx->out_q; in fdp1_configure_rpf() local
891 picture_size = (q_data->format.width << FD1_RPF_SIZE_H_SHIFT) in fdp1_configure_rpf()
892 | (q_data->vsize << FD1_RPF_SIZE_V_SHIFT); in fdp1_configure_rpf()
895 pstride = q_data->stride_y << FD1_RPF_PSTRIDE_Y_SHIFT; in fdp1_configure_rpf()
896 if (q_data->format.num_planes > 1) in fdp1_configure_rpf()
897 pstride |= q_data->stride_c << FD1_RPF_PSTRIDE_C_SHIFT; in fdp1_configure_rpf()
900 format = q_data->fmt->fmt; in fdp1_configure_rpf()
901 if (q_data->fmt->swap_yc) in fdp1_configure_rpf()
904 if (q_data->fmt->swap_uv) in fdp1_configure_rpf()
919 fdp1_write(fdp1, q_data->fmt->swap, FD1_RPF_SWAP); in fdp1_configure_rpf()
943 struct fdp1_q_data *q_data = &ctx->cap_q; in fdp1_configure_wpf() local
949 pstride = q_data->format.plane_fmt[0].bytesperline in fdp1_configure_wpf()
952 if (q_data->format.num_planes > 1) in fdp1_configure_wpf()
953 pstride |= q_data->format.plane_fmt[1].bytesperline in fdp1_configure_wpf()
956 format = q_data->fmt->fmt; /* Output Format Code */ in fdp1_configure_wpf()
958 if (q_data->fmt->swap_yc) in fdp1_configure_wpf()
961 if (q_data->fmt->swap_uv) in fdp1_configure_wpf()
964 if (fdp1_fmt_is_rgb(q_data->fmt)) { in fdp1_configure_wpf()
986 swap = q_data->fmt->swap << FD1_WPF_SWAP_OSWAP_SHIFT; in fdp1_configure_wpf()
1409 struct fdp1_q_data *q_data; in fdp1_g_fmt() local
1415 q_data = get_q_data(ctx, f->type); in fdp1_g_fmt()
1416 f->fmt.pix_mp = q_data->format; in fdp1_g_fmt()
1606 struct fdp1_q_data *q_data = get_q_data(ctx, type); in fdp1_set_format() local
1614 q_data->fmt = fmtinfo; in fdp1_set_format()
1615 q_data->format = *pix; in fdp1_set_format()
1617 q_data->vsize = pix->height; in fdp1_set_format()
1619 q_data->vsize /= 2; in fdp1_set_format()
1621 q_data->stride_y = pix->plane_fmt[0].bytesperline; in fdp1_set_format()
1622 q_data->stride_c = pix->plane_fmt[1].bytesperline; in fdp1_set_format()
1628 q_data->stride_y *= 2; in fdp1_set_format()
1629 q_data->stride_c *= 2; in fdp1_set_format()
1640 dst_data->format = q_data->format; in fdp1_set_format()
1765 struct fdp1_q_data *q_data; in fdp1_queue_setup() local
1768 q_data = get_q_data(ctx, vq->type); in fdp1_queue_setup()
1777 *nplanes = q_data->format.num_planes; in fdp1_queue_setup()
1780 sizes[i] = q_data->format.plane_fmt[i].sizeimage; in fdp1_queue_setup()
1785 static void fdp1_buf_prepare_field(struct fdp1_q_data *q_data, in fdp1_buf_prepare_field() argument
1809 fbuf->field = (q_data->format.height < 576) == field_num in fdp1_buf_prepare_field()
1836 (i == 0 ? q_data->stride_y : q_data->stride_c); in fdp1_buf_prepare_field()
1841 fbuf->addrs[i] += q_data->vsize * in fdp1_buf_prepare_field()
1842 (i == 0 ? q_data->stride_y : q_data->stride_c); in fdp1_buf_prepare_field()
1850 struct fdp1_q_data *q_data = get_q_data(ctx, vb->vb2_queue->type); in fdp1_buf_prepare() local
1859 switch (q_data->format.field) { in fdp1_buf_prepare()
1876 if (vbuf->field != q_data->format.field) in fdp1_buf_prepare()
1884 vbuf->field, q_data->format.field); in fdp1_buf_prepare()
1892 for (i = 0; i < q_data->format.num_planes; i++) { in fdp1_buf_prepare()
1893 unsigned long size = q_data->format.plane_fmt[i].sizeimage; in fdp1_buf_prepare()
1898 i, q_data->format.num_planes, in fdp1_buf_prepare()
1909 fdp1_buf_prepare_field(q_data, vbuf, i); in fdp1_buf_prepare()
1925 struct fdp1_q_data *q_data = get_q_data(ctx, q->type); in fdp1_start_streaming() local
1933 if (q_data->format.field == V4L2_FIELD_NONE) in fdp1_start_streaming()
1941 stride = round_up(q_data->format.width, 8); in fdp1_start_streaming()
1943 ctx->smsk_size = bpp * stride * q_data->vsize; in fdp1_start_streaming()