Skip to content

FrameGrabberRGBFormat

property

Delphi
property FrameGrabberRGBFormat: TFrameGrabberRGBFormat read GetFrameGrabberRGBFormat write SetFrameGrabberRGBFormat default DEF_FrameGrabberRGBFormat;
C++Builder
__property TFrameGrabberRGBFormat FrameGrabberRGBFormat = {read=GetFrameGrabberRGBFormat, write=SetFrameGrabberRGBFormat, default=0};
C#
public TFrameGrabberRGBFormat FrameGrabberRGBFormat { get; set; }
VB.NET
Public Property FrameGrabberRGBFormat As TFrameGrabberRGBFormat
C++/Qt
TFrameGrabberRGBFormat GetFrameGrabberRGBFormat ();
void SetFrameGrabberRGBFormat (TFrameGrabberRGBFormat Value);

Specifies the RGB format of the frame grabber (see TFrameGrabberRGBFormat). This RGB format is used for frame capture, and also for text and graphics overlays. If the format is fgf_Default (TVideoGrabber chooses the best RGB format), the FrameGrabberCurrentRGBFormat property returns the RGB format actually in use.

fgf_Default (default setting): the playback of a 4K / 8K video (3840 columns or 2160 lines or more) keeps its frames in NV12 from the source to the renderer: no RGB conversion of the frames, much faster (8K60 playback). The OnFrameBitmap, OnFrameOverlayUsingDC and OnFrameOverlayUsingDIB events are then not raised (OnLog reports a warning when they are assigned before the video is opened); text overlays, image overlays and frame capture still work. To receive these events for every video, set FrameGrabberRGBFormat to fgf_RGB32.

fgf_NV12: the frames are kept in NV12 whatever the video size, in preview and playback (RGB32 when the graph does not allow it: other renderer, mixer, motion detector, encoder, etc.); the OnFrameBitmap, OnFrameOverlayUsingDC and OnFrameOverlayUsingDIB events are not raised.

FrameGrabberCurrentRGBFormat returns fgf_NV12 while the frames are kept in NV12.