AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
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 NTV2DeviceCanDo3GOut (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDo12GOut (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDo292In (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDo3GIn (NTV2DeviceID boardID, UWord index0)
 
bool NTV2DeviceCanDo12GIn (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)
 
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 982 of file ntv2devicefeatures.cpp.

Function Documentation

◆ Get8MBFrameSizeFactor()

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

Definition at line 171 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo12GIn()

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

Definition at line 107 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo12GOut()

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

Definition at line 69 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo292In()

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

Definition at line 81 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo292Out()

bool NTV2DeviceCanDo292Out ( NTV2DeviceID  id,
UWord  ndx 
)
Deprecated:
Starting in SDK 17.1. 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.1. Call DeviceCapabilities::CanDoWidget(NTV2WidgetType_SDIIn3G, ndx) instead

Definition at line 91 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDo3GOut()

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

Definition at line 53 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudio2Channels()

bool NTV2DeviceCanDoAudio2Channels ( const NTV2DeviceID  devID)
Deprecated:
Use NTV2DeviceGetMaxAudioChannels instead.

Definition at line 1168 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudio6Channels()

bool NTV2DeviceCanDoAudio6Channels ( const NTV2DeviceID  devID)
Deprecated:
Use NTV2DeviceGetMaxAudioChannels instead.

Definition at line 1169 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudio8Channels()

bool NTV2DeviceCanDoAudio8Channels ( const NTV2DeviceID  devID)
Deprecated:
Use NTV2DeviceGetMaxAudioChannels instead.

Definition at line 1170 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudioIn()

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

Definition at line 32 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudioN()

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

Definition at line 1173 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoAudioOut()

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

Definition at line 23 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoColorCorrection()

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

Definition at line 157 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 1034 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoLTCEmbeddedN()

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

Definition at line 119 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoLTCInN()

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

Definition at line 1175 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoLTCOutN()

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

Definition at line 1174 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoOutputDestination()

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

Definition at line 137 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 1084 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoProgrammableCSC()

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

Definition at line 164 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceCanDoRS422N()

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

Definition at line 1176 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 984 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioFrameBuffer()

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

Definition at line 653 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioFrameBuffer2()

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

Definition at line 659 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioFrameBuffer2_Ex()

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

Definition at line 318 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetAudioFrameBuffer_Ex()

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

Definition at line 305 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 1134 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 256 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 1141 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetNumAudioStreams()

UWord NTV2DeviceGetNumAudioStreams ( const NTV2DeviceID  devID)
Deprecated:
Use NTV2DeviceGetNumAudioSystems instead.

Definition at line 1172 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetNumberFrameBuffers()

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

Definition at line 496 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetNumberFrameBuffers_Ex()

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

Definition at line 265 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetNumberVideoFrameBuffers()

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

Definition at line 628 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceGetVideoFormatFromState()

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

Definition at line 665 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 674 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 684 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasColorSpaceConverterOnChannel2()

bool NTV2DeviceHasColorSpaceConverterOnChannel2 ( const NTV2DeviceID  devID)
Deprecated:
Call NTV2DeviceCanDoWidget with NTV2_WgtCSC2 instead.

Definition at line 1166 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasGenlockv2()

bool NTV2DeviceHasGenlockv2 ( const NTV2DeviceID  devID)
Deprecated:
Use NTV2DeviceGetGenlockVersion instead.

Definition at line 1163 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasGenlockv3()

bool NTV2DeviceHasGenlockv3 ( const NTV2DeviceID  devID)
Deprecated:
Use NTV2DeviceGetGenlockVersion instead.

Definition at line 1164 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasSPIv2()

bool NTV2DeviceHasSPIv2 ( const NTV2DeviceID  inDeviceID)
Deprecated:
Call NTV2DeviceGetSPIFlashVersion instead.

Definition at line 1158 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasSPIv3()

bool NTV2DeviceHasSPIv3 ( const NTV2DeviceID  inDeviceID)
Deprecated:
Call NTV2DeviceGetSPIFlashVersion instead.

Definition at line 1159 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasSPIv4()

bool NTV2DeviceHasSPIv4 ( const NTV2DeviceID  inDeviceID)
Deprecated:
Call NTV2DeviceGetSPIFlashVersion instead.

Definition at line 1160 of file ntv2devicefeatures.cpp.

◆ NTV2DeviceHasSPIv5()

bool NTV2DeviceHasSPIv5 ( const NTV2DeviceID  inDeviceID)
Deprecated:
Call NTV2DeviceGetSPIFlashVersion instead.

Definition at line 1161 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 1149 of file ntv2devicefeatures.cpp.

◆ work_around_erroneous_compiler_warning()

bool work_around_erroneous_compiler_warning ( void  )

Definition at line 1179 of file ntv2devicefeatures.cpp.