- GET_PROCADDR_FOR_FUNC(bfcGetVersion, hModule);
- GET_PROCADDR_FOR_FUNC(bfcFactory, hModule);
- GET_PROCADDR_FOR_FUNC(bfcDestroy, hModule);
- GET_PROCADDR_FOR_FUNC(bfcEnumerate, hModule);
- GET_PROCADDR_FOR_FUNC(bfcQueryCardType, hModule);
- GET_PROCADDR_FOR_FUNC(bfcAttach, hModule);
- GET_PROCADDR_FOR_FUNC(bfcDetach, hModule);
- GET_PROCADDR_FOR_FUNC(bfcQueryCardProperty32, hModule);
- GET_PROCADDR_FOR_FUNC(bfcQueryCardProperty64, hModule);
- GET_PROCADDR_FOR_FUNC(bfcSetCardProperty32, hModule);
- GET_PROCADDR_FOR_FUNC(bfcSetCardProperty64, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetCardSerialNumber, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetCardFwVersion, hModule);
- GET_PROCADDR_FOR_FUNC(bfcWaitVideoSyncAsync, hModule);
- GET_PROCADDR_FOR_FUNC(bfcWaitVideoInputSync, hModule);
- GET_PROCADDR_FOR_FUNC(bfcWaitVideoOutputSync, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetVideoOutputCurrentFieldCount, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetVideoInputCurrentFieldCount, hModule);
- GET_PROCADDR_FOR_FUNC(bfcVideoCaptureStart, hModule);
- GET_PROCADDR_FOR_FUNC(bfcVideoCaptureStop, hModule);
- GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackStart, hModule);
- GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackStop, hModule);
- GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackAllocate, hModule);
- GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackPresent, hModule);
- GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackRelease, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetCaptureVideoFrameInfoEx, hModule);
- GET_PROCADDR_FOR_FUNC(bfcRenderBufferCapture, hModule);
- GET_PROCADDR_FOR_FUNC(bfcRenderBufferUpdate, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetRenderBufferCount, hModule);
- GET_PROCADDR_FOR_FUNC(bfcEncodeHancFrameEx, hModule);
- GET_PROCADDR_FOR_FUNC(bfcDecodeHancFrameEx, hModule);
- GET_PROCADDR_FOR_FUNC(bfcSystemBufferReadAsync, hModule);
- GET_PROCADDR_FOR_FUNC(bfcSystemBufferWriteAsync, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetBytesForGroupPixels, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetPixelsPerLine, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetLinesPerFrame, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetBytesPerLine, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetBytesPerFrame, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetGoldenValue, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetVBILines, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetVANCGoldenValue, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetVANCLineBytes, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetVANCLineCount, hModule);
- GET_PROCADDR_FOR_FUNC(bfcGetWindowsDriverHandle, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetStringForCardType, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetStringForBlueProductId, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetStringForVideoMode, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetStringForMemoryFormat, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetMR2Routing, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsSetMR2Routing, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetAudioOutputRouting, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsSetAudioOutputRouting, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsIsVideoModeProgressive, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsIsVideoMode1001Framerate, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetFpsForVideoMode, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetVideoModeForFrameInfo, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetFrameInfoForVideoMode, hModule);
- GET_PROCADDR_FOR_FUNC(bfcUtilsGetAudioSamplesPerFrame, hModule);
-
- bRes = true;
+ GET_PROCADDR_FOR_FUNC(bfcGetVersion, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcFactory, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcDestroy, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcEnumerate, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcQueryCardType, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcAttach, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcDetach, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcQueryCardProperty32, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcQueryCardProperty64, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcSetCardProperty32, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcSetCardProperty64, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetCardSerialNumber, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetCardFwVersion, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcWaitVideoSyncAsync, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcWaitVideoInputSync, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcWaitVideoOutputSync, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetVideoOutputCurrentFieldCount, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetVideoInputCurrentFieldCount, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcVideoCaptureStart, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcVideoCaptureStop, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackStart, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackStop, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackAllocate, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackPresent, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcVideoPlaybackRelease, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetCaptureVideoFrameInfoEx, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcRenderBufferCapture, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcRenderBufferUpdate, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetRenderBufferCount, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcEncodeHancFrameEx, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcDecodeHancFrameEx, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcSystemBufferReadAsync, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcSystemBufferWriteAsync, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetBytesForGroupPixels, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetPixelsPerLine, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetLinesPerFrame, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetBytesPerLine, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetBytesPerFrame, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetGoldenValue, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetVBILines, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetVANCGoldenValue, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetVANCLineBytes, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetVANCLineCount, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcGetWindowsDriverHandle, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetStringForCardType, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetStringForBlueProductId, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetStringForVideoMode, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetStringForMemoryFormat, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetMR2Routing, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsSetMR2Routing, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetAudioOutputRouting, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsSetAudioOutputRouting, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsIsVideoModeProgressive, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsIsVideoMode1001Framerate, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetFpsForVideoMode, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetVideoModeForFrameInfo, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetFrameInfoForVideoMode, h_module_.get());
+ GET_PROCADDR_FOR_FUNC(bfcUtilsGetAudioSamplesPerFrame, h_module_.get());
+ res = true;