[FFmpeg-devel] [PATCH 1/2] Add NewTek NDI headers

Ricardo Constantino wiiaboo at gmail.com
Tue Feb 20 19:38:55 EET 2018


On 20 February 2018 at 16:32, Maksym Veremeyenko <verem at m1stereo.tv> wrote:

> Hi
>
> attached patch add a NewTek NDI headers to source tree.
>
> these headers is under MIT license.
>
> please apply.
>

Also, there's still no consideration that there's other compilers in
Windows other than MSVC:

+#ifdef _WIN32
+#define PROCESSINGNDILIB_DEPRECATED __declspec(deprecated)
+#ifdef PROCESSINGNDILIB_EXPORTS
+#ifdef __cplusplus
+#define PROCESSINGNDILIB_API extern "C" __declspec(dllexport)
+#else
+#define PROCESSINGNDILIB_API __declspec(dllexport)
+#endif
+#else
+#ifdef __cplusplus
+#define PROCESSINGNDILIB_API extern "C" __declspec(dllimport)
+#else
+#define PROCESSINGNDILIB_API __declspec(dllimport)
+#endif
+#ifdef _MSC_VER
+#ifdef _WIN64
+#define NDILIB_LIBRARY_NAME			"Processing.NDI.Lib.x64.dll"
+#define NDILIB_REDIST_FOLDER		"NDI_RUNTIME_DIR_V3"
+#define NDILIB_REDIST_URL			"http://new.tk/NDIRedistV3"
+#else
+#define NDILIB_LIBRARY_NAME			"Processing.NDI.Lib.x86.dll"
+#define NDILIB_REDIST_FOLDER		"NDI_RUNTIME_DIR_V3"
+#define NDILIB_REDIST_URL			"http://new.tk/NDIRedistV3"
+#endif
+#endif
+#endif
+#else
+#ifdef __APPLE__
+#define NDILIB_LIBRARY_NAME			"libndi.3.dylib"
+#define NDILIB_REDIST_FOLDER		"NDI_RUNTIME_DIR_V3"
+#define NDILIB_REDIST_URL			"http://new.tk/NDIRedistV3Apple"
+#else // __APPLE__
+#define NDILIB_LIBRARY_NAME			"libndi.so.3"
+#define NDILIB_REDIST_FOLDER		"NDI_RUNTIME_DIR_V3"
+#define NDILIB_REDIST_URL			""
+#endif // __APPLE__
+#define PROCESSINGNDILIB_DEPRECATED
+#ifdef __cplusplus
+#define PROCESSINGNDILIB_API extern "C" __attribute((visibility("default")))
+#else
+#define PROCESSINGNDILIB_API __attribute((visibility("default")))
+#endif
+#endif




>
> --
> Maksym Veremeyenko
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>


More information about the ffmpeg-devel mailing list