|
AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Go to the documentation of this file.
36 {
AJA_PixelFormat_Unknown,
AJA_FOURCC(
' ',
' ',
' ',
' '), 0,
AJAScaleTypeNone,
AJASubSampleNone, 0,
false,
"Unknown"},
37 {
AJA_PixelFormat_YCbCr10,
AJA_FOURCC(
'v',
'2',
'1',
'0'), 10,
AJAScaleTypeNone,
AJASubSample422, 1,
false,
"10 Bit YCbCr"},
38 {
AJA_PixelFormat_YCbCr8,
AJA_FOURCC(
'2',
'v',
'u',
'y'), 8,
AJAScaleTypeNone,
AJASubSample422, 1,
false,
"8 Bit YCbCr"},
39 {
AJA_PixelFormat_ARGB8,
AJA_FOURCC(
'b',
'g',
'r',
'A'), 8,
AJAScaleTypeNone,
AJASubSample4444, 1,
true,
"8 Bit ARGB"},
40 {
AJA_PixelFormat_RGBA8,
AJA_FOURCC(
'r',
'g',
'b',
'a'), 8,
AJAScaleTypeNone,
AJASubSample4444, 1,
true,
"8 Bit RGBA"},
41 {
AJA_PixelFormat_RGB10,
AJA_FOURCC(
'1',
'0',
'r',
'b'), 10,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"10 Bit RGB"},
42 {
AJA_PixelFormat_YUY28,
AJA_FOURCC(
'Y',
'U',
'Y',
'2'), 8,
AJAScaleTypeNone,
AJASubSample422, 1,
false,
"8 Bit YCbCr Alternate"},
43 {
AJA_PixelFormat_ABGR8,
AJA_FOURCC(
'a',
'r',
'g',
'B'), 8,
AJAScaleTypeNone,
AJASubSample4444, 1,
true,
"8 Bit RGBA OpenGL"},
44 {
AJA_PixelFormat_RGB_DPX,
AJA_FOURCC(
'R',
'1',
'0',
'k'), 10,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"10 Bit RGB DPX"},
45 {
AJA_PixelFormat_YCbCr_DPX,
AJA_FOURCC(
'd',
'p',
'x',
'2'), 10,
AJAScaleTypeNone,
AJASubSample422, 1,
false,
"10 Bit YCbCr DPX"},
46 {
AJA_PixelFormat_DVCPRO,
AJA_FOURCC(
'2',
'v',
'u',
'y'), 8,
AJAScaleTypeDVCPro,
AJASubSample422, 1,
false,
"DVC Pro"},
47 {
AJA_PixelFormat_QREZ,
AJA_FOURCC(
'2',
'v',
'u',
'y'), 8,
AJAScaleTypeQRez,
AJASubSample422, 1,
false,
"QRez"},
48 {
AJA_PixelFormat_HDV,
AJA_FOURCC(
'2',
'v',
'u',
'y'), 8,
AJAScaleTypeHDV,
AJASubSample422, 1,
false,
"HDV"},
49 {
AJA_PixelFormat_RGB8_PACK,
AJA_FOURCC(
'r',
'g',
'b',
' '), 8,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"8 Bit RGB"},
50 {
AJA_PixelFormat_BGR8_PACK,
AJA_FOURCC(
'b',
'g',
'r',
' '), 8,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"8 Bit BGR"},
51 {
AJA_PixelFormat_YCbCrA10,
AJA_FOURCC(
' ',
' ',
' ',
' '), 10,
AJAScaleTypeNone,
AJASubSample422, 1,
false,
"10 Bit YCbCrA"},
52 {
AJA_PixelFormat_RGB_DPX_LE,
AJA_FOURCC(
'r',
'1',
'0',
'k'), 10,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"10 Bit RGB DPX LE"},
53 {
AJA_PixelFormat_RGB12,
AJA_FOURCC(
' ',
' ',
' ',
' '), 12,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"RGB12"},
54 {
AJA_PixelFormat_RGB12P,
AJA_FOURCC(
' ',
' ',
' ',
' '), 12,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"RGB12P"},
55 {
AJA_PixelFormat_PRORES_DVPRO,
AJA_FOURCC(
'a',
'c',
'p',
'n'), 8,
AJAScaleTypeDVCPro,
AJASubSample422, 1,
false,
"ProRes DVC Pro"},
56 {
AJA_PixelFormat_PRORES_HDV,
AJA_FOURCC(
'a',
'c',
'p',
'n'), 8,
AJAScaleTypeHDV,
AJASubSample422, 1,
false,
"ProRes HDV"},
57 {
AJA_PixelFormat_RGB10_PACK,
AJA_FOURCC(
' ',
' ',
' ',
' '), 10,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"RGB10Pack"},
58 {
AJA_PixelFormat_YCbCr12_444,
AJA_FOURCC(
' ',
' ',
' ',
' '), 12,
AJAScaleTypeNone,
AJASubSample444, 1,
false,
"12 Bit YCbCr444"},
59 {
AJA_PixelFormat_YCbCr12_422,
AJA_FOURCC(
' ',
' ',
' ',
' '), 12,
AJAScaleTypeNone,
AJASubSample422, 1,
false,
"12 Bit YCbCr422"},
60 {
AJA_PixelFormat_RGB16,
AJA_FOURCC(
'b',
'4',
'8',
'r'), 16,
AJAScaleTypeNone,
AJASubSample444, 1,
true,
"16 Bit RGB"},
61 {
AJA_PixelFormat_YCbCr10_4K_RQ,
AJA_FOURCC(
' ',
' ',
' ',
' '), 10,
AJAScaleTypeNone,
AJASubSample422, 1,
false,
"10 Bit YCbCr 4K RQ"},
62 {
AJA_PixelFormat_BAYER10_DPX_LJ,
AJA_FOURCC(
' ',
' ',
' ',
' '), 10,
AJAScaleTypeNone,
AJASubSampleBayer, 1,
true,
"Bayer 10 Bit DPX LJ"},
63 {
AJA_PixelFormat_BAYER10_DPX_LJ,
AJA_FOURCC(
' ',
' ',
' ',
' '), 10,
AJAScaleTypeNone,
AJASubSampleBayer, 1,
true,
"Bayer 12 Bit DPX LJ"},
64 {
AJA_PixelFormat_BAYER10_HS,
AJA_FOURCC(
' ',
' ',
' ',
' '), 10,
AJAScaleTypeNone,
AJASubSampleBayer, 1,
true,
"Bayer 10 Bit HS"},
65 {
AJA_PixelFormat_BAYER12_HS,
AJA_FOURCC(
' ',
' ',
' ',
' '), 12,
AJAScaleTypeNone,
AJASubSampleBayer, 1,
true,
"Bayer 12 Bit HS"},
66 {
AJA_PixelFormat_BAYER12_PACK_HS,
AJA_FOURCC(
'C',
'1',
'2',
's'), 12,
AJAScaleTypeNone,
AJASubSampleBayer, 1,
true,
"Bayer 12 Bit Packed HS"},
67 {
AJA_PixelFormat_RAW10,
AJA_FOURCC(
'C',
'1',
'0',
's'), 10,
AJAScaleTypeNone,
AJASubSampleBayer, 1,
true,
"RAW 10 Bit"},
68 {
AJA_PixelFormat_RAW10_HS,
AJA_FOURCC(
'C',
'1',
'0',
'h'), 10,
AJAScaleTypeNone,
AJASubSampleBayer, 1,
true,
"RAW 10 Bit HS"},
69 {
AJA_PixelFormat_YCBCR10_420PL,
AJA_FOURCC(
' ',
' ',
' ',
' '), 10,
AJAScaleTypeNone,
AJASubSample420, 3,
false,
"10 Bit YCbCr 420 Packed 3-Plane"},
70 {
AJA_PixelFormat_YCBCR10_422PL,
AJA_FOURCC(
' ',
' ',
' ',
' '), 10,
AJAScaleTypeNone,
AJASubSample422, 3,
false,
"10 Bit YCbCr 422 Packed 3-Plane"},
71 {
AJA_PixelFormat_YCBCR8_420PL,
AJA_FOURCC(
' ',
' ',
' ',
' '), 8,
AJAScaleTypeNone,
AJASubSample420, 3,
false,
"8 Bit YCbCr 420 3-Plane"},
72 {
AJA_PixelFormat_YCBCR8_422PL,
AJA_FOURCC(
' ',
' ',
' ',
' '), 8,
AJAScaleTypeNone,
AJASubSample422, 3,
false,
"8 Bit YCbCr 422 3-Plane"},
73 {
AJA_PixelFormat_YCBCR8_420PL3,
AJA_FOURCC(
'I',
'4',
'2',
'0'), 8,
AJAScaleTypeNone,
AJASubSample420, 3,
false,
"8 Bit YCbCr 420 3-Plane"},
74 {
AJA_PixelFormat_YCBCR8_422PL3,
AJA_FOURCC(
'Y',
'4',
'2',
'B'), 8,
AJAScaleTypeNone,
AJASubSample422, 3,
false,
"8 Bit YCbCr 422 3-Plane"},
75 {
AJA_PixelFormat_YCBCR10_420PL3LE,
AJA_FOURCC(
'Y',
'3',0xb,0xa), 10,
AJAScaleTypeNone,
AJASubSample420, 3,
false,
"10 Bit YCbCr 420 Unpacked 3-Plane LE"},
76 {
AJA_PixelFormat_YCBCR10_422PL3LE,
AJA_FOURCC(
'Y',
'3',0xa,0xa), 10,
AJAScaleTypeNone,
AJASubSample422, 3,
false,
"10 Bit YCbCr 422 Unpacked 3-Plane LE"},
77 {
AJA_PixelFormat_YCBCR10_420PL2,
AJA_FOURCC(
'2',
'Y',
'2',
'0'), 10,
AJAScaleTypeNone,
AJASubSample420, 2,
false,
"10 Bit YCbCr 420 Packed 2-Plane LE"},
78 {
AJA_PixelFormat_YCBCR10_422PL2,
AJA_FOURCC(
'2',
'Y',
'2',
'2'), 10,
AJAScaleTypeNone,
AJASubSample422, 2,
false,
"10 Bit YCbCr 422 Packed 2-Plane LE"},
79 {
AJA_PixelFormat_YCBCR8_420PL2,
AJA_FOURCC(
'N',
'V',
'1',
'2'), 8,
AJAScaleTypeNone,
AJASubSample420, 2,
false,
"8 Bit YCbCr 420 2-Plane"},
80 {
AJA_PixelFormat_YCBCR8_422PL2,
AJA_FOURCC(
'N',
'V',
'1',
'6'), 8,
AJAScaleTypeNone,
AJASubSample422, 2,
false,
"8 Bit YCbCr 422 2-Plane"},
81 {
AJA_PixelFormat_YCBCR10_420PL2LE,
AJA_FOURCC(
'P',
'0',
'1',
'0'), 10,
AJAScaleTypeNone,
AJASubSample420, 3,
false,
"10 Bit YCbCr 420 Unpacked 2-Plane LE"},
82 {
AJA_PixelFormat_YCBCR10_422PL2LE,
AJA_FOURCC(
'N',
'V',
'2',
'0'), 10,
AJAScaleTypeNone,
AJASubSample422, 3,
false,
"10 Bit YCbCr 422 Unpacked 2-Plane LE"}
204 bool bIsScalable =
false;
209 if (xAspect == yAspect)
212 uint32_t correctedBitmapWidth = (bitmapWidth * xAspect) / yAspect;
213 if (wireWidth == correctedBitmapWidth)
246 *pScalingFormat = scalingFormat;
264 else if (xIn == 1920)
288 else if (xIn == 1920)
307 hSpacingOut = hSpacingIn;
308 vSpacingOut = vSpacingIn;
312 if (hSpacingIn == vSpacingIn)
314 hSpacingOut = 3; vSpacingOut = 2; bOk =
true;
319 if (hSpacingIn == vSpacingIn)
321 hSpacingOut = 4; vSpacingOut = 3; bOk =
true;
333 if ((xWire == 1920) && (xBitmap == 1440))
338 else if ((xWire == 1920) && (xBitmap == 1280))
343 else if ((xWire == 1280) && (xBitmap == 960))
359 int fullScaleWidth = scaledWidth;
361 if (height == 1080 && scaledWidth == 1280)
362 fullScaleWidth = 1920;
364 else if (height == 1080 && scaledWidth == 1440)
365 fullScaleWidth = 1920;
367 else if (height == 720 && scaledWidth == 960)
368 fullScaleWidth = 1280;
370 return fullScaleWidth;
378 if (height == 1080 && scaledWidth == 1280)
381 else if (height == 1080 && scaledWidth == 1440)
384 else if (height == 720 && scaledWidth == 960)
@ AJA_PixelFormat_YCBCR8_420PL2
@ AJA_PixelFormat_BAYER12_HS
@ AJA_PixelFormat_BAYER10_HS
@ AJA_PixelFormat_YCBCR10_422PL
@ AJA_PixelFormat_YCBCR8_422PL3
Declares common types used in the ajabase library.
AJA_PixelFormat pixelFormat
@ AJA_PixelFormat_BGR8_PACK
@ AJA_PixelFormat_BAYER10_DPX_LJ
@ AJA_PixelFormat_PRORES_DVPRO
@ AJA_PixelFormat_YCBCR10_420PL2
@ AJA_PixelFormat_YCBCR8_422PL
Master header for the ajabase library.
@ AJA_PixelFormat_YCBCR8_420PL3
@ AJA_PixelFormat_YCbCr10_4K_RQ
@ AJA_PixelFormat_YCBCR8_422PL2
@ AJA_PixelFormat_YCBCR10_420PL2LE
FFmpeg related (see AVPixelFormat in libavutil/pixfmt.h, libavutil/pixdesc.c) - unpacked 16bpp,...
@ AJA_PixelFormat_RGB_DPX_LE
@ AJA_PixelFormat_YCbCr_DPX
@ AJA_PixelFormat_RGB8_PACK
#define AJA_FOURCC(a, b, c, d)
@ AJA_PixelFormat_YCBCR10_420PL
@ AJA_PixelFormat_YCBCR10_422PL3LE
@ AJA_PixelFormat_YCBCR10_420PL3LE
@ AJA_PixelFormat_RGB10_PACK
@ AJA_PixelFormat_RGB_DPX
@ AJA_PixelFormat_YCbCr12_422
@ AJA_PixelFormat_BAYER12_PACK_HS
@ AJA_PixelFormat_YCbCrA10
@ AJA_PixelFormat_PRORES_HDV
@ AJA_PixelFormat_Unknown
@ AJA_PixelFormat_YCbCr10
AJASubSampleType subSampleType
@ AJA_PixelFormat_YCBCR10_422PL2
@ AJA_PixelFormat_RAW10_HS
@ AJA_PixelFormat_YCbCr12_444
@ AJA_PixelFormat_YCBCR10_422PL2LE
@ AJA_PixelFormat_YCBCR8_420PL