GetFPS
Top  Previous  Next

Description

Returns the actual frame rate of the camera in frames per second.


Syntax


[VB]
Value=objActiveUSB.GetFPS


[C/C++]
HRESULT GetFPS(float* pValue);


Data Types
[VB]

Return value: Single


Parameters
[C/C++]

pValue [out,retval]  
Pointer to the fps value  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example displays the actual frame rate of the camera.

Private Sub ActiveUSB1_FrameAcquired()  
Label1.Caption = ActiveUSB1.GetFPS  
End Sub  
 

Remarks


This method returns the actual frame rate of the camera. Note that the actural frame rate may differ from the acquired frame rate. ActiveUSB calculates the actual frame rate using the frame timestamps. If the camera doesn't support timestamps, the frame rate is calcualted based on the arrival of the video packets to the system memory.