|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Video streaming state control. More...
Functions | |
| int | video_stream_start (const struct device *dev, enum video_buf_type type) |
| Start the video device function. | |
| int | video_stream_stop (const struct device *dev, enum video_buf_type type) |
| Stop the video device function. | |
Video streaming state control.
| int video_stream_start | ( | const struct device * | dev, |
| enum video_buf_type | type ) |
#include <zephyr/video/video.h>
Start the video device function.
video_stream_start is called to enter ‘streaming’ state (capture, output...). The driver may receive buffers with video_enqueue() before video_stream_start is called. If driver/device needs a minimum number of buffers before being able to start streaming, then driver set the min_vbuf_count to the related endpoint capabilities.
| dev | Pointer to the device structure. |
| type | The type of the buffers stream to start. |
| 0 | Successful. |
| -EINVAL | Parameters are invalid. |
| -EIO | General input / output error. |
| int video_stream_stop | ( | const struct device * | dev, |
| enum video_buf_type | type ) |
#include <zephyr/video/video.h>
Stop the video device function.
On video_stream_stop, driver must stop any transactions or wait until they finish.
| dev | Pointer to the device structure. |
| type | The type of the buffers stream to stop. |
| 0 | Successful. |
| -EINVAL | Parameters are invalid. |
| -EIO | General input / output error. |