Lines Matching full:video
12 #include <zephyr/drivers/video.h>
46 const struct device *const video = DEVICE_DT_GET(DT_CHOSEN(zephyr_camera)); in main() local
48 if (!device_is_ready(video)) { in main()
49 LOG_ERR("%s: video device not ready.", video->name); in main()
53 const struct device *const video = device_get_binding(VIDEO_DEV_SW); in main() local
55 if (video == NULL) { in main()
56 LOG_ERR("%s: video device not found or failed to initialized.", VIDEO_DEV_SW); in main()
86 if (video_get_caps(video, VIDEO_EP_OUT, &caps)) { in main()
87 LOG_ERR("Unable to retrieve video capabilities"); in main()
92 if (video_get_format(video, VIDEO_EP_OUT, &fmt)) { in main()
93 LOG_ERR("Unable to retrieve video format"); in main()
97 printk("Video device detected, format: %c%c%c%c %ux%u\n", (char)fmt.pixelformat, in main()
110 LOG_ERR("Unable to alloc video buffer"); in main()
129 video_enqueue(video, VIDEO_EP_OUT, buffers[i]); in main()
132 /* Start video capture */ in main()
133 if (video_stream_start(video)) { in main()
134 LOG_ERR("Unable to start video"); in main()
143 ret = video_dequeue(video, VIDEO_EP_OUT, &vbuf, K_FOREVER); in main()
145 LOG_ERR("Unable to dequeue video buf"); in main()
151 /* Send video buffer to TCP client */ in main()
159 (void)video_enqueue(video, VIDEO_EP_OUT, vbuf); in main()
163 if (video_stream_stop(video)) { in main()
164 LOG_ERR("Unable to stop video"); in main()
170 ret = video_dequeue(video, VIDEO_EP_OUT, &vbuf, K_NO_WAIT); in main()