Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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.

Detailed Description

Video streaming state control.

Function Documentation

◆ video_stream_start()

int video_stream_start ( const struct device * dev,
enum video_buf_type type )

#include <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.

Parameters
devPointer to the device structure.
typeThe type of the buffers stream to start.
Return values
0Successful.
-EINVALParameters are invalid.
-EIOGeneral input / output error.

◆ video_stream_stop()

int video_stream_stop ( const struct device * dev,
enum video_buf_type type )

#include <video.h>

Stop the video device function.

On video_stream_stop, driver must stop any transactions or wait until they finish.

Parameters
devPointer to the device structure.
typeThe type of the buffers stream to stop.
Return values
0Successful.
-EINVALParameters are invalid.
-EIOGeneral input / output error.