Lines Matching refs:q_data
103 struct dw100_q_data q_data[2]; member
276 return &ctx->q_data[DW100_QUEUE_SRC]; in dw100_get_q_data()
278 return &ctx->q_data[DW100_QUEUE_DST]; in dw100_get_q_data()
329 ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width, in dw100_create_mapping()
330 ctx->q_data[DW100_QUEUE_DST].pix_fmt.height, in dw100_create_mapping()
331 ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width, in dw100_create_mapping()
332 ctx->q_data[DW100_QUEUE_DST].pix_fmt.height); in dw100_create_mapping()
386 sw = ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width; in dw100_ctrl_dewarping_map_init()
387 sh = ctx->q_data[DW100_QUEUE_SRC].pix_fmt.height; in dw100_ctrl_dewarping_map_init()
523 struct dw100_q_data *q_data = dw100_get_q_data(ctx, q->type); in dw100_start_streaming() local
526 q_data->sequence = 0; in dw100_start_streaming()
615 ctx->q_data[DW100_QUEUE_SRC].fmt = &formats[0]; in dw100_open()
617 pix_fmt = &ctx->q_data[DW100_QUEUE_SRC].pix_fmt; in dw100_open()
628 ctx->q_data[DW100_QUEUE_SRC].crop.top = 0; in dw100_open()
629 ctx->q_data[DW100_QUEUE_SRC].crop.left = 0; in dw100_open()
630 ctx->q_data[DW100_QUEUE_SRC].crop.width = DW100_DEF_W; in dw100_open()
631 ctx->q_data[DW100_QUEUE_SRC].crop.height = DW100_DEF_H; in dw100_open()
633 ctx->q_data[DW100_QUEUE_DST] = ctx->q_data[DW100_QUEUE_SRC]; in dw100_open()
742 struct dw100_q_data *q_data; in dw100_g_fmt_vid() local
748 q_data = dw100_get_q_data(ctx, f->type); in dw100_g_fmt_vid()
750 f->fmt.pix_mp = q_data->pix_fmt; in dw100_g_fmt_vid()
791 const struct dw100_q_data *q_data = in dw100_try_fmt() local
794 pix->colorspace = q_data->pix_fmt.colorspace; in dw100_try_fmt()
795 pix->xfer_func = q_data->pix_fmt.xfer_func; in dw100_try_fmt()
796 pix->ycbcr_enc = q_data->pix_fmt.ycbcr_enc; in dw100_try_fmt()
797 pix->quantization = q_data->pix_fmt.quantization; in dw100_try_fmt()
805 struct dw100_q_data *q_data; in dw100_s_fmt() local
812 q_data = dw100_get_q_data(ctx, f->type); in dw100_s_fmt()
813 if (!q_data) in dw100_s_fmt()
821 q_data->fmt = dw100_find_format(f); in dw100_s_fmt()
822 q_data->pix_fmt = f->fmt.pix_mp; in dw100_s_fmt()
823 q_data->crop.top = 0; in dw100_s_fmt()
824 q_data->crop.left = 0; in dw100_s_fmt()
825 q_data->crop.width = f->fmt.pix_mp.width; in dw100_s_fmt()
826 q_data->crop.height = f->fmt.pix_mp.height; in dw100_s_fmt()
835 dst_q_data->pix_fmt.colorspace = q_data->pix_fmt.colorspace; in dw100_s_fmt()
836 dst_q_data->pix_fmt.ycbcr_enc = q_data->pix_fmt.ycbcr_enc; in dw100_s_fmt()
837 dst_q_data->pix_fmt.quantization = q_data->pix_fmt.quantization; in dw100_s_fmt()
838 dst_q_data->pix_fmt.xfer_func = q_data->pix_fmt.xfer_func; in dw100_s_fmt()
843 f->type, q_data->pix_fmt.width, q_data->pix_fmt.height, in dw100_s_fmt()
844 &q_data->pix_fmt.pixelformat); in dw100_s_fmt()
851 dims[0] = dw100_get_n_vertices_from_length(q_data->pix_fmt.width); in dw100_s_fmt()
852 dims[1] = dw100_get_n_vertices_from_length(q_data->pix_fmt.height); in dw100_s_fmt()
1231 const struct dw100_q_data *q_data, in dw100_hw_set_source() argument
1235 const struct dw100_fmt *fmt = q_data->fmt; in dw100_hw_set_source()
1239 width = q_data->pix_fmt.width; in dw100_hw_set_source()
1240 height = q_data->pix_fmt.height; in dw100_hw_set_source()
1241 stride = q_data->pix_fmt.plane_fmt[0].bytesperline; in dw100_hw_set_source()
1242 fourcc = q_data->fmt->fourcc; in dw100_hw_set_source()
1244 if (q_data->pix_fmt.num_planes == 2) in dw100_hw_set_source()
1287 const struct dw100_q_data *q_data, in dw100_hw_set_destination() argument
1292 const struct dw100_fmt *fmt = q_data->fmt; in dw100_hw_set_destination()
1295 width = q_data->pix_fmt.width; in dw100_hw_set_destination()
1296 height = q_data->pix_fmt.height; in dw100_hw_set_destination()
1297 stride = q_data->pix_fmt.plane_fmt[0].bytesperline; in dw100_hw_set_destination()
1301 size_y = q_data->pix_fmt.plane_fmt[0].sizeimage; in dw100_hw_set_destination()
1303 if (q_data->pix_fmt.num_planes == 2) { in dw100_hw_set_destination()
1305 size_uv = q_data->pix_fmt.plane_fmt[1].sizeimage; in dw100_hw_set_destination()
1449 dw100_hw_set_src_crop(dw_dev, &ctx->q_data[DW100_QUEUE_SRC], in dw100_start()
1450 &ctx->q_data[DW100_QUEUE_DST]); in dw100_start()
1451 dw100_hw_set_source(dw_dev, &ctx->q_data[DW100_QUEUE_SRC], in dw100_start()
1453 dw100_hw_set_destination(dw_dev, &ctx->q_data[DW100_QUEUE_DST], in dw100_start()
1454 ctx->q_data[DW100_QUEUE_SRC].fmt, in dw100_start()