Contents

init

Initializes an video stream.

Declaration

virtual bool init(IOUserVideoDriver *in_driver, OSString *in_stream_uid, IOUserVideoStreamDirection in_direction, OSArray *in_video_buffers);

Parameters

  • in_driver:

    The video driver that owns this object.

  • in_stream_uid:

    The identifier for the stream.

    Create a new UUID for each video stream you initialize — for example, using the genuuid command in Terminal. Don’t initialize another instance with the same UUID unless you ensure the previous instance has been deallocated.

  • in_direction:

    The stream’s direction.

  • in_video_buffers:

    An array of video buffers.

Return Value

True on success.

See Also

Creating a video stream