Skip to content

PlayerHwAccel

property

Delphi
property PlayerHwAccel: THwAccel read GetPlayerHwAccel write SetPlayerHwAccel default DEF_PlayerHwAccel;
C++Builder
__property THwAccel PlayerHwAccel = {read=GetPlayerHwAccel, write=SetPlayerHwAccel, default=5};
C#
public THwAccel PlayerHwAccel { get; set; }
VB.NET
Public Property PlayerHwAccel As THwAccel
C++/Qt
THwAccel GetPlayerHwAccel ();
void SetPlayerHwAccel (THwAccel Value);

Enables the hardware acceleration of video decoding during playback. The possible values are listed in THwAccel.

hw_Auto (default): the acceleration is chosen by TVideoGrabber for the decoder in use.

Clips played through the built-in Media Foundation source that the GPU cannot decode (e.g. some H.264 Baseline profile clips), or whose GPU decoding fails before the first frame: with hw_Auto they are decoded in software; with hw_Cuda, hw_QuickSync, hw_Dxva2 or hw_d3d11 they are played by the LAV Filters (GPU decoding) when they are installed, otherwise by the Datastead RTSP/RTMP/HTTP/ONVIF Source Filter when it is installed, otherwise in software.

This property is also used by the MJPEG decoder of the video capture devices (MJPG video format), which decodes on the GPU when the GPU has an MJPEG decoder:

  • hw_Auto: GPU from 1280x720 (smaller pictures in software), hardware decoders of Intel GPUs only

  • hw_Cuda, hw_QuickSync, hw_Dxva2, hw_d3d11: GPU at any size, any GPU decoder (hw_Cuda: NVIDIA GPU first, hw_QuickSync: Intel GPU first)

  • hw_None: software decoding