RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
data - data passed to events
Return Val :
This will return a created stream object
Description :
This will create a stream object with different properties to make it a Camera Video Capture stream
Prototype :
int pw_stream_connect ( struct pw_stream * stream,
enum pw_direction direction,
uint32_t target_id,
enum pw_stream_flags flags,
const struct spa_pod ** params,
uint32_t n_params
)
Parameter :
stream - a Stream
direction - the stream direction
target_id - the target object id to connect to or PW_ID_ANY to let the manager select a target.
flags - stream flags
params - an array with params. The params should ideally contain supported formats.
n_params - number of items in params
Return Val :
If will return success or failure of stream connect
0 - Success <0 - Error
Description :
It will start to connect the stream, You should connect to the process event and use pw_stream_dequeue_buffer() to get the latest metadata and data.