Home
last modified time | relevance | path

Searched refs:fmts (Results 1 – 13 of 13) sorted by relevance

/Zephyr-latest/drivers/video/
Dvideo_sw_generator.c41 static const struct video_format_cap fmts[] = {{ variable
70 for (i = 0; i < ARRAY_SIZE(fmts); ++i) { in video_sw_generator_set_fmt()
71 if (fmt->pixelformat == fmts[i].pixelformat && fmt->width >= fmts[i].width_min && in video_sw_generator_set_fmt()
72 fmt->width <= fmts[i].width_max && fmt->height >= fmts[i].height_min && in video_sw_generator_set_fmt()
73 fmt->height <= fmts[i].height_max) { in video_sw_generator_set_fmt()
78 if (i == ARRAY_SIZE(fmts)) { in video_sw_generator_set_fmt()
233 caps->format_caps = fmts; in video_sw_generator_get_caps()
312 while (fmts[i].pixelformat && (fmts[i].pixelformat != fie->format->pixelformat)) { in video_sw_generator_enum_frmival()
316 if ((i == ARRAY_SIZE(fmts)) || (fie->format->width > fmts[i].width_max) || in video_sw_generator_enum_frmival()
317 (fie->format->width < fmts[i].width_min) || in video_sw_generator_enum_frmival()
[all …]
Dvideo_mcux_smartdma.c216 static const struct video_format_cap fmts[] = { variable
244 if ((fmt->pixelformat != fmts[0].pixelformat) || in nxp_video_sdma_set_format()
245 (fmt->width != fmts[0].width_min) || in nxp_video_sdma_set_format()
246 (fmt->height != fmts[0].height_min) || in nxp_video_sdma_set_format()
247 (fmt->pitch != fmts[0].width_min * 2)) { in nxp_video_sdma_set_format()
283 if ((fmt->pixelformat != fmts[0].pixelformat) || in nxp_video_sdma_get_format()
284 (fmt->width != fmts[0].width_min) || in nxp_video_sdma_get_format()
285 (fmt->height != fmts[0].height_min) || in nxp_video_sdma_get_format()
286 (fmt->pitch != fmts[0].width_min * 2)) { in nxp_video_sdma_get_format()
288 fmt->pixelformat = fmts[0].pixelformat; in nxp_video_sdma_get_format()
[all …]
Dvideo_common.c90 int video_format_caps_index(const struct video_format_cap *fmts, const struct video_format *fmt, in video_format_caps_index() argument
93 for (int i = 0; fmts[i].pixelformat != 0; i++) { in video_format_caps_index()
94 if (fmts[i].pixelformat == fmt->pixelformat && in video_format_caps_index()
95 IN_RANGE(fmt->width, fmts[i].width_min, fmts[i].width_max) && in video_format_caps_index()
96 IN_RANGE(fmt->height, fmts[i].height_min, fmts[i].height_max)) { in video_format_caps_index()
Dvideo_mcux_csi.c102 static struct video_format_cap *fmts; variable
354 k_heap_free(&csi_heap, fmts); in video_mcux_csi_get_caps()
355 fmts = k_heap_alloc(&csi_heap, (ind + 1) * sizeof(struct video_format_cap), in video_mcux_csi_get_caps()
359 memcpy(&fmts[i], &caps->format_caps[i], sizeof(fmts[i])); in video_mcux_csi_get_caps()
360 if (fmts[i].pixelformat == VIDEO_PIX_FMT_RGB565) { in video_mcux_csi_get_caps()
361 fmts[i].pixelformat = VIDEO_PIX_FMT_XRGB32; in video_mcux_csi_get_caps()
362 } else if (fmts[i].pixelformat == VIDEO_PIX_FMT_YUYV) { in video_mcux_csi_get_caps()
363 fmts[i].pixelformat = VIDEO_PIX_FMT_XYUV32; in video_mcux_csi_get_caps()
366 caps->format_caps = fmts; in video_mcux_csi_get_caps()
Dmt9m114.c180 static const struct video_format_cap fmts[] = { variable
398 while (fmts[i].pixelformat) { in mt9m114_set_fmt()
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()
407 if (i == (ARRAY_SIZE(fmts) - 1)) { in mt9m114_set_fmt()
463 caps->format_caps = fmts; in mt9m114_get_caps()
Dov7670.c194 static const struct video_format_cap fmts[] = { variable
350 caps->format_caps = fmts; in ov7670_get_caps()
376 while (fmts[i].pixelformat) { in ov7670_set_fmt()
377 if (fmts[i].width_min == fmt->width && fmts[i].height_min == fmt->height && in ov7670_set_fmt()
378 fmts[i].pixelformat == fmt->pixelformat) { in ov7670_set_fmt()
380 switch (fmts[i].width_min) { in ov7670_set_fmt()
Dgc2145.c713 static const struct video_format_cap fmts[] = { variable
1037 size_t res = ARRAY_SIZE(fmts); in gc2145_set_fmt()
1046 for (int i = 0; i < ARRAY_SIZE(fmts) - 1; i++) { in gc2145_set_fmt()
1047 if (fmts[i].width_min == fmt->width && fmts[i].height_min == fmt->height && in gc2145_set_fmt()
1048 fmts[i].pixelformat == fmt->pixelformat) { in gc2145_set_fmt()
1053 if (res == ARRAY_SIZE(fmts)) { in gc2145_set_fmt()
1099 caps->format_caps = fmts; in gc2145_get_caps()
Dvideo_emul_imager.c150 static const struct video_format_cap fmts[] = { variable
303 ret = video_format_caps_index(fmts, fie->format, &fmt_id); in emul_imager_enum_frmival()
382 ret = video_format_caps_index(fmts, fmt, &fmt_id); in emul_imager_set_fmt()
422 caps->format_caps = fmts; in emul_imager_get_caps()
466 fmt.pixelformat = fmts[0].pixelformat; in emul_imager_init()
467 fmt.width = fmts[0].width_min; in emul_imager_init()
468 fmt.height = fmts[0].height_min; in emul_imager_init()
Dov5640.c769 const struct video_format_cap *fmts; in ov5640_set_fmt() local
775 fmts = dvp_fmts; in ov5640_set_fmt()
780 fmts = csi2_fmts; in ov5640_set_fmt()
787 if (fmt->pixelformat == fmts[i].pixelformat && fmt->width >= fmts[i].width_min && in ov5640_set_fmt()
788 fmt->width <= fmts[i].width_max && fmt->height >= fmts[i].height_min && in ov5640_set_fmt()
789 fmt->height <= fmts[i].height_max) { in ov5640_set_fmt()
Dov2640.c457 static const struct video_format_cap fmts[] = { variable
888 while (fmts[i].pixelformat) { in ov2640_set_fmt()
889 if (fmts[i].width_min == width && fmts[i].height_min == height && in ov2640_set_fmt()
890 fmts[i].pixelformat == fmt->pixelformat) { in ov2640_set_fmt()
922 caps->format_caps = fmts; in ov2640_get_caps()
Dov7725.c525 static const struct video_format_cap fmts[] = { variable
542 caps->format_caps = fmts; in ov7725_get_caps()
/Zephyr-latest/tests/drivers/video/api/src/
Dvideo_common.c16 static const struct video_format_cap fmts[] = { variable
40 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
47 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
54 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
61 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
67 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
73 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
82 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
88 ret = video_format_caps_index(fmts, &fmt, &idx); in ZTEST()
/Zephyr-latest/include/zephyr/drivers/
Dvideo.h764 int video_format_caps_index(const struct video_format_cap *fmts, const struct video_format *fmt,