2.5.13 IDeckLinkDisplayModeIterator Interface¶
The IDeckLinkDisplayModeIterator
interface is used to enumerate the available display modes for a DeckLink device.
An IDeckLinkDisplayModeIterator
interface may be obtained from an IDeckLinkInput
or IDeckLinkOutput
interface using the GetDisplayModeIterator method.
Note
The IDeckLinkDisplayModeIterator
will enumerate all display modes regardless of the current profile. An application should call the DoesSupportVideoMode method in the IDeckLinkInput
, IDeckLinkOutput
or IDeckLinkEncoderInput
interfaces to ensure that a display mode is supported for a given profile.
Interface |
Interface ID |
Description |
---|---|---|
IID_IDeckLinkDisplayMode |
|
|
IID_IDeckLinkOutput |
|
|
IID_IDeckLinkInput |
|
|
IID_IDeckLinkEncoderInput |
|
|
IID_IBMDStreamingDeviceInput |
|
2.5.13.1 IDeckLinkDisplayModeIterator::Next method¶
-
HRESULT IDeckLinkDisplayModeIterator::Next(IDeckLinkDisplayMode **deckLinkDisplayMode);¶
The Next method returns the next available
IDeckLinkDisplayMode
interface.- Parameters:
deckLinkDisplayMode –
IDeckLinkDisplayMode
object interface or NULL when no more display modes are available.- Return values:
E_FAIL – Failure
S_FALSE – No (more) display modes found
S_OK – Success