IOVideoDevice

Inherits from
IOService
Availability
Available in OS X v10.7 and later.
Declared in
IOVideoDevice.h

Overview

A class that represents a video device.

Tasks

Miscellaneous

Instance Methods

getStream

virtual IOVideoStream* getStream( UInt32 streamIndex);
Parameters
streamIndex

The index for which the underlying stream is desired.

Return Value

Returns the number of streams of the device.

getStreamCount

virtual int getStreamCount( void);
Return Value

Returns the number of streams of the device.

newUserClient

See the documentation for the IOService method newUserClient.

virtual IOReturn newUserClient( task_t owningTask, void *securityID, UInt32 type, OSDictionary *properties, IOUserClient **handler);

setStreamMode

Sets the mode of the stream, either input or output.

virtual IOReturn setStreamMode( IOVideoStream *stream, IOStreamMode mode);
Discussion

This must be implemented by a subclass.

startStream

Start sending data on a stream.

virtual IOReturn startStream( IOVideoStream *stream);
Return Value

Returns kIOReturnSuccess if the stream was successfully started.

Discussion

This must be implemented by a subclass.

stopStream

Stop sending data on a stream.

virtual IOReturn stopStream( IOVideoStream *stream);
Return Value

Returns kIOReturnSuccess if the stream was successfully started.

Discussion

This must be implemented by a subclass.

suspendStream

Temporarily suspend data flow on the stream.

virtual IOReturn suspendStream( IOVideoStream *stream);
Return Value

Returns kIOReturnSuccess if the stream was successfully suspended.

Discussion

This must be implemented by a subclass.