MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / SelectFromExtension

Function SelectFromExtension

Source/MediaInfo/MediaInfo_File.cpp:482–897  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

480
481//---------------------------------------------------------------------------
482static File__Analyze* SelectFromExtension(const String& Parser)
483{
484 // Multiple
485 #if defined(MEDIAINFO_AAF_YES)
486 if (Parser==__T("Aaf")) return new File_Aaf();
487 #endif
488 #if defined(MEDIAINFO_ADM_YES)
489 if (Parser==__T("Adm")) return new File_Adm();
490 #endif
491 #if defined(MEDIAINFO_BDAV_YES)
492 if (Parser==__T("Bdav")) {auto Parser=new File_MpegTs(); Parser->BDAV_Size=4; return Parser;}
493 #endif
494 #if defined(MEDIAINFO_BDMV_YES)
495 if (Parser==__T("Bdmv")) return new File_Bdmv();
496 #endif
497 #if defined(MEDIAINFO_CDXA_YES)
498 if (Parser==__T("Cdxa")) return new File_Cdxa();
499 #endif
500 #if defined(MEDIAINFO_DASHMPD_YES)
501 if (Parser==__T("DashMpd")) return new File_DashMpd();
502 #endif
503 #if defined(MEDIAINFO_DCP_YES)
504 if (Parser==__T("DcpAm")) return new File_DcpAm();
505 #endif
506 #if defined(MEDIAINFO_DCP_YES)
507 if (Parser==__T("DcpCpl")) return new File_DcpCpl();
508 #endif
509 #if defined(MEDIAINFO_DCP_YES)
510 if (Parser==__T("DcpPkg")) return new File_DcpPkl();
511 #endif
512 #if defined(MEDIAINFO_DPG_YES)
513 if (Parser==__T("Dpg")) return new File_Dpg();
514 #endif
515 #if defined(MEDIAINFO_DVDIF_YES)
516 if (Parser==__T("DvDif")) return new File_DvDif();
517 #endif
518 #if defined(MEDIAINFO_DVDV_YES)
519 if (Parser==__T("Dvdv")) return new File_Dvdv();
520 #endif
521 #if defined(MEDIAINFO_DXW_YES)
522 if (Parser==__T("Dxw")) return new File_Dxw();
523 #endif
524 #if defined(MEDIAINFO_FLV_YES)
525 if (Parser==__T("Flv")) return new File_Flv();
526 #endif
527 #if defined(MEDIAINFO_GXF_YES)
528 if (Parser==__T("Gxf")) return new File_Gxf();
529 #endif
530 #if defined(MEDIAINFO_HDSF4M_YES)
531 if (Parser==__T("HdsF4m")) return new File_HdsF4m();
532 #endif
533 #if defined(MEDIAINFO_HLS_YES)
534 if (Parser==__T("Hls")) return new File_Hls();
535 #endif
536 #if defined(MEDIAINFO_ISM_YES)
537 if (Parser==__T("Ism")) return new File_Ism();
538 #endif
539 #if defined(MEDIAINFO_IVF_YES)

Callers 2

SelectFromExtensionMethod · 0.85
Open_Buffer_InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected