Image Capture
Detailed Description
- Captures images from video devices.
- You must link the application with "im_capture.lib/.a/.so".
Depends also on the Direct Show 9 SDK, you must link with "strmiids.lib". When using the "im_capture.dll" this extra library is not necessary. Since DX uses COM, CoInitialize(NULL) is called when the devices are enumerated.
- For more information:
http://msdn.microsoft.com/library/en-us/directx9_c/directX/htm/directshow.asp
- See im_capture.h
Modules | |
group | Windows Attributes |
Functions | |
int | imVideoCaptureDeviceCount (void) |
const char * | imVideoCaptureDeviceDesc (int device) |
int | imVideoCaptureReloadDevices (void) |
imVideoCapture * | imVideoCaptureCreate (void) |
void | imVideoCaptureDestroy (imVideoCapture *vc) |
int | imVideoCaptureConnect (imVideoCapture *vc, int device) |
void | imVideoCaptureDisconnect (imVideoCapture *vc) |
int | imVideoCaptureShowDialog (imVideoCapture *vc, int dialog, void *parent) |
int | imVideoCaptureDialogCount (imVideoCapture *vc) |
const char * | imVideoCaptureDialogDesc (imVideoCapture *vc, int dialog) |
void | imVideoCaptureGetImageSize (imVideoCapture *vc, int *width, int *height) |
int | imVideoCaptureSetImageSize (imVideoCapture *vc, int width, int height) |
int | imVideoCaptureFrame (imVideoCapture *vc, unsigned char *data, int color_mode, int timeout) |
int | imVideoCaptureOneFrame (imVideoCapture *vc, unsigned char *data, int color_mode) |
int | imVideoCaptureLive (imVideoCapture *vc, int live) |
int | imVideoCaptureResetAttribute (imVideoCapture *vc, const char *attrib, int fauto) |
int | imVideoCaptureGetAttribute (imVideoCapture *vc, const char *attrib, float *percent) |
int | imVideoCaptureSetAttribute (imVideoCapture *vc, const char *attrib, float percent) |
const char ** | imVideoCaptureGetAttributeList (imVideoCapture *vc, int *num_attrib) |
Function Documentation
|
Returns the number of available devices. |
|
Returns the device description. Returns NULL in the last device. |
|
Reload the device list. The devices can be dynamically removed or added to the system. |
|
Creates a new imVideoCapture object. |
|
Destroys a imVideoCapture object. |
|
Connects to a capture device. More than one imVideoCapture object can be created but they must be connected to different devices. |
|
Disconnect from a capture device. |
|
Displays a configuration modal dialog of the connected device. |
|
Returns the number of available configuration dialogs. |
|
Returns the description of a configuration dialog. |
|
Returns the current image size of the connected device. |
|
Changes the image size of the connected device. |
|
Returns a new captured frame. Use -1 for infinite timeout. |
|
Start capturing, returns the new captured frame and stop capturing. |
|
Start capturing. |
|
Resets a camera or video attribute to the default value or to the automatic setting. |
|
Returns a camera or video attribute in percentage of the valid range value. |
|
Changes a camera or video attribute in percentage of the valid range value. |
|
Returns a list of the description of the valid attributes. |