Lines Matching refs:fmt
33 struct video_format fmt; member
352 struct video_format *fmt) in ov7670_set_fmt() argument
360 if (fmt->pixelformat != VIDEO_PIX_FMT_RGB565 && fmt->pixelformat != VIDEO_PIX_FMT_YUYV) { in ov7670_set_fmt()
365 if (!memcmp(&data->fmt, fmt, sizeof(data->fmt))) { in ov7670_set_fmt()
370 memcpy(&data->fmt, fmt, sizeof(data->fmt)); in ov7670_set_fmt()
374 if (fmts[i].width_min == fmt->width && fmts[i].height_min == fmt->height && in ov7670_set_fmt()
375 fmts[i].pixelformat == fmt->pixelformat) { in ov7670_set_fmt()
438 struct video_format *fmt) in ov7670_get_fmt() argument
442 if (fmt == NULL) { in ov7670_get_fmt()
445 memcpy(fmt, &data->fmt, sizeof(data->fmt)); in ov7670_get_fmt()
454 struct video_format fmt; in ov7670_init() local
529 fmt.pixelformat = VIDEO_PIX_FMT_YUYV; in ov7670_init()
530 fmt.width = 640; in ov7670_init()
531 fmt.height = 480; in ov7670_init()
532 fmt.pitch = fmt.width * 2; in ov7670_init()
533 ret = ov7670_set_fmt(dev, VIDEO_EP_OUT, &fmt); in ov7670_init()