MCPcopy Create free account
hub / github.com/IENT/YUView / bindLibraryFunctions

Function bindLibraryFunctions

YUViewLib/src/ffmpeg/FFmpegLibraryFunctions.cpp:60–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool bindLibraryFunctions(QLibrary & lib,
61 FFmpegLibraryFunctions::AvFormatFunctions &functions,
62 QStringList * log)
63{
64 if (!resolveFunction(lib, functions.avformat_version, "avformat_version", log))
65 return false;
66
67 auto versionRaw = functions.avformat_version();
68 if (AV_VERSION_MAJOR(versionRaw) < 59)
69 if (!resolveFunction(lib, functions.av_register_all, "av_register_all", log))
70 return false;
71
72 if (!resolveFunction(lib, functions.avformat_open_input, "avformat_open_input", log))
73 return false;
74 if (!resolveFunction(lib, functions.avformat_close_input, "avformat_close_input", log))
75 return false;
76 if (!resolveFunction(lib, functions.avformat_find_stream_info, "avformat_find_stream_info", log))
77 return false;
78 if (!resolveFunction(lib, functions.av_read_frame, "av_read_frame", log))
79 return false;
80 if (!resolveFunction(lib, functions.av_seek_frame, "av_seek_frame", log))
81 return false;
82 if (!resolveFunction(lib, functions.avformat_version, "avformat_version", log))
83 return false;
84 return true;
85}
86
87bool bindLibraryFunctions(QLibrary & lib,
88 FFmpegLibraryFunctions::AvCodecFunctions &functions,

Callers 2

Calls 1

resolveFunctionFunction · 0.85

Tested by

no test coverage detected