mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 10:43:15 +00:00
avcodec/nvenc: fix library names on cygwin
This commit is contained in:
parent
2ee8a4f887
commit
19e75fd883
@ -21,24 +21,26 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
|
# define CUDA_LIBNAME "nvcuda.dll"
|
||||||
|
# if ARCH_X86_64
|
||||||
|
# define NVENC_LIBNAME "nvEncodeAPI64.dll"
|
||||||
|
# else
|
||||||
|
# define NVENC_LIBNAME "nvEncodeAPI.dll"
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define CUDA_LIBNAME "libcuda.so"
|
||||||
|
# define NVENC_LIBNAME "libnvidia-encode.so"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#define CUDA_LIBNAME TEXT("nvcuda.dll")
|
#define dlopen(filename, flags) LoadLibrary(TEXT(filename))
|
||||||
#if ARCH_X86_64
|
|
||||||
#define NVENC_LIBNAME TEXT("nvEncodeAPI64.dll")
|
|
||||||
#else
|
|
||||||
#define NVENC_LIBNAME TEXT("nvEncodeAPI.dll")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define dlopen(filename, flags) LoadLibrary((filename))
|
|
||||||
#define dlsym(handle, symbol) GetProcAddress(handle, symbol)
|
#define dlsym(handle, symbol) GetProcAddress(handle, symbol)
|
||||||
#define dlclose(handle) FreeLibrary(handle)
|
#define dlclose(handle) FreeLibrary(handle)
|
||||||
#else
|
#else
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
#define CUDA_LIBNAME "libcuda.so"
|
|
||||||
#define NVENC_LIBNAME "libnvidia-encode.so"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "libavutil/hwcontext.h"
|
#include "libavutil/hwcontext.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user