Lines Matching refs:q_data

88 static struct deinterlace_q_data q_data[2];  variable
94 return &q_data[V4L2_M2M_SRC]; in get_q_data()
96 return &q_data[V4L2_M2M_DST]; in get_q_data()
484 struct deinterlace_q_data *q_data; in vidioc_g_fmt() local
490 q_data = get_q_data(f->type); in vidioc_g_fmt()
492 f->fmt.pix.width = q_data->width; in vidioc_g_fmt()
493 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
494 f->fmt.pix.field = q_data->field; in vidioc_g_fmt()
495 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in vidioc_g_fmt()
497 switch (q_data->fmt->fourcc) { in vidioc_g_fmt()
499 f->fmt.pix.bytesperline = q_data->width * 3 / 2; in vidioc_g_fmt()
503 f->fmt.pix.bytesperline = q_data->width * 2; in vidioc_g_fmt()
506 f->fmt.pix.sizeimage = q_data->sizeimage; in vidioc_g_fmt()
580 struct deinterlace_q_data *q_data; in vidioc_s_fmt() local
587 q_data = get_q_data(f->type); in vidioc_s_fmt()
588 if (!q_data) in vidioc_s_fmt()
596 q_data->fmt = find_format(f); in vidioc_s_fmt()
597 if (!q_data->fmt) { in vidioc_s_fmt()
605 q_data->width = f->fmt.pix.width; in vidioc_s_fmt()
606 q_data->height = f->fmt.pix.height; in vidioc_s_fmt()
607 q_data->field = f->fmt.pix.field; in vidioc_s_fmt()
612 q_data->sizeimage = (q_data->width * q_data->height * 3) / 2; in vidioc_s_fmt()
617 q_data->sizeimage = q_data->width * q_data->height * 2; in vidioc_s_fmt()
622 f->type, q_data->width, q_data->height, q_data->fmt->fourcc, in vidioc_s_fmt()
623 q_data->field); in vidioc_s_fmt()
736 struct deinterlace_q_data *q_data; in deinterlace_queue_setup() local
739 q_data = get_q_data(vq->type); in deinterlace_queue_setup()
741 switch (q_data->fmt->fourcc) { in deinterlace_queue_setup()
743 size = q_data->width * q_data->height * 3 / 2; in deinterlace_queue_setup()
747 size = q_data->width * q_data->height * 2; in deinterlace_queue_setup()
762 struct deinterlace_q_data *q_data; in deinterlace_buf_prepare() local
766 q_data = get_q_data(vb->vb2_queue->type); in deinterlace_buf_prepare()
768 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in deinterlace_buf_prepare()
770 __func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage); in deinterlace_buf_prepare()
774 vb2_set_plane_payload(vb, 0, q_data->sizeimage); in deinterlace_buf_prepare()
810 q_data[V4L2_M2M_SRC].fmt = &formats[0]; in queue_init()
811 q_data[V4L2_M2M_SRC].width = 640; in queue_init()
812 q_data[V4L2_M2M_SRC].height = 480; in queue_init()
813 q_data[V4L2_M2M_SRC].sizeimage = (640 * 480 * 3) / 2; in queue_init()
814 q_data[V4L2_M2M_SRC].field = V4L2_FIELD_SEQ_TB; in queue_init()
829 q_data[V4L2_M2M_DST].fmt = &formats[0]; in queue_init()
830 q_data[V4L2_M2M_DST].width = 640; in queue_init()
831 q_data[V4L2_M2M_DST].height = 480; in queue_init()
832 q_data[V4L2_M2M_DST].sizeimage = (640 * 480 * 3) / 2; in queue_init()
833 q_data[V4L2_M2M_SRC].field = V4L2_FIELD_INTERLACED_TB; in queue_init()