Lines Matching +full:frame +full:- +full:format
4 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/drivers/video-controls.h>
33 LOG_INF("Display device: %s", display_dev->name); in display_setup()
37 LOG_INF("- Capabilities:"); in display_setup()
44 /* Set display pixel format to match the one in use by the camera */ in display_setup()
57 return -ENOTSUP; in display_setup()
61 LOG_ERR("Unable to set display format"); in display_setup()
73 .buf_size = vbuf->bytesused, in video_display_frame()
76 .height = vbuf->bytesused / fmt.pitch, in video_display_frame()
79 display_write(display_dev, 0, vbuf->line_offset, &buf_desc, vbuf->buffer); in video_display_frame()
90 unsigned int frame = 0; in main() local
99 LOG_ERR("%s: video device is not ready", video_dev->name); in main()
111 LOG_INF("Video device: %s", video_dev->name); in main()
119 LOG_INF("- Capabilities:"); in main()
124 (char)fcap->pixelformat, (char)(fcap->pixelformat >> 8), in main()
125 (char)(fcap->pixelformat >> 16), (char)(fcap->pixelformat >> 24), in main()
126 fcap->width_min, fcap->width_max, fcap->width_step, fcap->height_min, in main()
127 fcap->height_max, fcap->height_step); in main()
131 /* Get default/native format */ in main()
133 LOG_ERR("Unable to retrieve video format"); in main()
152 LOG_INF("- Video format: %c%c%c%c %ux%u", (char)fmt.pixelformat, in main()
157 LOG_ERR("Unable to set format"); in main()
162 LOG_INF("- Default frame rate : %f fps", in main()
166 LOG_INF("- Supported frame intervals for the default format:"); in main()
168 fie.format = &fmt; in main()
194 LOG_ERR("%s: display device not ready.", display_dev->name); in main()
244 LOG_DBG("Got frame %u! size: %u; timestamp %u ms", frame++, vbuf->bytesused, in main()
245 vbuf->timestamp); in main()
248 if (is_colorbar_ok(vbuf->buffer, fmt)) { in main()