Hi,
when using the dll / activex controls , how can we verify / check if hardware acceleration is enabled?
how does hardware acceleration get implemented in the sdk for 2017 R1?
Hi,
when using the dll / activex controls , how can we verify / check if hardware acceleration is enabled?
how does hardware acceleration get implemented in the sdk for 2017 R1?
In MIP SDK 2016R3 the ImageViewerControl was updated so that the new hardware acceleration enabled component was used.
It is implemented so that you use the ImageViewerControl the same way you always did, in that way the hardware acceleration is automatic, you get it without changing you coding.
To check if hardware acceleration works you can use the diagnostics overlay (as also available in the Smart Client Settings). In code you do
EnvironmentManager.Instance.EnvironmentOptions[“PlayerDiagnosticLevel”] = “2”;
--
VideoOS.Platform.EnvironmentOptions Class Reference
const string VideoOS.Platform.EnvironmentOptions.PlayerDiagnosticLevel = “PlayerDiagnosticLevel”
Set this value to number between “0” and “3”, to display developer information on top of ImageViewerCOntrol.
Value of “0” - No diagnosticsValue of “1”, “2”, “3” - Display more and more information about the video stream and the decoding details
If changing the value on the fly - call the EnvironmentManager.Instance.FireEnvironmentOptionsChangedEvent to have the ImageViewerControl pick up the change right away.
--
This is used and shown in the PlaybackUser sample.
Let me recommend that you find the “XProtect Smart Client - Hardware acceleration quick guide” for guidance and troubleshooting etc. on hardware acceleration in Smart Client as well as in MIP SDK based applications using the ImageViewerControl.
https://www.milestonesys.com/support/help-yourself/manuals-and-guides/?prod=3&type=13&lang=27