AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
ntv2devicefeatures.cpp File Reference

Implementations of non-auto-generated device capability functions. More...

Include dependency graph for ntv2devicefeatures.cpp:

Go to the source code of this file.

Macros

#define MAX_OF(__a__, __b__)   ((__a__) > (__b__) ? (__a__) : (__b__))
 

Functions

bool NTV2DeviceCanDoAudioOut (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceCanDoAudioIn (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceCanDo292Out (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDo292In (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDoLTCEmbeddedN (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDoOutputDestination (const NTV2DeviceID inDeviceID, const NTV2OutputDest inOutputDest)
 
bool NTV2DeviceCanDoColorCorrection (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceCanDoProgrammableCSC (const NTV2DeviceID inDeviceID)
 
UWord Get8MBFrameSizeFactor (const NTV2FrameGeometry inFG, const NTV2FrameBufferFormat inFBF)
 
bool NTV2DeviceCanDo3GOut (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDo12GOut (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDo3GIn (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDo12GIn (NTV2DeviceID boardID, UWord index0)
 
ULWord NTV2DeviceGetFrameBufferSize_Ex (NTV2DeviceID boardID)
 
ULWord NTV2DeviceGetNumberFrameBuffers_Ex (NTV2DeviceID boardID)
 
ULWord NTV2DeviceGetAudioFrameBuffer_Ex (NTV2DeviceID boardID)
 
ULWord NTV2DeviceGetAudioFrameBuffer2_Ex (NTV2DeviceID boardID)
 
ULWord NTV2DeviceGetFrameBufferSize (NTV2DeviceID id, NTV2FrameGeometry fg, NTV2FrameBufferFormat fbf)
 
ULWord NTV2DeviceGetNumberFrameBuffers (NTV2DeviceID id, NTV2FrameGeometry fg, NTV2FrameBufferFormat fbf)
 
ULWord NTV2DeviceGetNumberVideoFrameBuffers (NTV2DeviceID inDeviceID, NTV2FrameGeometry inFrameGeometry, NTV2Framesize inFrameSize)
 
ULWord NTV2DeviceGetAudioFrameBuffer (NTV2DeviceID boardID, NTV2FrameGeometry inFrameGeometry, NTV2FrameBufferFormat frameFormat)
 
ULWord NTV2DeviceGetAudioFrameBuffer2 (NTV2DeviceID boardID, NTV2FrameGeometry inFrameGeometry, NTV2FrameBufferFormat frameFormat)
 
bool NTV2DeviceGetVideoFormatFromState (NTV2VideoFormat *pOutValue, const NTV2FrameRate inFrameRate, const NTV2FrameGeometry inFrameGeometry, const NTV2Standard inStandard, const ULWord inIsSMPTE372Enabled)
 
bool NTV2DeviceGetVideoFormatFromState_Ex (NTV2VideoFormat *pOutValue, const NTV2FrameRate inFrameRate, const NTV2FrameGeometry inFrameGeometry, const NTV2Standard inStandard, const ULWord inIsSMPTE372Enabled, const bool inIsProgressivePicture)
 
bool NTV2DeviceGetVideoFormatFromState_Ex2 (NTV2VideoFormat *pOutValue, const NTV2FrameRate inFrameRate, const NTV2FrameGeometry inFrameGeometry, const NTV2Standard inStandard, const ULWord inIsSMPTE372Enabled, const bool inIsProgressivePicture, const bool inIsSquareDivision)
 
bool NTV2DeviceCanDoTCIndex (const NTV2DeviceID inDeviceID, const NTV2TCIndex inTCIndex)
 
bool NTV2DeviceCanDoInputTCIndex (const NTV2DeviceID inDeviceID, const NTV2TCIndex inTCIndex)
 
bool NTV2DeviceCanDoOutputTCIndex (const NTV2DeviceID inDeviceID, const NTV2TCIndex inTCIndex)
 
NTV2AudioSystem NTV2DeviceGetAudioMixerSystem (const NTV2DeviceID inDeviceID)
 
NTV2AudioSystem NTV2DeviceGetHostAudioSystem (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceROMHasBankSelect (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceHasSPIv2 (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceHasSPIv3 (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceHasSPIv4 (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceHasSPIv5 (const NTV2DeviceID inDeviceID)
 
bool NTV2DeviceHasGenlockv2 (const NTV2DeviceID devID)
 
bool NTV2DeviceHasGenlockv3 (const NTV2DeviceID devID)
 
bool NTV2DeviceHasColorSpaceConverterOnChannel2 (const NTV2DeviceID devID)
 
bool NTV2DeviceCanDoAudio2Channels (const NTV2DeviceID devID)
 
bool NTV2DeviceCanDoAudio6Channels (const NTV2DeviceID devID)
 
bool NTV2DeviceCanDoAudio8Channels (const NTV2DeviceID devID)
 
UWord NTV2DeviceGetNumAudioStreams (const NTV2DeviceID devID)
 
bool NTV2DeviceCanDoAudioN (const NTV2DeviceID devID, UWord index0)
 
bool NTV2DeviceCanDoLTCOutN (const NTV2DeviceID devID, UWord index0)
 
bool NTV2DeviceCanDoLTCInN (const NTV2DeviceID devID, UWord index0)
 
bool NTV2DeviceCanDoRS422N (const NTV2DeviceID devID, const NTV2Channel ch)
 
bool work_around_erroneous_compiler_warning (void)
 

Detailed Description

Implementations of non-auto-generated device capability functions.

Note
The functions in this module are those that aren't auto-generated by a Python script from CSV files that were exported from a spreadsheet. The mechanically-generated functions are placed in the 'ntv2devicefeatures.hpp' file that's included below. See the README in 'ntv2projects/sdkgen' for more details.

Definition in file ntv2devicefeatures.cpp.

Macro Definition Documentation

◆ MAX_OF

#define MAX_OF (   __a__,
  __b__ 
)    ((__a__) > (__b__) ? (__a__) : (__b__))

Definition at line 991 of file ntv2devicefeatures.cpp.

Function Documentation

◆ Get8MBFrameSizeFactor()

UWord Get8MBFrameSizeFactor ( const NTV2FrameGeometry  inFG,
const NTV2FrameBufferFormat  inFBF 
)
Deprecated:
Starting in SDK 17.2

Definition at line 115 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo12GIn()

bool NTV2DeviceCanDo12GIn ( NTV2DeviceID  id,
UWord  ndx 
)
Deprecated:
Starting in SDK 17.2. Use DeviceCapabilities::CanDoWidget(NTV2WidgetType_SDIIn12G, ndx) instead

Definition at line 237 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo12GOut()

bool NTV2DeviceCanDo12GOut ( NTV2DeviceID  id,
UWord  ndx 
)
Deprecated:
Starting in SDK 17.2. Use DeviceCapabilities::CanDoWidget(NTV2WidgetType_SDIOut12G, ndx) instead

Definition at line 209 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo292In()

bool NTV2DeviceCanDo292In ( NTV2DeviceID  id,
UWord  ndx 
)
Deprecated:
Starting in SDK 17.2. Call DeviceCapabilities::CanDoWidget(NTV2WidgetType_SDIIn, ndx) instead

Definition at line 53 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo292Out()

bool NTV2DeviceCanDo292Out ( NTV2DeviceID  id,
UWord  ndx 
)
Deprecated:
Starting in SDK 17.2. Call DeviceCapabilities::CanDoWidget(NTV2WidgetType_SDIOut, ndx) instead

Definition at line 41 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo3GIn()

bool NTV2DeviceCanDo3GIn ( NTV2DeviceID  id,
UWord  ndx 
)
Deprecated:
Starting in SDK 17.2. Use DeviceCapabilities::CanDoWidget(NTV2WidgetType_SDIIn3G, ndx) instead

Definition at line 221 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo3GOut()

bool NTV2DeviceCanDo3GOut ( NTV2DeviceID  id,
UWord  ndx 
)
Deprecated:
Starting in SDK 17.2. Use DeviceCapabilities::CanDoWidget(NTV2WidgetType_SDIOut3G, ndx) instead

Definition at line 193 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudio2Channels()

bool NTV2DeviceCanDoAudio2Channels ( const NTV2DeviceID  devID)
Deprecated:
Use CNTV2Card::features().GetMaxAudioChannels() or NTV2DeviceGetMaxAudioChannels instead

Definition at line 1177 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudio6Channels()

bool NTV2DeviceCanDoAudio6Channels ( const NTV2DeviceID  devID)
Deprecated:
Use CNTV2Card::features().GetMaxAudioChannels() or NTV2DeviceGetMaxAudioChannels instead

Definition at line 1178 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudio8Channels()

bool NTV2DeviceCanDoAudio8Channels ( const NTV2DeviceID  devID)
Deprecated:
Use CNTV2Card::features().GetMaxAudioChannels() or NTV2DeviceGetMaxAudioChannels instead

Definition at line 1179 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudioIn()

bool NTV2DeviceCanDoAudioIn ( const NTV2DeviceID  id)
Deprecated:
Starting in SDK 17.2. Call DeviceCapabilities::CanDoAudioInput instead

Definition at line 32 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudioN()

bool NTV2DeviceCanDoAudioN ( const NTV2DeviceID  devID,
UWord  index0 
)
Deprecated:
Use CNTV2Card::features().GetNumAudioSystems() or NTV2DeviceGetNumAudioSystems instead

Definition at line 1182 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudioOut()

bool NTV2DeviceCanDoAudioOut ( const NTV2DeviceID  id)
Deprecated:
Starting in SDK 17.2. Call DeviceCapabilities::CanDoAudioOutput instead

Definition at line 23 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoColorCorrection()

bool NTV2DeviceCanDoColorCorrection ( const NTV2DeviceID  id)
Deprecated:
Starting in SDK 17.2

Definition at line 101 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoInputTCIndex()

bool NTV2DeviceCanDoInputTCIndex ( const NTV2DeviceID  inDeviceID,
const NTV2TCIndex  inTCIndex 
)
Returns
True if the device having the given ID supports the specified NTV2TCIndex for input.

Definition at line 1043 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoLTCEmbeddedN()

bool NTV2DeviceCanDoLTCEmbeddedN ( NTV2DeviceID  id,
UWord  ndx 
)
Deprecated:
Starting in SDK 17.2

Definition at line 63 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoLTCInN()

bool NTV2DeviceCanDoLTCInN ( const NTV2DeviceID  devID,
UWord  index0 
)
Deprecated:
Use CNTV2Card::features().GetNumLTCInputs() or NTV2DeviceGetNumLTCInputs instead

Definition at line 1184 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoLTCOutN()

bool NTV2DeviceCanDoLTCOutN ( const NTV2DeviceID  devID,
UWord  index0 
)
Deprecated:
Use CNTV2Card::features().GetNumLTCOutputs() or NTV2DeviceGetNumLTCOutputs instead

Definition at line 1183 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoOutputDestination()

bool NTV2DeviceCanDoOutputDestination ( const NTV2DeviceID  id,
const NTV2OutputDest  od 
)
Deprecated:
Starting in SDK 17.2

Definition at line 81 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoOutputTCIndex()

bool NTV2DeviceCanDoOutputTCIndex ( const NTV2DeviceID  inDeviceID,
const NTV2TCIndex  inTCIndex 
)
Returns
True if the device having the given ID supports the specified NTV2TCIndex for output. (New in SDK 17.1)

Definition at line 1093 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoProgrammableCSC()

bool NTV2DeviceCanDoProgrammableCSC ( const NTV2DeviceID  id)
Deprecated:
Starting in SDK 17.2

Definition at line 108 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoRS422N()

bool NTV2DeviceCanDoRS422N ( const NTV2DeviceID  devID,
const NTV2Channel  ch 
)
Deprecated:
Use CNTV2Card::features().GetNumSerialPorts() or NTV2DeviceGetNumSerialPorts instead

Definition at line 1185 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoTCIndex()

bool NTV2DeviceCanDoTCIndex ( const NTV2DeviceID  inDeviceID,
const NTV2TCIndex  inTCIndex 
)
Returns
True if the device having the given ID supports the specified NTV2TCIndex.

Definition at line 993 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioFrameBuffer()

ULWord NTV2DeviceGetAudioFrameBuffer ( NTV2DeviceID  boardID,
NTV2FrameGeometry  inFrameGeometry,
NTV2FrameBufferFormat  frameFormat 
)

Definition at line 662 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioFrameBuffer2()

ULWord NTV2DeviceGetAudioFrameBuffer2 ( NTV2DeviceID  boardID,
NTV2FrameGeometry  inFrameGeometry,
NTV2FrameBufferFormat  frameFormat 
)

Definition at line 668 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioFrameBuffer2_Ex()

ULWord NTV2DeviceGetAudioFrameBuffer2_Ex ( NTV2DeviceID  id)
Deprecated:
Starting in SDK 17.1

Definition at line 319 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioFrameBuffer_Ex()

ULWord NTV2DeviceGetAudioFrameBuffer_Ex ( NTV2DeviceID  id)
Deprecated:
Starting in SDK 17.1

Definition at line 306 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioMixerSystem()

NTV2AudioSystem NTV2DeviceGetAudioMixerSystem ( const NTV2DeviceID  inDeviceID)
Returns
The NTV2AudioSystem used by the audio mixer for the given device (or NTV2_AUDIOSYSTEM_INVALID if there is no mixer).

Definition at line 1143 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetFrameBufferSize()

ULWord NTV2DeviceGetFrameBufferSize ( NTV2DeviceID  id,
NTV2FrameGeometry  fg,
NTV2FrameBufferFormat  fbf 
)
Deprecated:
Starting in SDK 17.1

Definition at line 325 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetFrameBufferSize_Ex()

ULWord NTV2DeviceGetFrameBufferSize_Ex ( NTV2DeviceID  id)
Deprecated:
Starting in SDK 17.1

Definition at line 257 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetHostAudioSystem()

NTV2AudioSystem NTV2DeviceGetHostAudioSystem ( const NTV2DeviceID  inDeviceID)
Returns
The NTV2AudioSystem used for host audio support for the given device (or NTV2_AUDIOSYSTEM_INVALID if there is no host audio system).

Definition at line 1150 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetNumAudioStreams()

UWord NTV2DeviceGetNumAudioStreams ( const NTV2DeviceID  devID)
Deprecated:
Use CNTV2Card::features().GetNumAudioSystems() or NTV2DeviceGetNumAudioSystems instead

Definition at line 1181 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetNumberFrameBuffers()

ULWord NTV2DeviceGetNumberFrameBuffers ( NTV2DeviceID  id,
NTV2FrameGeometry  fg,
NTV2FrameBufferFormat  fbf 
)
Deprecated:
Starting in SDK 17.1

Definition at line 501 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetNumberFrameBuffers_Ex()

ULWord NTV2DeviceGetNumberFrameBuffers_Ex ( NTV2DeviceID  id)
Deprecated:
Starting in SDK 17.1

Definition at line 266 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetNumberVideoFrameBuffers()

ULWord NTV2DeviceGetNumberVideoFrameBuffers ( NTV2DeviceID  inDeviceID,
NTV2FrameGeometry  inFrameGeometry,
NTV2Framesize  inFrameSize 
)

Definition at line 637 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetVideoFormatFromState()

bool NTV2DeviceGetVideoFormatFromState ( NTV2VideoFormat pOutValue,
const NTV2FrameRate  inFrameRate,
const NTV2FrameGeometry  inFrameGeometry,
const NTV2Standard  inStandard,
const ULWord  inIsSMPTE372Enabled 
)

Definition at line 674 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetVideoFormatFromState_Ex()

bool NTV2DeviceGetVideoFormatFromState_Ex ( NTV2VideoFormat pOutValue,
const NTV2FrameRate  inFrameRate,
const NTV2FrameGeometry  inFrameGeometry,
const NTV2Standard  inStandard,
const ULWord  inIsSMPTE372Enabled,
const bool  inIsProgressivePicture 
)

Definition at line 683 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetVideoFormatFromState_Ex2()

bool NTV2DeviceGetVideoFormatFromState_Ex2 ( NTV2VideoFormat pOutValue,
const NTV2FrameRate  inFrameRate,
const NTV2FrameGeometry  inFrameGeometry,
const NTV2Standard  inStandard,
const ULWord  inIsSMPTE372Enabled,
const bool  inIsProgressivePicture,
const bool  inIsSquareDivision 
)

Definition at line 693 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasColorSpaceConverterOnChannel2()

bool NTV2DeviceHasColorSpaceConverterOnChannel2 ( const NTV2DeviceID  devID)
Deprecated:
Call CNTV2Card::features().CanDoWidget(NTV2_WgtCSC2) or NTV2DeviceCanDoWidget instead

Definition at line 1175 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasGenlockv2()

bool NTV2DeviceHasGenlockv2 ( const NTV2DeviceID  devID)
Deprecated:
Use CNTV2Card::features().GetGenlockVersion() or NTV2DeviceGetGenlockVersion instead

Definition at line 1172 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasGenlockv3()

bool NTV2DeviceHasGenlockv3 ( const NTV2DeviceID  devID)
Deprecated:
Use CNTV2Card::features().GetGenlockVersion() or NTV2DeviceGetGenlockVersion instead

Definition at line 1173 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasSPIv2()

bool NTV2DeviceHasSPIv2 ( const NTV2DeviceID  inDeviceID)
Deprecated:
Use CNTV2Card::features().GetSPIFlashVersion() or NTV2DeviceGetSPIFlashVersion instead

Definition at line 1167 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasSPIv3()

bool NTV2DeviceHasSPIv3 ( const NTV2DeviceID  inDeviceID)
Deprecated:
Use CNTV2Card::features().GetSPIFlashVersion() or NTV2DeviceGetSPIFlashVersion instead

Definition at line 1168 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasSPIv4()

bool NTV2DeviceHasSPIv4 ( const NTV2DeviceID  inDeviceID)
Deprecated:
Use CNTV2Card::features().GetSPIFlashVersion() or NTV2DeviceGetSPIFlashVersion instead

Definition at line 1169 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasSPIv5()

bool NTV2DeviceHasSPIv5 ( const NTV2DeviceID  inDeviceID)
Deprecated:
Use CNTV2Card::features().GetSPIFlashVersion() or NTV2DeviceGetSPIFlashVersion instead

Definition at line 1170 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceROMHasBankSelect()

bool NTV2DeviceROMHasBankSelect ( const NTV2DeviceID  inDeviceID)
Returns
True if the device has SPI flash that incorporates bank selection.

Definition at line 1158 of file ntv2devicefeatures.cpp.

◆ work_around_erroneous_compiler_warning()

bool work_around_erroneous_compiler_warning ( void  )

Definition at line 1188 of file ntv2devicefeatures.cpp.