TRVMRenderMode

<< Click to display table of contents >>

TRVMRenderMode

Specifies a video rendering method.

Unit [VCL and LCL] MRVType;

type
  TRVMRenderMode = (rvmrmSoftware, rvmrmOpenGL, 

    rvmrmSkia, rvmrmAuto);

Value

Meaning

rvmrmSoftware

Standard drawing (GDI in Windows)

rvmrmOpenGL

OpenGL drawing.

In TRVCamView: if a video frame is not visible, the viewer is drawn by the standard drawing. If a video frame is visible, the whole viewer is drawn by OpenGL.

in TRVCamMultiView: the whole viewer is drawn by OpenGL.

OpenGL uses GPU for scaling images, so less CPU resources are used.

Requirements:

Delphi

Lazarus

C++Builder XE or newer

rvmrmSkia

Skia4Delphi drawing.

MRVCamViewSkia unit must be included in your project, otherwise this mode will not be initialized (and the component will fall back to rvmrmSoftware).

TRVCamView and TRVCamMultiView use Skia4Delphi only for drawing video frames. All other parts of video viewers are drawn by the standard drawing.

GPU is not used, but frame drawing sometimes may be more efficient that in the standard drawing.

Requirements:

Delphi or C++Builder XE7 or newer

rvmrmAuto

Auto selection:

if OpenGL is available, uses it; otherwise

if Skia4Delphi is available, uses it; otherwise

uses the standard rendering method

This is a type of the following properties:

TRVCamView.RenderMode, CurRenderMode

TRVCamMultiView.RenderMode, CurRenderMode