/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() 238 caps->format_caps = fmts; in video_sw_generator_get_caps() 317 while (fmts[i].pixelformat && (fmts[i].pixelformat != fie->format->pixelformat)) { in video_sw_generator_enum_frmival() 321 if ((i == ARRAY_SIZE(fmts)) || (fie->format->width > fmts[i].width_max) || in video_sw_generator_enum_frmival() 322 (fie->format->width < fmts[i].width_min) || in video_sw_generator_enum_frmival() [all …]
|
D | video_mcux_smartdma.c | 220 static const struct video_format_cap fmts[] = { variable 248 if ((fmt->pixelformat != fmts[0].pixelformat) || in nxp_video_sdma_set_format() 249 (fmt->width != fmts[0].width_min) || in nxp_video_sdma_set_format() 250 (fmt->height != fmts[0].height_min) || in nxp_video_sdma_set_format() 251 (fmt->pitch != fmts[0].width_min * 2)) { in nxp_video_sdma_set_format() 287 if ((fmt->pixelformat != fmts[0].pixelformat) || in nxp_video_sdma_get_format() 288 (fmt->width != fmts[0].width_min) || in nxp_video_sdma_get_format() 289 (fmt->height != fmts[0].height_min) || in nxp_video_sdma_get_format() 290 (fmt->pitch != fmts[0].width_min * 2)) { in nxp_video_sdma_get_format() 292 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 | gc2145.c | 706 static const struct video_format_cap fmts[] = { variable 929 w = fmts[res].width_min; in gc2145_set_resolution() 930 h = fmts[res].height_min; in gc2145_set_resolution() 1043 if (fmts[i].width_min == fmt->width && fmts[i].height_min == fmt->height && in gc2145_set_fmt() 1044 fmts[i].pixelformat == fmt->pixelformat) { in gc2145_set_fmt() 1100 caps->format_caps = fmts; in gc2145_get_caps() 1153 fmt.width = fmts[QVGA_RESOLUTION].width_min; in gc2145_init() 1154 fmt.height = fmts[QVGA_RESOLUTION].height_min; in gc2145_init() 1155 fmt.pitch = fmts[QVGA_RESOLUTION].width_min * 2; in gc2145_init()
|
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() 467 caps->format_caps = fmts; in mt9m114_get_caps()
|
D | video_mcux_csi.c | 102 static struct video_format_cap *fmts; variable 361 k_heap_free(&csi_heap, fmts); in video_mcux_csi_get_caps() 362 fmts = k_heap_alloc(&csi_heap, (ind + 1) * sizeof(struct video_format_cap), in video_mcux_csi_get_caps() 366 memcpy(&fmts[i], &caps->format_caps[i], sizeof(fmts[i])); in video_mcux_csi_get_caps() 367 if (fmts[i].pixelformat == VIDEO_PIX_FMT_RGB565) { in video_mcux_csi_get_caps() 368 fmts[i].pixelformat = VIDEO_PIX_FMT_XRGB32; in video_mcux_csi_get_caps() 369 } else if (fmts[i].pixelformat == VIDEO_PIX_FMT_YUYV) { in video_mcux_csi_get_caps() 370 fmts[i].pixelformat = VIDEO_PIX_FMT_XYUV32; in video_mcux_csi_get_caps() 373 caps->format_caps = fmts; in video_mcux_csi_get_caps()
|
D | ov7670.c | 191 static const struct video_format_cap fmts[] = { variable 347 caps->format_caps = fmts; in ov7670_get_caps() 373 while (fmts[i].pixelformat) { 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() 377 switch (fmts[i].width_min) { in ov7670_set_fmt()
|
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() 472 fmt.pixelformat = fmts[0].pixelformat; in emul_imager_init() 473 fmt.width = fmts[0].width_min; in emul_imager_init() 474 fmt.height = fmts[0].height_min; in emul_imager_init()
|
D | ov5640.c | 408 static const struct video_format_cap fmts[] = { variable 560 for (i = 0; i < ARRAY_SIZE(fmts); ++i) { in ov5640_set_fmt() 561 if (fmt->pixelformat == fmts[i].pixelformat && fmt->width >= fmts[i].width_min && in ov5640_set_fmt() 562 fmt->width <= fmts[i].width_max && fmt->height >= fmts[i].height_min && in ov5640_set_fmt() 563 fmt->height <= fmts[i].height_max) { in ov5640_set_fmt() 568 if (i == ARRAY_SIZE(fmts)) { in ov5640_set_fmt() 633 caps->format_caps = fmts; in ov5640_get_caps()
|
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() 927 caps->format_caps = fmts; in ov2640_get_caps()
|
D | ov7725.c | 530 static const struct video_format_cap fmts[] = { variable 547 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 | 768 int video_format_caps_index(const struct video_format_cap *fmts, const struct video_format *fmt,
|