- Posts: 7
- Joined: Tue Apr 26, 2016 10:32 am
Whether a particular card supports input format detection is an attribute of the device, and not of a particular video mode.
As the bmdVideoInputEnableFormatDetection[1] flag has no impact on whether a particular display mode is supported for input, it is ignored by the IDeckLinkInput::DoesSupportVideoMode[2] method.
Support for input format detection can be determined by querying for the flag value of the BMDDeckLinkSupportsInputFormatDetection[3] attribute via the IDeckLinkAttributes[4] interface.
Please see the SDK 'AutomaticModeDetection' example for a code sample, or the SDK manual section "2.4.6 Automatic Mode Detection" for more information.
- Code: Select all
// Determine whether the DeckLink device supports input format detection
result = deckLinkAttributes->GetFlag(BMDDeckLinkSupportsInputFormatDetection, &supported);
if ((result != S_OK) || (supported == false))
{
fprintf(stderr, "Device does not support automatic mode detection\n");
goto bail;
}
Cheers,
-nick
[1] 2.7.7 Video Input Flags
[2] 2.5.4.1 IDeckLinkInput::DoesSupportVideoMode method
[3] 2.7.17 DeckLink Attribute ID
[4] 2.5.17 IDeckLinkAttributes Interface