SetAvailableStreamFormats
Sets the available descriptions for the stream.
Declaration
kern_return_t SetAvailableStreamFormats(const IOUserVideoStreamBasicDescription *in_formats, uint32_t in_num_formats);Parameters
- in_formats:
Pointer to a buffer of descriptions, with a size corresponding to
in_num_formats. - in_num_formats:
The number of formats in the
in_formatsbuffer.
Discussion
Changing the available formats will send a notification to the host to update the object state if successful. The object’s work queue synchronizes access to the stream formats.