Inheritance diagram for vetDirectXInput:

Public Member Functions | |
| vetDirectXInput (int device=-1) | |
| Default costructor, initialize variables and connect to device if requested. | |
| vetDirectXInput (int device, float fps) | |
| ~vetDirectXInput () | |
| Default destructor, release objects and buffers and destroy the imVideoCapture object. | |
| void | enumerateDevices (void) |
| Read (update) windows' connected device list. | |
| int | getDeviceCount (void) |
| Return current device count, call enumerateDevices(void) first. | |
| const char * | getDeviceDescription (int device) |
| Returns the device description. Returns NULL in the last device. | |
| int | getCurrentDevice () |
| Get current device id. | |
| VETRESULT | setDevice (int device) |
| Set current device. | |
| VETRESULT | openPropertyPage (void *HWND_Owner) |
| VETRESULT | connectTo (int device) |
| Connect to device. | |
| VETRESULT | connect (void) |
| Connect to current device. | |
| VETRESULT | disconnect (void) |
| Disconnect from current capture device. | |
| VETRESULT | doStopLive () |
| Stop stream media control. | |
| VETRESULT | doStartLive () |
| Start stream media control. | |
| bool | isLive () |
| Return current media control state. | |
| unsigned int | getWidth () const |
| Get current canvas' width. | |
| unsigned int | getHeight () const |
| Get current canvas' height. | |
| VETRESULT | setImageSize (int width, int height) |
| Set capture stream size. | |
| void | getImageSize (int *width, int *height) |
| Read current image size and store to passed arguments. | |
| int | getFormat () |
| Read current format's id. | |
| VETRESULT | setFormat (int format) |
| Set current format's id. | |
| VETRESULT | getFormat (int format, int *width, int *height, char *desc) |
| Read format's informations. | |
| int | getFormatCount () |
| Read support format's count. | |
| bool | EoF () |
| Get the state of current data source. | |
| VETRESULT | reset () |
| Disconnect and reset the module. | |
| VETRESULT | extractTo (vetFrameYUV420 &img) |
| Grab a frame and copy to VETLib standard format. | |
| VETRESULT | extractTo (vetFrameRGB24 &img) |
| Grab a frame and copy to VETLib standard format. | |
| VETRESULT | extractTo (vetFrameT< unsigned char > &img) |
| Grab a frame and copy to VETLib standard format. | |
Protected Member Functions | |
| int | vetCheckVideoPort (vetDXCapture *vdx) |
| int | initCaptureGraphBuilder (vetDXCapture *vdx) |
| int | vetUpdateFormatList (vetDXCapture *vdx) |
| void | doReleaseMixer (vetDXCapture *vdx) |
| Disconnect filter graph and free objects. | |
Protected Attributes | |
| vetDXCapture * | cCap |
| int | deviceCount |
| DirectX compatible device count. | |
| char | deviceDesc [VETDX_MAXDEVICES][160] |
| DirectX compatible devices' description. | |
| int | height |
| int | width |
Definition at line 62 of file vetDirectXInput.h.
|
|
Default costructor, initialize variables and connect to device if requested.
Definition at line 608 of file vetDirectXInput.cpp. References cCap, connectTo(), vetDXCapture::device, deviceCount, enumerateDevices(), INFO, and vetDXCapture::sample_callback. |
|
|
Connect to current device.
Definition at line 751 of file vetDirectXInput.cpp. References cCap, connectTo(), vetDXCapture::device, deviceCount, enumerateDevices(), and VETRET_ILLEGAL_USE. Referenced by setImageSize(). |
|
|
Connect to device.
Definition at line 775 of file vetDirectXInput.cpp. References vetDXCapture::camera_prop, vetDXCapture::capture_filter, vetDXCapture::capture_graph_builder, cCap, vetDXCapture::device, disconnect(), vetDXCapture::filter_builder, getImageSize(), vetDXCapture::grabber_filter, height, initCaptureGraphBuilder(), vetDXCapture::live, vetDXCapture::null_filter, SafeRelease, vetDXCapture::sample_callback, vetDXCapture::sample_grabber, setDevice(), imTrackingGrabberCB::SetImageSize(), vetCheckVideoPort(), vetConnectFilters(), vetGetDevice(), VETRET_INTERNAL_ERR, VETRET_OK, VETRET_PARAM_ERR, vetUpdateFormatList(), vetDXCapture::video_prop, vetDXCapture::videoctrl_prop, and width. Referenced by connect(), and vetDirectXInput(). |
|
|
Disconnect from current capture device.
Definition at line 844 of file vetDirectXInput.cpp. References vetDXCapture::camera_prop, vetDXCapture::capture_filter, cCap, vetDXCapture::device, doReleaseMixer(), doStopLive(), vetDXCapture::filter_builder, vetDXCapture::grabber_filter, height, vetDXCapture::live, vetDXCapture::null_filter, vetDXCapture::overlay_mixer, SafeRelease, vetDXCapture::sample_grabber, vetDisconnectFilterPin(), vetDisconnectFilters(), vetNukeDownstream(), VETRET_ILLEGAL_USE, VETRET_INTERNAL_ERR, VETRET_OK, vetDXCapture::video_prop, vetDXCapture::videoctrl_prop, and width. Referenced by connectTo(), reset(), setFormat(), setImageSize(), and ~vetDirectXInput(). |
|
|
Disconnect filter graph and free objects.
Definition at line 1483 of file vetDirectXInput.cpp. References vetDXCapture::filter_builder, vetDXCapture::overlay_mixer, vetDXCapture::overlay_renderer, SafeRelease, vetDisconnectFilters(), and vetGetPin(). Referenced by disconnect(). |
|
|
Start stream media control.
Definition at line 1261 of file vetDirectXInput.cpp. References cCap, vetDXCapture::live, vetDXCapture::media_control, VETRET_ILLEGAL_USE, VETRET_INTERNAL_ERR, and VETRET_OK. Referenced by extractTo(), and setImageSize(). |
|
|
Stop stream media control.
Definition at line 1286 of file vetDirectXInput.cpp. References cCap, vetDXCapture::live, vetDXCapture::media_control, VETRET_ILLEGAL_USE, and VETRET_OK. Referenced by disconnect(), extractTo(), setFormat(), and setImageSize(). |
|
|
Read (update) windows' connected device list.
Definition at line 1589 of file vetDirectXInput.cpp. References CATEGORY_FLAG, deviceCount, and deviceDesc. Referenced by connect(), getDeviceDescription(), setDevice(), and vetDirectXInput(). |
|
|
Get the state of current data source.
Implements vetInput. Definition at line 889 of file vetDirectXInput.cpp. References getCurrentDevice(), and isLive(). |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 1388 of file vetDirectXInput.cpp. References INFO, VETRET_NOT_IMPLEMENTED, and VETRET_PARAM_ERR. |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 1342 of file vetDirectXInput.cpp. References cCap, vetFrameRGB24::data, doStartLive(), doStopLive(), imTrackingGrabberCB::GetImage(), vetFrame::height, height, INFO, vetDXCapture::sample_callback, vetDXCapture::sample_grabber, VETRET_INTERNAL_ERR, VETRET_PARAM_ERR, vetFrame::width, and width. |
|
|
Grab a frame and copy to VETLib standard format.
Implements vetInput. Definition at line 1321 of file vetDirectXInput.cpp. References INFO, and VETRET_NOT_IMPLEMENTED. |
|
|
Get current device id.
Definition at line 1226 of file vetDirectXInput.cpp. References cCap, and vetDXCapture::device. Referenced by EoF(). |
|
|
Return current device count, call enumerateDevices(void) first.
Definition at line 135 of file vetDirectXInput.h. References deviceCount. |
|
|
Returns the device description. Returns NULL in the last device.
Definition at line 1651 of file vetDirectXInput.cpp. References deviceCount, deviceDesc, and enumerateDevices(). |
|
||||||||||||||||||||
|
Read format's informations.
Definition at line 1121 of file vetDirectXInput.cpp. References cCap, vetDXCapture::format_count, vetDXCapture::format_map, vetDeleteMediaType(), vetGetStreamConfig(), VETRET_INTERNAL_ERR, VETRET_OK, and VETRET_PARAM_ERR. |
|
|
Read current format's id.
Definition at line 1246 of file vetDirectXInput.cpp. References cCap, and vetDXCapture::format_current. |
|
|
Read support format's count.
Definition at line 1236 of file vetDirectXInput.cpp. References cCap, and vetDXCapture::format_count. |
|
|
Get current canvas' height.
Implements vetInput. Definition at line 229 of file vetDirectXInput.h. References height. |
|
||||||||||||
|
Read current image size and store to passed arguments.
Definition at line 984 of file vetDirectXInput.cpp. References cCap, and vetDXCapture::sample_grabber. Referenced by connectTo(). |
|
|
Get current canvas' width.
Implements vetInput. Definition at line 222 of file vetDirectXInput.h. References width. |
|
|
Return current media control state.
Definition at line 1212 of file vetDirectXInput.cpp. References cCap, and vetDXCapture::live. Referenced by EoF(). |
|
|
Disconnect and reset the module.
Implements vetInput. Definition at line 903 of file vetDirectXInput.cpp. References disconnect(). |
|
|
Set current device.
Definition at line 953 of file vetDirectXInput.cpp. References cCap, vetDXCapture::device, deviceCount, enumerateDevices(), vetDXCapture::live, VETRET_ILLEGAL_USE, VETRET_OK, and VETRET_PARAM_ERR. Referenced by connectTo(). |
|
|
Set current format's id.
Definition at line 1159 of file vetDirectXInput.cpp. References cCap, disconnect(), doStopLive(), vetDXCapture::format_count, vetDXCapture::format_current, vetDXCapture::format_map, vetDXCapture::sample_callback, imTrackingGrabberCB::SetImageSize(), vetDeleteMediaType(), vetGetStreamConfig(), VETRET_INTERNAL_ERR, VETRET_OK, and VETRET_PARAM_ERR. |
|
||||||||||||
|
Set capture stream size.
Definition at line 1017 of file vetDirectXInput.cpp. References cCap, connect(), disconnect(), doStartLive(), doStopLive(), vetDXCapture::live, vetDXCapture::sample_callback, imTrackingGrabberCB::SetImageSize(), vetDeleteMediaType(), vetGetStreamConfig(), VETRET_INTERNAL_ERR, and VETRET_OK. |
1.4.4