12 #if !defined(NTV2_BUILDING_DRIVER) 14 #elif defined(AJAMacDext) 38 bool isProgressivePicture =
false;
39 bool isProgressiveTransport =
false;
40 bool isDualLink =
false;
41 bool isLevelA =
false;
42 bool isLevelB =
false;
46 bool isStereo =
false;
49 bool enableBT2020 =
false;
50 bool isMultiLink =
false;
63 if (! pOutVPID || ! pInVPIDSpec)
70 is3G = isLevelA || isLevelB;
98 isProgressiveTransport = isProgressivePicture;
101 (!isRGB && isDualLink && !isTSI) ||
104 isProgressiveTransport =
false;
111 isProgressiveTransport =
false;
116 isProgressiveTransport =
false;
121 isProgressiveTransport =
false;
128 switch (outputFormat)
424 byte2 |= (transferCharacteristics << 4);
427 byte2 |= isProgressivePicture ? (1UL << 6) : 0;
430 byte2 |= isProgressiveTransport ? (1UL << 7) : 0;
452 if (is6G || isLevelA)
461 if(is6G || is12G || isLevelA)
473 if (isLevelB && isDualLink)
480 highBit = (colorimetry&0x2)>>1;
481 lowBit = colorimetry&0x1;
485 if (is6G || isLevelA)
486 byte3 |= (highBit << 5);
488 byte3 |= (highBit << 7);
490 byte3 |= (lowBit << 4);
495 if(is6G || is12G || isLevelA)
497 byte3 |= (highBit << 5);
498 byte3 |= (lowBit << 4);
502 byte3 |= (highBit << 7);
503 byte3 |= (lowBit << 4);
578 byte4 |= vpidChannel << 5;
580 byte4 |= vpidChannel << 6;
585 byte4 |= vpidChannel << 6;
600 byte4 |= (luminance << 4);
626 *pOutVPID = ((
ULWord)byte1 << 24) | ((
ULWord)byte2 << 16) | ((
ULWord)byte3 << 8) | byte4;
#define NTV2_IS_720P_VIDEO_FORMAT(__f__)
NTV2FrameRate GetNTV2FrameRateFromVideoFormat(const NTV2VideoFormat inVideoFormat)
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.
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...
NTV2VideoFormat videoFormat
Specifies the format of the video stream.
enum _NTV2VideoFormat NTV2VideoFormat
Identifies a particular video format.
Declares functions for the C implementations of VPID generation from a VPIDSpec.
#define NTV2_VIDEO_FORMAT_HAS_PROGRESSIVE_PICTURE(__f__)
See Alternate 8-Bit YCbCr ('YUY2').
See 10-Bit YCbCr - DPX Format.
#define NTV2_IS_4K_VIDEO_FORMAT(__f__)
#define NTV2_IS_UHD2_FULL_VIDEO_FORMAT(__f__)
#define NTV2_IS_2K_1080_VIDEO_FORMAT(__f__)
bool isMultiLink
If true, the video stream is 12G -> 3G multi-link.
Fractional rate of 60,000 frames per 1,001 seconds.
bool isOutputLevelB
If true, the video stream will leave the device as a level B signal.
Represents an unknown or invalid frame rate.
NTV2VPIDTransferCharacteristics transferCharacteristics
Describes the transfer characteristics.
Fractional rate of 48,000 frames per 1,001 seconds.
NTV2FrameRate
Identifies a particular video frame rate.
bool isTwoSampleInterleave
If true, the video stream is in SMPTE 425-3 two sample interleave format.
#define NTV2_IS_VALID_FBF(__s__)
#define NTV2_IS_HD_VIDEO_FORMAT(__f__)
Declares the most fundamental data types used by NTV2. Since Windows NT was the first principal devel...
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.
#define NTV2_IS_PSF_VIDEO_FORMAT(__f__)
#define NTV2_IS_WIRE_FORMAT(__f__)
See 8-Bit ARGB, RGBA, ABGR Formats.
See 8-Bit ARGB, RGBA, ABGR Formats.
VPIDChannel vpidChannel
Specifies the channel number of the video stream.
#define NTV2_IS_4K_HFR_VIDEO_FORMAT(__f__)
Fractional rate of 30,000 frames per 1,001 seconds.
NTV2VPIDTransferCharacteristics
#define NTV2_IS_QUAD_FRAME_FORMAT(__f__)
#define NTV2_IS_SQUARE_DIVISION_FORMAT(__f__)
Declares numerous NTV2 utility functions.
bool isOutput12G
If true, the transport on the wire is 12G.
See 8-Bit ARGB, RGBA, ABGR Formats.
#define NTV2_IS_QUAD_QUAD_FORMAT(__f__)
bool SetVPIDFromSpec(ULWord *const pOutVPID, const VPIDSpec *const pInVPIDSpec)
Generates a VPID based on the supplied specification.
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.
See 10-Bit RGB - DPX Format.
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.
#define NTV2_IS_UHD2_VIDEO_FORMAT(__f__)
bool isRGBOnWire
If true, the transport on the wire is RGB.
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.
Fractional rate of 24,000 frames per 1,001 seconds.
Contains all the information needed to generate a valid VPID.
#define NTV2_IS_4K_4096_VIDEO_FORMAT(__f__)