Lines Matching defs:fmt

42 #define video_dbg(fmt, arg...) do { \
44 printk(KERN_DEBUG pr_fmt("video: " fmt), ## arg); \
646 if (dev->fmt->yuv)
650 saa_writeb(SAA7134_OFMT_VIDEO_A, dev->fmt->pm);
654 if (dev->fmt->planar)
657 bpl = (dev->width * dev->fmt->depth) / 8;
661 if (dev->fmt->bswap)
663 if (dev->fmt->wswap)
678 if (dev->fmt->planar) {
680 bpl_uv = bpl >> dev->fmt->hshift;
681 lines_uv = dev->height >> dev->fmt->vshift;
684 if (dev->fmt->uvswap)
739 size = (dev->width * dev->height * dev->fmt->depth) >> 3;
756 int size = dev->fmt->depth * dev->width * dev->height >> 3;
799 dmaq == &dev->video_q && dev->fmt->planar) {
1022 memset(&f->fmt.vbi.reserved, 0, sizeof(f->fmt.vbi.reserved));
1023 f->fmt.vbi.sampling_rate = 6750000 * 4;
1024 f->fmt.vbi.samples_per_line = 2048 /* VBI_LINE_LENGTH */;
1025 f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY;
1026 f->fmt.vbi.offset = 64 * 4;
1027 f->fmt.vbi.start[0] = norm->vbi_v_start_0;
1028 f->fmt.vbi.count[0] = norm->vbi_v_stop_0 - norm->vbi_v_start_0 +1;
1029 f->fmt.vbi.start[1] = norm->vbi_v_start_1;
1030 f->fmt.vbi.count[1] = f->fmt.vbi.count[0];
1031 f->fmt.vbi.flags = 0; /* VBI_UNSYNC VBI_INTERLACED */
1041 f->fmt.pix.width = dev->width;
1042 f->fmt.pix.height = dev->height;
1043 f->fmt.pix.field = dev->field;
1044 f->fmt.pix.pixelformat = dev->fmt->fourcc;
1045 if (dev->fmt->planar)
1046 f->fmt.pix.bytesperline = f->fmt.pix.width;
1048 f->fmt.pix.bytesperline =
1049 (f->fmt.pix.width * dev->fmt->depth) / 8;
1050 f->fmt.pix.sizeimage =
1051 (f->fmt.pix.height * f->fmt.pix.width * dev->fmt->depth) / 8;
1052 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
1060 struct saa7134_format *fmt;
1064 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
1065 if (NULL == fmt)
1068 field = f->fmt.pix.field;
1073 field = (f->fmt.pix.height > maxh/2)
1087 f->fmt.pix.field = field;
1088 if (f->fmt.pix.width < 48)
1089 f->fmt.pix.width = 48;
1090 if (f->fmt.pix.height < 32)
1091 f->fmt.pix.height = 32;
1092 if (f->fmt.pix.width > maxw)
1093 f->fmt.pix.width = maxw;
1094 if (f->fmt.pix.height > maxh)
1095 f->fmt.pix.height = maxh;
1096 f->fmt.pix.width &= ~0x03;
1097 if (fmt->planar)
1098 f->fmt.pix.bytesperline = f->fmt.pix.width;
1100 f->fmt.pix.bytesperline =
1101 (f->fmt.pix.width * fmt->depth) / 8;
1102 f->fmt.pix.sizeimage =
1103 (f->fmt.pix.height * f->fmt.pix.width * fmt->depth) / 8;
1104 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
1119 dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat);
1120 dev->width = f->fmt.pix.width;
1121 dev->height = f->fmt.pix.height;
1122 dev->field = f->fmt.pix.field;
1689 dev->fmt = format_by_fourcc(V4L2_PIX_FMT_BGR24);