MCPcopy Create free account
hub / github.com/FFMS/ffms2 / FFMS_CreateVideoSource

Function FFMS_CreateVideoSource

src/core/ffms.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102FFMS_API(FFMS_VideoSource *) FFMS_CreateVideoSource(const char *SourceFile, int Track, FFMS_Index *Index, int Threads, int SeekMode, FFMS_ErrorInfo *ErrorInfo) {
103 try {
104 return new FFMS_VideoSource(SourceFile, *Index, Track, Threads, SeekMode);
105 } catch (FFMS_Exception &e) {
106 e.CopyOut(ErrorInfo);
107 return nullptr;
108 }
109}
110
111FFMS_API(FFMS_AudioSource *) FFMS_CreateAudioSource(const char *SourceFile, int Track, FFMS_Index *Index, int DelayMode, FFMS_ErrorInfo *ErrorInfo) {
112 return FFMS_CreateAudioSource2(SourceFile, Track, Index, DelayMode, -1, 0, ErrorInfo);

Callers 5

DoIndexingMethod · 0.85
DoIndexingMethod · 0.85
DoIndexingMethod · 0.85
VSVideoSource4Method · 0.85
AvisynthVideoSourceMethod · 0.85

Calls 1

CopyOutMethod · 0.80

Tested by

no test coverage detected