AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
ntv2vpidfromspec.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
9 #ifndef NTV2VPIDFROMSPEC_H
10 #define NTV2VPIDFROMSPEC_H
11 
12 #include "ajaexport.h"
13 #include "ntv2publicinterface.h"
14 
19 
22 typedef struct
23 {
26  bool isRGBOnWire;
29  bool isDualLink;
31  bool useChannel;
33  bool isStereo;
34  bool isRightEye;
36  bool isOutput6G;
37  bool isOutput12G;
38  bool enableBT2020;
43  bool isMultiLink;
44 } VPIDSpec;
45 
46 typedef enum
47 {
53  CSCInPath = BIT(5),
55 } VPIDFlags;
56 
57 typedef struct
58 {
64  bool is3G;
65  bool isDS2;
66  bool isComplete;
68  bool isDS1;
69  bool isML1;
70  bool isML2;
71  bool isML3;
72  bool isML4;
73 } VPIDControl;
74 
81 #if defined(__cplusplus) && defined(NTV2_BUILDING_DRIVER)
82 extern "C"
83 {
84 #endif
85 AJAExport bool SetVPIDFromSpec (ULWord * const pOutVPID,
86  const VPIDSpec * const pInVPIDSpec);
87 
88 #if defined(__cplusplus) && defined(NTV2_BUILDING_DRIVER)
89 }
90 #endif
91 
92 #endif // NTV2VPIDFROMSPEC_H
93 
NTV2VPIDLuminance luminance
Describes the luminance and color difference.
bool isStereo
If true, the video stream is part of a stereo pair.
NTV2VPIDColorimetry colorimetry
Describes the Colorimetry.
ULWord deviceNumber
VPIDAudio audioCarriage
Specifies how audio is carried in additional channels.
NTV2FrameBufferFormat
Identifies a particular video frame buffer pixel format. See Device Frame Buffer Formats for details...
Definition: ntv2enums.h:219
#define BIT(_x_)
Definition: ajatypes.h:578
NTV2VideoFormat videoFormat
Specifies the format of the video stream.
enum _NTV2VideoFormat NTV2VideoFormat
Identifies a particular video format.
NTV2VPIDLuminance
Definition: ntv2enums.h:4262
bool isMultiLink
If true, the video stream is 12G -> 3G multi-link.
bool isOutputLevelB
If true, the video stream will leave the device as a level B signal.
uint32_t ULWord
Definition: ajatypes.h:223
NTV2Channel
These enum values are mostly used to identify a specific widget_framestore. They're also commonly use...
Definition: ntv2enums.h:1357
NTV2VPIDTransferCharacteristics transferCharacteristics
Describes the transfer characteristics.
VPIDFlags flags
bool isTwoSampleInterleave
If true, the video stream is in SMPTE 425-3 two sample interleave format.
VPIDSpec vpidSpec
Defines the import/export macros for producing DLLs or LIBs.
bool isOutputLevelA
If true, the video stream will leave the device as a level A signal.
NTV2VPIDRGBRange rgbRange
Describes the RGB range as full or SMPTE.
VPIDChannel vpidChannel
Specifies the channel number of the video stream.
NTV2VPIDColorimetry
Definition: ntv2enums.h:4254
bool SetVPIDFromSpec(ULWord *const pOutVPID, const VPIDSpec *const pInVPIDSpec)
Generates a VPID based on the supplied specification.
VPIDAudio
Definition: ntv2enums.h:4150
#define AJAExport
Definition: export.h:33
NTV2VPIDTransferCharacteristics
Definition: ntv2enums.h:4246
bool isOutput12G
If true, the transport on the wire is 12G.
NTV2Channel videoChannel
NTV2FrameBufferFormat pixelFormat
Specifies the pixel format of the source of the video stream.
bool isDualLink
If true, the video stream is part of a SMPTE 372 dual link signal.
bool useChannel
If true, the following vpidChannel value should be inserted into th VPID.
bool enableBT2020
If true, the VPID will insert BT.2020 data.
VPIDChannel
Definition: ntv2enums.h:4108
NTV2VPIDRGBRange
Definition: ntv2enums.h:4268
ULWord frameStoreIndex
Declares enums and structs used by all platform drivers and the SDK.
bool isRGBOnWire
If true, the transport on the wire is RGB.
VPIDFlags
bool isRightEye
If true, the video stream is the right eye of a stereo pair.
bool isOutput6G
If true, the transport on the wire is 6G.
Contains all the information needed to generate a valid VPID.