| /Zephyr-latest/samples/drivers/video/capture_to_lvgl/src/ |
| D | main.c | 59 while (caps.format_caps[i].pixelformat) { in main() 63 (char)fcap->pixelformat, (char)(fcap->pixelformat >> 8), in main() 64 (char)(fcap->pixelformat >> 16), (char)(fcap->pixelformat >> 24), in main() 80 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in main() 87 LOG_INF("- Format: %c%c%c%c %ux%u %u", (char)fmt.pixelformat, (char)(fmt.pixelformat >> 8), in main() 88 (char)(fmt.pixelformat >> 16), (char)(fmt.pixelformat >> 24), fmt.width, fmt.height, in main()
|
| /Zephyr-latest/tests/drivers/video/api/src/ |
| D | video_emul.c | 34 for (size_t i = 0; caps.format_caps[i].pixelformat != 0; i++) { in ZTEST() 35 fmt.pixelformat = caps.format_caps[i].pixelformat; in ZTEST() 41 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST() 49 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST() 57 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST() 65 zexpect_equal(fmt.pixelformat, caps.format_caps[i].pixelformat); in ZTEST() 70 fmt.pixelformat = 0x00000000; in ZTEST() 73 zexpect_not_equal(fmt.pixelformat, 0x00000000, "should not store wrong formats"); in ZTEST() 153 fmt.pixelformat = caps.format_caps[0].pixelformat; in ZTEST()
|
| D | video_common.c | 17 [RGB565] = {.pixelformat = VIDEO_PIX_FMT_RGB565, 20 [YUYV_A] = {.pixelformat = VIDEO_PIX_FMT_YUYV, 23 [YUYV_B] = {.pixelformat = VIDEO_PIX_FMT_YUYV, 35 fmt.pixelformat = VIDEO_PIX_FMT_YUYV; in ZTEST() 77 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in ZTEST()
|
| /Zephyr-latest/drivers/video/ |
| D | video_mcux_csi.c | 111 switch (fmt->pixelformat) { in video_pix_fmt_convert() 113 fmt->pixelformat = isGetFmt ? VIDEO_PIX_FMT_XRGB32 : VIDEO_PIX_FMT_RGB565; in video_pix_fmt_convert() 116 fmt->pixelformat = isGetFmt ? VIDEO_PIX_FMT_XYUV32 : VIDEO_PIX_FMT_YUYV; in video_pix_fmt_convert() 119 fmt->pixelformat = isGetFmt ? VIDEO_PIX_FMT_XRGB32 : VIDEO_PIX_FMT_RGB565; in video_pix_fmt_convert() 122 fmt->pixelformat = isGetFmt ? VIDEO_PIX_FMT_XYUV32 : VIDEO_PIX_FMT_YUYV; in video_pix_fmt_convert() 126 fmt->pitch = fmt->width * video_bits_per_pixel(fmt->pixelformat) / BITS_PER_BYTE; in video_pix_fmt_convert() 135 unsigned int bpp = video_bits_per_pixel(fmt->pixelformat) / BITS_PER_BYTE; in video_mcux_csi_set_fmt() 146 if (fmt->pixelformat != VIDEO_PIX_FMT_XRGB32 && fmt->pixelformat != VIDEO_PIX_FMT_XYUV32) { in video_mcux_csi_set_fmt() 351 while (caps->format_caps[ind].pixelformat) { in video_mcux_csi_get_caps() 360 if (fmts[i].pixelformat == VIDEO_PIX_FMT_RGB565) { in video_mcux_csi_get_caps() [all …]
|
| D | video_sw_generator.c | 42 .pixelformat = VIDEO_PIX_FMT_RGB565, 50 .pixelformat = VIDEO_PIX_FMT_XRGB32, 71 if (fmt->pixelformat == fmts[i].pixelformat && fmt->width >= fmts[i].width_min && in video_sw_generator_set_fmt() 129 if (data->fmt.pixelformat == VIDEO_PIX_FMT_RGB565) { in __fill_buffer_colorbar() 133 } else if (data->fmt.pixelformat == VIDEO_PIX_FMT_XRGB32) { in __fill_buffer_colorbar() 312 while (fmts[i].pixelformat && (fmts[i].pixelformat != fie->format->pixelformat)) { in video_sw_generator_enum_frmival() 356 .fmt.pixelformat = VIDEO_PIX_FMT_RGB565,
|
| D | video_mcux_smartdma.c | 218 .pixelformat = VIDEO_PIX_FMT_RGB565, 244 if ((fmt->pixelformat != fmts[0].pixelformat) || in nxp_video_sdma_set_format() 283 if ((fmt->pixelformat != fmts[0].pixelformat) || in nxp_video_sdma_get_format() 288 fmt->pixelformat = fmts[0].pixelformat; in nxp_video_sdma_get_format()
|
| D | video_emul_imager.c | 142 .pixelformat = (format), \ 332 switch (fmt->pixelformat) { in emul_imager_fill_framebuffer() 349 LOG_WRN("Unsupported pixel format %x, supported: %x, %x", fmt->pixelformat, in emul_imager_fill_framebuffer() 373 dev->name, CONFIG_VIDEO_EMUL_IMAGER_FRAMEBUFFER_SIZE, fmt->pixelformat, in emul_imager_set_fmt() 384 LOG_ERR("Format %x %ux%u not found for %s", fmt->pixelformat, fmt->width, in emul_imager_set_fmt() 466 fmt.pixelformat = fmts[0].pixelformat; in emul_imager_init() 473 LOG_ERR("Failed to set %s to default format %x %ux%u", dev->name, fmt.pixelformat, in emul_imager_init()
|
| D | ov7670.c | 190 .pixelformat = (format), .width_min = (width), .width_max = (width), \ 363 if (fmt->pixelformat != VIDEO_PIX_FMT_RGB565 && fmt->pixelformat != VIDEO_PIX_FMT_YUYV) { in ov7670_set_fmt() 376 while (fmts[i].pixelformat) { in ov7670_set_fmt() 378 fmts[i].pixelformat == fmt->pixelformat) { in ov7670_set_fmt() 532 fmt.pixelformat = VIDEO_PIX_FMT_YUYV; in ov7670_init()
|
| D | mt9m114.c | 176 .pixelformat = (format), .width_min = (width), .width_max = (width), \ 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() 420 ret = mt9m114_set_output_format(dev, fmt->pixelformat); in mt9m114_set_fmt() 533 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in mt9m114_init()
|
| D | video_common.c | 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()
|
| D | ov2640.c | 448 .pixelformat = (format), \ 869 if (fmt->pixelformat != VIDEO_PIX_FMT_RGB565 && fmt->pixelformat != VIDEO_PIX_FMT_JPEG) { in ov2640_set_fmt() 885 ret |= ov2640_set_output_format(dev, fmt->pixelformat); in ov2640_set_fmt() 888 while (fmts[i].pixelformat) { in ov2640_set_fmt() 890 fmts[i].pixelformat == fmt->pixelformat) { in ov2640_set_fmt() 1008 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in ov2640_init()
|
| D | gc2145.c | 700 .pixelformat = format, .width_min = width, .width_max = width, \ 1048 fmts[i].pixelformat == fmt->pixelformat) { in gc2145_set_fmt() 1061 ret = gc2145_set_output_format(dev, fmt->pixelformat); in gc2145_set_fmt() 1158 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in gc2145_init()
|
| D | ov7725.c | 430 if (fmt->pixelformat != VIDEO_PIX_FMT_RGB565 || fmt->height != 480 || in ov7725_set_fmt() 458 if (ov7725_pf_configs[i].pixel_format == fmt->pixelformat) { in ov7725_set_fmt() 527 .pixelformat = VIDEO_PIX_FMT_RGB565, 596 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in ov7725_init()
|
| D | video_stm32_dcmi.c | 203 unsigned int bpp = video_bits_per_pixel(fmt->pixelformat) / BITS_PER_BYTE; in video_stm32_dcmi_set_fmt() 213 data->pixel_format = fmt->pixelformat; in video_stm32_dcmi_set_fmt() 241 fmt->pixelformat = data->pixel_format; in video_stm32_dcmi_get_fmt()
|
| D | video_emul_rx.c | 100 fmt->pixelformat, fmt->width, fmt->height); in emul_rx_set_fmt() 151 fmt->pixelformat, fmt->width, fmt->height); in emul_rx_worker()
|
| D | ov5640.c | 565 {.pixelformat = (format), \ 787 if (fmt->pixelformat == fmts[i].pixelformat && fmt->width >= fmts[i].width_min && in ov5640_set_fmt() 826 if (fmt->pixelformat == VIDEO_PIX_FMT_YUYV) { in ov5640_set_fmt() 1264 fmt.pixelformat = VIDEO_PIX_FMT_RGB565; in ov5640_init()
|
| D | video_mcux_mipi_csi2rx.c | 76 bpp = video_bits_per_pixel(fmt.pixelformat); in mipi_csi2rx_update_settings() 221 return fmt->height * fmt->width * video_bits_per_pixel(fmt->pixelformat); in mipi_csi2rx_cal_frame_size()
|
| /Zephyr-latest/samples/drivers/video/capture/src/ |
| D | main.c | 120 while (caps.format_caps[i].pixelformat) { in main() 124 VIDEO_FOURCC_TO_STR(fcap->pixelformat), in main() 146 fmt.pixelformat = VIDEO_FOURCC_FROM_STR(CONFIG_VIDEO_PIXEL_FORMAT); in main() 150 VIDEO_FOURCC_TO_STR(fmt.pixelformat), fmt.width, fmt.height); in main() 194 err = display_setup(display_dev, fmt.pixelformat); in main()
|
| D | check_test_pattern.h | 123 if (fmt.pixelformat == VIDEO_PIX_FMT_XRGB32) { in is_colorbar_ok() 130 } else if (fmt.pixelformat == VIDEO_PIX_FMT_RGB565) { in is_colorbar_ok() 138 printk("Format %d is not supported", fmt.pixelformat); in is_colorbar_ok()
|
| /Zephyr-latest/samples/drivers/video/tcpserversink/src/ |
| D | main.c | 98 VIDEO_FOURCC_TO_STR(fmt.pixelformat), fmt.width, fmt.height); in main()
|
| /Zephyr-latest/include/zephyr/drivers/ |
| D | video.h | 48 uint32_t pixelformat; member 71 uint32_t pixelformat; member
|