1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

MediaSDK video backend: Windows support

This commit is contained in:
Maksim Shabunin
2017-10-10 17:21:27 +03:00
parent 0739f28e56
commit 83655ba9be
6 changed files with 93 additions and 38 deletions
+1 -3
View File
@@ -38,8 +38,7 @@ VideoCapture_IntelMFX::VideoCapture_IntelMFX(const cv::String &filename)
mfxStatus res = MFX_ERR_NONE;
// Init device and session
deviceHandler = new VAHandle();
deviceHandler = createDeviceHandler();
session = new MFXVideoSession();
if (!deviceHandler->init(*session))
{
@@ -227,7 +226,6 @@ bool VideoCapture_IntelMFX::grabFrame()
MSG(cerr << "MFX: Bad status: " << res << endl);
return false;
}
return false;
}
}