Restricted Win32 API was fixed in Highgui and some 3rd party libs. Patch
for libpng added.
This commit is contained in:
@@ -85,6 +85,16 @@ private:
|
||||
icvInitFFMPEG()
|
||||
{
|
||||
#if defined WIN32 || defined _WIN32
|
||||
# ifdef HAVE_WINRT
|
||||
const wchar_t* module_name = L"opencv_ffmpeg"
|
||||
CVAUX_STRW(CV_MAJOR_VERSION) CVAUX_STRW(CV_MINOR_VERSION) CVAUX_STRW(CV_SUBMINOR_VERSION)
|
||||
#if (defined _MSC_VER && defined _M_X64) || (defined __GNUC__ && defined __x86_64__)
|
||||
L"_64"
|
||||
#endif
|
||||
L".dll";
|
||||
|
||||
icvFFOpenCV = LoadPackagedLibrary( module_name, 0 );
|
||||
# else
|
||||
const char* module_name = "opencv_ffmpeg"
|
||||
CVAUX_STR(CV_MAJOR_VERSION) CVAUX_STR(CV_MINOR_VERSION) CVAUX_STR(CV_SUBMINOR_VERSION)
|
||||
#if (defined _MSC_VER && defined _M_X64) || (defined __GNUC__ && defined __x86_64__)
|
||||
@@ -93,6 +103,8 @@ private:
|
||||
".dll";
|
||||
|
||||
icvFFOpenCV = LoadLibrary( module_name );
|
||||
# endif
|
||||
|
||||
if( icvFFOpenCV )
|
||||
{
|
||||
icvCreateFileCapture_FFMPEG_p =
|
||||
|
@@ -366,7 +366,15 @@ private:
|
||||
|
||||
struct ImplMutex::Impl
|
||||
{
|
||||
void init() { InitializeCriticalSection(&cs); refcount = 1; }
|
||||
void init()
|
||||
{
|
||||
#if (_WIN32_WINNT >= 0x0600)
|
||||
::InitializeCriticalSectionEx(&cs, 1000, 0);
|
||||
#else
|
||||
::InitializeCriticalSection(&cs);
|
||||
#endif
|
||||
refcount = 1;
|
||||
}
|
||||
void destroy() { DeleteCriticalSection(&cs); }
|
||||
|
||||
void lock() { EnterCriticalSection(&cs); }
|
||||
|
Reference in New Issue
Block a user