Lines Matching defs:fmt
31 struct v4l2_mbus_framefmt fmt;
563 struct v4l2_mbus_framefmt *fmt = &format->format;
571 if (vs6624_formats[index].mbus_code == fmt->code)
576 fmt->code = vs6624_formats[0].mbus_code;
580 if (fmt->width > VGA_WIDTH)
581 fmt->width = VGA_WIDTH;
582 if (fmt->height > VGA_HEIGHT)
583 fmt->height = VGA_HEIGHT;
584 fmt->width = fmt->width & (~3);
585 fmt->height = fmt->height & (~3);
586 fmt->field = V4L2_FIELD_NONE;
587 fmt->colorspace = vs6624_formats[index].colorspace;
590 cfg->try_fmt = *fmt;
595 switch (fmt->code) {
613 if ((fmt->width == VGA_WIDTH) && (fmt->height == VGA_HEIGHT))
615 else if ((fmt->width == QVGA_WIDTH) && (fmt->height == QVGA_HEIGHT))
617 else if ((fmt->width == QQVGA_WIDTH) && (fmt->height == QQVGA_HEIGHT))
619 else if ((fmt->width == CIF_WIDTH) && (fmt->height == CIF_HEIGHT))
621 else if ((fmt->width == QCIF_WIDTH) && (fmt->height == QCIF_HEIGHT))
623 else if ((fmt->width == QQCIF_WIDTH) && (fmt->height == QQCIF_HEIGHT))
627 vs6624_write(sd, VS6624_MAN_HSIZE0_MSB, fmt->width >> 8);
628 vs6624_write(sd, VS6624_MAN_HSIZE0_LSB, fmt->width & 0xFF);
629 vs6624_write(sd, VS6624_MAN_VSIZE0_MSB, fmt->height >> 8);
630 vs6624_write(sd, VS6624_MAN_VSIZE0_LSB, fmt->height & 0xFF);
634 sensor->fmt = *fmt;
648 format->format = sensor->fmt;
795 sensor->fmt = vs6624_default_fmt;