| /Zephyr-latest/drivers/video/ |
| D | video_sw_generator.c | 41 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 …]
|
| D | video_mcux_smartdma.c | 216 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 …]
|
| D | video_common.c | 90 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()
|
| D | video_mcux_csi.c | 102 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()
|
| D | mt9m114.c | 180 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()
|
| D | ov7670.c | 194 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()
|
| D | gc2145.c | 713 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()
|
| D | video_emul_imager.c | 150 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()
|
| D | ov5640.c | 769 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()
|
| D | ov2640.c | 457 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()
|
| D | ov7725.c | 525 static const struct video_format_cap fmts[] = { variable 542 caps->format_caps = fmts; in ov7725_get_caps()
|
| /Zephyr-latest/tests/drivers/video/api/src/ |
| D | video_common.c | 16 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/ |
| D | video.h | 764 int video_format_caps_index(const struct video_format_cap *fmts, const struct video_format *fmt,
|