Lines Matching refs:fmt
67 struct video_format fmt; member
392 struct video_format *fmt) in mt9m114_set_fmt() argument
399 if (fmt->pixelformat == fmts[i].pixelformat && fmt->width >= fmts[i].width_min && in mt9m114_set_fmt()
400 fmt->width <= fmts[i].width_max && fmt->height >= fmts[i].height_min && in mt9m114_set_fmt()
401 fmt->height <= fmts[i].height_max) { in mt9m114_set_fmt()
412 if (!memcmp(&drv_data->fmt, fmt, sizeof(drv_data->fmt))) { in mt9m114_set_fmt()
417 drv_data->fmt = *fmt; in mt9m114_set_fmt()
420 ret = mt9m114_set_output_format(dev, fmt->pixelformat); in mt9m114_set_fmt()
428 if (fmt->width == resolutionConfigs[i].width && in mt9m114_set_fmt()
429 fmt->height == resolutionConfigs[i].height) { in mt9m114_set_fmt()
445 struct video_format *fmt) in mt9m114_get_fmt() argument
449 *fmt = drv_data->fmt; in mt9m114_get_fmt()
509 struct video_format fmt; in mt9m114_init() local
538 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in mt9m114_init()
539 fmt.width = 480; in mt9m114_init()
540 fmt.height = 272; in mt9m114_init()
541 fmt.pitch = fmt.width * 2; in mt9m114_init()
543 ret = mt9m114_set_fmt(dev, VIDEO_EP_OUT, &fmt); in mt9m114_init()