TVideoGrabber.GetFrameInfo

Prev

Next

TVideoGrabber

Methods

 




































































































Used to retrieve information about the current video frame.


Declaration
function GetFrameInfo(FrameId: LongInt; FrameInfoId: TFrameInfoId): LongWord;


unsigned __fastcall GetFrameInfo(int FrameId, TFrameInfoId FrameInfoId)


Function GetFrameInfo(FrameId As Long, FrameInfoId As TxFrameInfoId) As Long

Description

Used to retrieve information about the current video frame.
Must be invoked from the TVideoGrabber events that occurs for video frames, like OnFrameProgress, OnFrameCaptureCompleted, OnMotionDetected, etc...
- pass as first parameter the FrameId parameter returned by the event,
- pass as second parameter the TFrameInfoId value corresponding to the desired information.

E.g.:

procedure TfrmMainForm.VideoGrabberFrameProgress(Sender: TObject;  FrameNumber: Cardinal; FrameTime: Int64; FrameId: Integer);
begin
   edtFrameCount.Text := 'frame: ' + IntToStr (FrameNumber)
               + ' dropped:' + IntToStr (VideoGrabber.GetFrameInfo (FrameId, fi_DroppedFrameCount))
               + ' time:' + Format ('%.2d:%.2d:%.2d %.2d', [VideoGrabber.GetFrameInfo (FrameId, fi_SampleTime_Hour),
                                                            VideoGrabber.GetFrameInfo (FrameId, fi_SampleTime_Min),
                                                            VideoGrabber.GetFrameInfo (FrameId, fi_SampleTime_Sec),
                                                            VideoGrabber.GetFrameInfo (FrameId, fi_SampleTime_Hs)]);
end;


See Also
TFrameGrabberRGBFormat FrameGrabber FrameGrabberCurrentRGBFormat FrameGrabberRGBFormat GetFrameInfoString InFrameProgressEvent OnFrameBitmap OnFrameBitmapEventSynchrone WebcamStillCaptureButton