Home
last modified time | relevance | path

Searched refs:video_dev (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/samples/drivers/video/capture_to_lvgl/src/
Dmain.c26 const struct device *video_dev; in main() local
37 video_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_camera)); in main()
38 if (!device_is_ready(video_dev)) { in main()
39 LOG_ERR("%s device is not ready", video_dev->name); in main()
43 video_dev = device_get_binding(VIDEO_DEV_SW); in main()
44 if (video_dev == NULL) { in main()
50 LOG_INF("- Device name: %s", video_dev->name); in main()
53 if (video_get_caps(video_dev, VIDEO_EP_OUT, &caps)) { in main()
71 if (video_get_format(video_dev, VIDEO_EP_OUT, &fmt)) { in main()
82 if (video_set_format(video_dev, VIDEO_EP_OUT, &fmt)) { in main()
[all …]
/Zephyr-latest/samples/drivers/video/capture/src/
Dmain.c96 const struct device *const video_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_camera)); in main() local
98 if (!device_is_ready(video_dev)) { in main()
99 LOG_ERR("%s: video device is not ready", video_dev->name); in main()
103 const struct device *const video_dev = device_get_binding(VIDEO_DEV_SW); in main() local
105 if (video_dev == NULL) { in main()
111 LOG_INF("Video device: %s", video_dev->name); in main()
114 if (video_get_caps(video_dev, VIDEO_EP_OUT, &caps)) { in main()
132 if (video_get_format(video_dev, VIDEO_EP_OUT, &fmt)) { in main()
156 if (video_set_format(video_dev, VIDEO_EP_OUT, &fmt)) { in main()
161 if (!video_get_frmival(video_dev, VIDEO_EP_OUT, &frmival)) { in main()
[all …]