#include <vetDirectXInput2.h>
Inheritance diagram for vetDirectXInput2:

Public Types | |
| enum | FORMAT_CSP |
Public Member Functions | |
| vetDirectXInput2 (int device=-1) | |
| ~vetDirectXInput2 () | |
| Default destructor, release objects and buffers and destroy the imVideoCapture object. | |
| void | Close (void) |
| bool | EoF () |
| Get the state of current data source. | |
| int | reset () |
| Reset the module. | |
| const char * | getDeviceDescription (int device) |
| Returns the device description. Returns NULL in the last device. | |
| void | enumerateDevices (void) |
| int | getDeviceVideoCount (void) |
| Return current device count, call enumerateDevices(void) first. | |
| int | getDeviceAudioCount (void) |
| Return current device count, call enumerateDevices(void) first. | |
| const char * | getDeviceVideoDescription (int device) |
| Returns the device description. Returns NULL in the last device. | |
| const char * | getDeviceAudioDescription (int device) |
| Returns the device description. Returns NULL in the last device. | |
| int | getCurrentDeviceVideo () |
| Get current device id. | |
| int | getCurrentDeviceAudio () |
| Get current device id. | |
| int | getVideoFriendlyName (char *buffer) |
| int | getAudioFriendlyName (char *buffer) |
| int | setCurrentDevices (int szVideo, int szAudio) |
| int | StartPreview () |
| int | StopPreview () |
| int | StartCapture () |
| int | StopCapture () |
| void | setPreviewEnabled (bool value=true) |
| int | showPreviewWindow (bool show=true) |
| int | setPreviewWindow (void *HWND_Owner) |
| void | doUpdatePreviewWindow () |
| void | setAutoUpdatePreviewWindowEnabled (bool enable=true) |
| int | AllocCaptureFile (unsigned short fileSize_mb=10) |
| int | setFrameRate (double rate=0.0) |
| int | setCaptureFile (char *pszName) |
| int | setFrameRateControlEnabled (bool enable=true) |
| int | setCaptureAudioEnabled (bool enable=true) |
| int | setMPEG2Encode (bool enable=true) |
| void | setErrorMessagesEnabled (bool enable=true) |
| int | showCaptureVideoForWindowPropertyPage () |
| int | showCaptureVideoFilterPropertyPage () |
| int | showCaptureAudioFilterPropertyPage () |
| int | showGraphFilterPropertyPage () |
| int | showVideoRendererPropertyPage () |
| int | showSampleGrabberPropertyPage () |
| unsigned long | getVideoBitRate () |
| unsigned long | getAudioBitRate () |
| int | setFrameGrabbingEnabled (bool enable=true) |
| bool | isFrameGrabbingEnabled () |
| FORMAT_CSP | getCurrentFormat () |
| int | getCurrentFormatDescription (char *buffer) |
| bool | isPreviewing () |
| bool | isCapturing () |
| bool | isPreviewFaked () |
| bool | isAutoUpdatePreviewWindowEnabled () |
| bool | isCapturingAudio () |
| void | UpdateStatus (bool fAllStats=false) |
| bool | isUncompressed () |
| bool | isMPEG2Encoded () |
| double | getFrameRate () |
| double | getFrameRateCurrent () |
| long | getCapturedElapsedTime () |
| unsigned short | getFileSize (bool forceUpdate=false) |
| long | getDroppedFramesCount (bool forceUpdate=false) |
| long | getCapturedFramesCount (bool forceUpdate=false) |
| long | getAverageFrameSize (bool forceUpdate=false) |
| long | getCapturedDataRate (bool forceUpdate=false) |
| double | getCapturedFrameRate (bool forceUpdate=false) |
| unsigned int | getWidth () const |
| Get current canvas' width. | |
| unsigned int | getHeight () const |
| Get current canvas' height. | |
| long | getFreeSpaceLeft () |
| int | extractTo (vetFrameRGB24 &img) |
| Grab a frame and copy to VETLib standard format. | |
| int | extractTo (vetFrameYUV420 &img) |
| Grab a frame and copy to VETLib standard format. | |
| int | extractTo (vetFrameT< unsigned char > &img) |
| Grab a frame and copy to VETLib standard format. | |
Protected Member Functions | |
| int | InitCapFilters (void) |
| void | FreeCapFilters (void) |
| void | TearDownGraph (void) |
| int | BuildCaptureGraph (void) |
| int | BuildPreviewGraph (void) |
| int | BuildGrabberGraph (bool mpeg2=false) |
| int | MakeBuilder (void) |
| int | MakeGraph (void) |
| void | RegisterDevicesNotification (void) |
| int | RemoveGraphFromRot (DWORD pdwRegister) |
Protected Attributes | |
| vetDXCapture2 * | cCap |
| DWORD | g_dwGraphRegister |
| unsigned int | width |
| unsigned int | height |
| char | deviceVideoDesc [VETDX_MAXDEVICES][160] |
| DirectX compatible devices' description. | |
| char | deviceAudioDesc [VETDX_MAXDEVICES][160] |
| DirectX compatible devices' description. | |
Definition at line 59 of file vetDirectXInput2.h.
|
|
|
Get the state of current data source.
Implements vetInput. Definition at line 5355 of file vetDirectXInput2.cpp. References cCap, vetDXCapture2::fCapturing, vetDXCapture2::fPreviewing, and vetDXCapture2::GrabbingEnabled. |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 5002 of file vetDirectXInput2.cpp. References INFO, and VETRET_NOT_IMPLEMENTED. |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 4946 of file vetDirectXInput2.cpp. References INFO, and VETRET_NOT_IMPLEMENTED. |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 4966 of file vetDirectXInput2.cpp. References SampleGrabberCB::buffer, SampleGrabberCB::bufferSize, cCap, vetFrameRGB24::data, SampleGrabberCB::event, SampleGrabberCB::frameWanted, height, vetFrame::height, INFO, vetDXCapture2::pCallbackGrabber, vetDXCapture2::pSampleGrabber, vetFrameRGB24::reAllocCanvas(), VETRET_INTERNAL_ERR, VETRET_OK, width, and vetFrame::width. |
|
|
Get current device id.
Definition at line 4922 of file vetDirectXInput2.cpp. References cCap, and vetDXCapture2::pmAudioIndex. |
|
|
Get current device id.
Definition at line 4911 of file vetDirectXInput2.cpp. References cCap, and vetDXCapture2::pmVideoIndex. |
|
|
Return current device count, call enumerateDevices(void) first.
Definition at line 5560 of file vetDirectXInput2.cpp. References cCap, and vetDXCapture2::iNumACapDevices. |
|
|
Returns the device description. Returns NULL in the last device.
Definition at line 5538 of file vetDirectXInput2.cpp. References cCap, deviceAudioDesc, enumerateDevices(), and vetDXCapture2::iNumACapDevices. |
|
|
Returns the device description. Returns NULL in the last device.
|
|
|
Return current device count, call enumerateDevices(void) first.
Definition at line 5556 of file vetDirectXInput2.cpp. References cCap, and vetDXCapture2::iNumVCapDevices. |
|
|
Returns the device description. Returns NULL in the last device.
Definition at line 5514 of file vetDirectXInput2.cpp. References cCap, deviceVideoDesc, enumerateDevices(), and vetDXCapture2::iNumVCapDevices. |
|
|
Get current canvas' height.
Implements vetInput. Definition at line 317 of file vetDirectXInput2.h. References height. |
|
|
Get current canvas' width.
Implements vetInput. Definition at line 310 of file vetDirectXInput2.h. References width. |
|
|
Reset the module.
Implements vetInput. Definition at line 143 of file vetDirectXInput2.h. |
1.4.4