11 #include <igsioCommon.h> 17 IDeckLinkIterator* pointer;
18 if (CoCreateInstance(CLSID_CDeckLinkIterator, NULL, CLSCTX_ALL, IID_IDeckLinkIterator, (
void**)&pointer) != S_OK)
27 return ::CreateDeckLinkIteratorInstance();
35 IDeckLinkDiscovery* pointer;
36 if (CoCreateInstance(CLSID_CDeckLinkDiscovery, NULL, CLSCTX_ALL, IID_IDeckLinkDiscovery, (
void**)&pointer) != S_OK)
45 return ::CreateDeckLinkDiscoveryInstance();
53 IDeckLinkAPIInformation* pointer;
54 if (CoCreateInstance(CLSID_CDeckLinkAPIInformation, NULL, CLSCTX_ALL, IID_IDeckLinkAPIInformation, (
void**)&pointer) != S_OK)
63 return ::CreateDeckLinkAPIInformationInstance();
71 IDeckLinkGLScreenPreviewHelper* pointer;
72 if (CoCreateInstance(CLSID_CDeckLinkGLScreenPreviewHelper, NULL, CLSCTX_ALL, IID_IDeckLinkGLScreenPreviewHelper, (
void**)&pointer) != S_OK)
81 return ::CreateOpenGLScreenPreviewHelper();
89 IDeckLinkVideoConversion* pointer;
90 if (CoCreateInstance(CLSID_CDeckLinkVideoConversion, NULL, CLSCTX_ALL, IID_IDeckLinkVideoConversion, (
void**)&pointer) != S_OK)
99 return ::CreateVideoConversionInstance();
107 IDeckLinkVideoFrameAncillaryPackets* pointer;
108 if (CoCreateInstance(CLSID_CDeckLinkVideoFrameAncillaryPackets, NULL, CLSCTX_ALL, IID_IDeckLinkVideoFrameAncillaryPackets, (
void**)&pointer) != S_OK)
117 return ::CreateVideoFrameAncillaryPacketsInstance();
124 if (igsioCommon::IsEqualInsensitive(_arg,
"8BitYUV"))
126 return bmdFormat8BitYUV;
128 else if (igsioCommon::IsEqualInsensitive(_arg,
"10BitYUV"))
130 return bmdFormat10BitYUV;
132 else if (igsioCommon::IsEqualInsensitive(_arg,
"8BitARGB"))
134 return bmdFormat8BitARGB;
136 else if (igsioCommon::IsEqualInsensitive(_arg,
"8BitBGRA"))
138 return bmdFormat8BitBGRA;
140 else if (igsioCommon::IsEqualInsensitive(_arg,
"10BitRGB"))
142 return bmdFormat10BitRGB;
144 else if (igsioCommon::IsEqualInsensitive(_arg,
"12BitRGB"))
146 return bmdFormat12BitRGB;
148 else if (igsioCommon::IsEqualInsensitive(_arg,
"12BitRGBLE"))
150 return bmdFormat12BitRGBLE;
152 else if (igsioCommon::IsEqualInsensitive(_arg,
"10BitRGBXLE"))
154 return bmdFormat10BitRGBXLE;
156 else if (igsioCommon::IsEqualInsensitive(_arg,
"10BitRGBX"))
158 return bmdFormat10BitRGBX;
160 else if (igsioCommon::IsEqualInsensitive(_arg,
"H265"))
162 return bmdFormatH265;
164 else if (igsioCommon::IsEqualInsensitive(_arg,
"DNxHR"))
166 return bmdFormatDNxHR;
168 else if (igsioCommon::IsEqualInsensitive(_arg,
"12BitRAWGRBG"))
170 return bmdFormat12BitRAWGRBG;
172 else if (igsioCommon::IsEqualInsensitive(_arg,
"12BitRAWJPEG"))
174 return bmdFormat12BitRAWJPEG;
178 return bmdFormatUnspecified;
185 if (igsioCommon::IsEqualInsensitive(_arg,
"SDI"))
187 return bmdVideoConnectionSDI;
189 else if (igsioCommon::IsEqualInsensitive(_arg,
"HDMI"))
191 return bmdVideoConnectionHDMI;
193 else if (igsioCommon::IsEqualInsensitive(_arg,
"OpticalSDI"))
195 return bmdVideoConnectionOpticalSDI;
197 else if (igsioCommon::IsEqualInsensitive(_arg,
"Component"))
199 return bmdVideoConnectionComponent;
201 else if (igsioCommon::IsEqualInsensitive(_arg,
"Composite"))
203 return bmdVideoConnectionComposite;
205 else if (igsioCommon::IsEqualInsensitive(_arg,
"SVideo"))
207 return bmdVideoConnectionSVideo;
211 return bmdVideoConnectionUnspecified;
218 if (igsioCommon::IsEqualInsensitive(_arg,
"NTSC"))
222 else if (igsioCommon::IsEqualInsensitive(_arg,
"NTSC2398"))
224 return bmdModeNTSC2398;
226 else if (igsioCommon::IsEqualInsensitive(_arg,
"PAL"))
230 else if (igsioCommon::IsEqualInsensitive(_arg,
"NTSCp"))
234 else if (igsioCommon::IsEqualInsensitive(_arg,
"PALp"))
238 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p2398"))
240 return bmdModeHD1080p2398;
242 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p24"))
244 return bmdModeHD1080p24;
246 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p25"))
248 return bmdModeHD1080p25;
250 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p2997"))
252 return bmdModeHD1080p2997;
254 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p30"))
256 return bmdModeHD1080p30;
258 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p4795"))
260 return bmdModeHD1080p4795;
262 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p48"))
264 return bmdModeHD1080p48;
266 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p50"))
268 return bmdModeHD1080p50;
270 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p5994"))
272 return bmdModeHD1080p5994;
274 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p6000"))
276 return bmdModeHD1080p6000;
278 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p9590"))
280 return bmdModeHD1080p9590;
282 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p96"))
284 return bmdModeHD1080p96;
286 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p100"))
288 return bmdModeHD1080p100;
290 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p11988"))
292 return bmdModeHD1080p11988;
294 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080p120"))
296 return bmdModeHD1080p120;
298 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080i50"))
300 return bmdModeHD1080i50;
302 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080i5994"))
304 return bmdModeHD1080i5994;
306 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD1080i6000"))
308 return bmdModeHD1080i6000;
310 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD720p50"))
312 return bmdModeHD720p50;
314 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD720p5994"))
316 return bmdModeHD720p5994;
318 else if (igsioCommon::IsEqualInsensitive(_arg,
"HD720p60"))
320 return bmdModeHD720p60;
322 else if (igsioCommon::IsEqualInsensitive(_arg,
"2k2398"))
324 return bmdMode2k2398;
326 else if (igsioCommon::IsEqualInsensitive(_arg,
"2k24"))
330 else if (igsioCommon::IsEqualInsensitive(_arg,
"2k25"))
334 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI2398"))
336 return bmdMode2kDCI2398;
338 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI24"))
340 return bmdMode2kDCI24;
342 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI25"))
344 return bmdMode2kDCI25;
346 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI2997"))
348 return bmdMode2kDCI2997;
350 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI30"))
352 return bmdMode2kDCI30;
354 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI4795"))
356 return bmdMode2kDCI4795;
358 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI48"))
360 return bmdMode2kDCI48;
362 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI50"))
364 return bmdMode2kDCI50;
366 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI5994"))
368 return bmdMode2kDCI5994;
370 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI60"))
372 return bmdMode2kDCI60;
374 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI9590"))
376 return bmdMode2kDCI9590;
378 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI96"))
380 return bmdMode2kDCI96;
382 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI100"))
384 return bmdMode2kDCI100;
386 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI11988"))
388 return bmdMode2kDCI11988;
390 else if (igsioCommon::IsEqualInsensitive(_arg,
"2kDCI120"))
392 return bmdMode2kDCI120;
394 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p2398"))
396 return bmdMode4K2160p2398;
398 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p24"))
400 return bmdMode4K2160p24;
402 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p25"))
404 return bmdMode4K2160p25;
406 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p2997"))
408 return bmdMode4K2160p2997;
410 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p30"))
412 return bmdMode4K2160p30;
414 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p4795"))
416 return bmdMode4K2160p4795;
418 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p48"))
420 return bmdMode4K2160p48;
422 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p50"))
424 return bmdMode4K2160p50;
426 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p5994"))
428 return bmdMode4K2160p5994;
430 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p60"))
432 return bmdMode4K2160p60;
434 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p9590"))
436 return bmdMode4K2160p9590;
438 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p96"))
440 return bmdMode4K2160p96;
442 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p100"))
444 return bmdMode4K2160p100;
446 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p11988"))
448 return bmdMode4K2160p11988;
450 else if (igsioCommon::IsEqualInsensitive(_arg,
"4K2160p120"))
452 return bmdMode4K2160p120;
454 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI2398"))
456 return bmdMode4kDCI2398;
458 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI24"))
460 return bmdMode4kDCI24;
462 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI25"))
464 return bmdMode4kDCI25;
466 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI2997"))
468 return bmdMode4kDCI2997;
470 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI30"))
472 return bmdMode4kDCI30;
474 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI4795"))
476 return bmdMode4kDCI4795;
478 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI48"))
480 return bmdMode4kDCI48;
482 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI50"))
484 return bmdMode4kDCI50;
486 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI5994"))
488 return bmdMode4kDCI5994;
490 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI60"))
492 return bmdMode4kDCI60;
494 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI9590"))
496 return bmdMode4kDCI9590;
498 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI96"))
500 return bmdMode4kDCI96;
502 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI100"))
504 return bmdMode4kDCI100;
506 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI11988"))
508 return bmdMode4kDCI11988;
510 else if (igsioCommon::IsEqualInsensitive(_arg,
"4kDCI120"))
512 return bmdMode4kDCI120;
514 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p2398"))
516 return bmdMode8K4320p2398;
518 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p24"))
520 return bmdMode8K4320p24;
522 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p25"))
524 return bmdMode8K4320p25;
526 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p2997"))
528 return bmdMode8K4320p2997;
530 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p30"))
532 return bmdMode8K4320p30;
534 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p4795"))
536 return bmdMode8K4320p4795;
538 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p48"))
540 return bmdMode8K4320p48;
542 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p50"))
544 return bmdMode8K4320p50;
546 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p5994"))
548 return bmdMode8K4320p5994;
550 else if (igsioCommon::IsEqualInsensitive(_arg,
"8K4320p60"))
552 return bmdMode8K4320p60;
554 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI2398"))
556 return bmdMode8kDCI2398;
558 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI24"))
560 return bmdMode8kDCI24;
562 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI25"))
564 return bmdMode8kDCI25;
566 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI2997"))
568 return bmdMode8kDCI2997;
570 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI30"))
572 return bmdMode8kDCI30;
574 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI4795"))
576 return bmdMode8kDCI4795;
578 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI48"))
580 return bmdMode8kDCI48;
582 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI50"))
584 return bmdMode8kDCI50;
586 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI5994"))
588 return bmdMode8kDCI5994;
590 else if (igsioCommon::IsEqualInsensitive(_arg,
"8kDCI60"))
592 return bmdMode8kDCI60;
594 else if (igsioCommon::IsEqualInsensitive(_arg,
"640x480p60"))
596 return bmdMode640x480p60;
598 else if (igsioCommon::IsEqualInsensitive(_arg,
"800x600p60"))
600 return bmdMode800x600p60;
602 else if (igsioCommon::IsEqualInsensitive(_arg,
"1440x900p50"))
604 return bmdMode1440x900p50;
606 else if (igsioCommon::IsEqualInsensitive(_arg,
"1440x900p60"))
608 return bmdMode1440x900p60;
610 else if (igsioCommon::IsEqualInsensitive(_arg,
"1440x1080p50"))
612 return bmdMode1440x1080p50;
614 else if (igsioCommon::IsEqualInsensitive(_arg,
"1440x1080p60"))
616 return bmdMode1440x1080p60;
618 else if (igsioCommon::IsEqualInsensitive(_arg,
"1600x1200p50"))
620 return bmdMode1600x1200p50;
622 else if (igsioCommon::IsEqualInsensitive(_arg,
"1600x1200p60"))
624 return bmdMode1600x1200p60;
626 else if (igsioCommon::IsEqualInsensitive(_arg,
"1920x1200p50"))
628 return bmdMode1920x1200p50;
630 else if (igsioCommon::IsEqualInsensitive(_arg,
"1920x1200p60"))
632 return bmdMode1920x1200p60;
634 else if (igsioCommon::IsEqualInsensitive(_arg,
"1920x1440p50"))
636 return bmdMode1920x1440p50;
638 else if (igsioCommon::IsEqualInsensitive(_arg,
"1920x1440p60"))
640 return bmdMode1920x1440p60;
642 else if (igsioCommon::IsEqualInsensitive(_arg,
"2560x1440p50"))
644 return bmdMode2560x1440p50;
646 else if (igsioCommon::IsEqualInsensitive(_arg,
"2560x1440p60"))
648 return bmdMode2560x1440p60;
650 else if (igsioCommon::IsEqualInsensitive(_arg,
"2560x1600p50"))
652 return bmdMode2560x1600p50;
654 else if (igsioCommon::IsEqualInsensitive(_arg,
"2560x1600p60"))
656 return bmdMode2560x1600p60;
658 else if (igsioCommon::IsEqualInsensitive(_arg,
"CintelRAW"))
660 return bmdModeCintelRAW;
662 else if (igsioCommon::IsEqualInsensitive(_arg,
"CintelCompressedRAW"))
664 return bmdModeCintelCompressedRAW;
668 return bmdModeUnknown;
static IDeckLinkGLScreenPreviewHelper *BMD_PUBLIC CreateOpenGLScreenPreviewHelper()
static IDeckLinkDiscovery *BMD_PUBLIC CreateDeckLinkDiscovery()
static IDeckLinkIterator *BMD_PUBLIC CreateDeckLinkIterator()
static BMDVideoConnection VideoConnectionFromString(const std::string &)
static IDeckLinkAPIInformation *BMD_PUBLIC CreateDeckLinkAPIInformation()
static IDeckLinkVideoConversion *BMD_PUBLIC CreateVideoConversion()
static IDeckLinkVideoFrameAncillaryPackets *BMD_PUBLIC CreateVideoFrameAncillaryPackets()
static BMDDisplayMode DisplayModeFromString(const std::string &)
static BMDPixelFormat PixelFormatFromString(const std::string &)