ShowCompressionDlg
Top  Previous  Next

Description

Displays the compression dialog for the AVI recording. The dialog allows you to select a desired codec and adjust its parameters.


Syntax


[VB]
objActiveUSB.ShowCompressionDlg

[C/C++]
HRESULT ShowCompressionDlg( );



Parameters

None  
 

Return Values

S_OK  
Success  
E_FAIL  
Failure  


Example


This VB example demonstrates a simple video recording application

Private Sub
Form_Load()
ActiveUSB1.Acquire=
True

End Sub

Private Sub
CompressionButton_Click()
ActiveUSB1.ShowCompressionDlg
End Sub


Private Sub
StartButton_Click()
ActiveUSB1.StartCapture "c:\mycapture.avi"
End Sub


Private Sub
StopButton_Click()
ActiveUSB1.StopCapture

End Sub



Remarks


The settings selected in the compression dialog are remembered as long as the corresponding ActiveUSB control remains in the memory.

ActiveUSB video recording engine includes a proprietary "Raw Uncompressed" codec. When the camera streams video in the Bayer format and the "Raw Uncompressed codec is selected, ActiveUSB records the video in its original raw format while displaying it in color. This reduces the disk space requirements by three times without any degradation in the image quality. In addition, when high-depth pixel formats are used (such as Bayer10, Bayer12, Bayer16, Mono10, Mono 12, Mono16), the recorded video will be packed into the 12-bit per pixel format as opposed to 16 bit, thus saving extra 25% of the disk space. To decode and play back AVI files recorded with the "Raw Uncompressed" codec, use video playback methods of the DVR version of ActiveUSB.