Lines Matching defs:fmt
334 tw_andorl(TW68_DMAC, 0xff, dev->fmt->twformat |
364 unsigned size = (dev->fmt->depth * dev->width * dev->height) >> 3;
448 size = (dev->width * dev->height * dev->fmt->depth) >> 3;
453 bpl = (dev->width * dev->fmt->depth) >> 3;
578 f->fmt.pix.width = dev->width;
579 f->fmt.pix.height = dev->height;
580 f->fmt.pix.field = dev->field;
581 f->fmt.pix.pixelformat = dev->fmt->fourcc;
582 f->fmt.pix.bytesperline =
583 (f->fmt.pix.width * (dev->fmt->depth)) >> 3;
584 f->fmt.pix.sizeimage =
585 f->fmt.pix.height * f->fmt.pix.bytesperline;
586 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
594 const struct tw68_format *fmt;
598 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
599 if (NULL == fmt)
602 field = f->fmt.pix.field;
615 field = (f->fmt.pix.height > maxh / 2)
621 f->fmt.pix.field = field;
622 if (f->fmt.pix.width < 48)
623 f->fmt.pix.width = 48;
624 if (f->fmt.pix.height < 32)
625 f->fmt.pix.height = 32;
626 if (f->fmt.pix.width > 720)
627 f->fmt.pix.width = 720;
628 if (f->fmt.pix.height > maxh)
629 f->fmt.pix.height = maxh;
630 f->fmt.pix.width &= ~0x03;
631 f->fmt.pix.bytesperline =
632 (f->fmt.pix.width * (fmt->depth)) >> 3;
633 f->fmt.pix.sizeimage =
634 f->fmt.pix.height * f->fmt.pix.bytesperline;
635 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
655 dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat);
656 dev->width = f->fmt.pix.width;
657 dev->height = f->fmt.pix.height;
658 dev->field = f->fmt.pix.field;
939 dev->fmt = format_by_fourcc(V4L2_PIX_FMT_BGR24);