Colour Camera sample application. --------------------------------- Files: ccmsmpl1.c Code. errmsg.c Error message handling. ccmsmpl1.mak To make the executable. ccmsmpl1.ini To control program. This samples shows how to load a CPF file and grab an image from a colour camera. It also shows how to display the image, accounting for possible data convertion in order to display the data. The images are grabbed and displayed continuously until the user exits the program. ================================================================================ Running the program: The program as no command line parameters but it has some useful keys to use while running. Q or q to quit the program. R or r to display the red component of the image. G or g to display the green component of the image. B or b to display the blue component of the image. C or c to convert the image to fit the display mode. This is done automatically if no key is pressed. I or i to bypass the data convertion and display the image as is acquired. This may not always look right if there are some acquire mode and display mode differences, or the display mode is not supported by Vesa or the hardware. ================================================================================ Data convertion is required when the mode for displaying the data does not match the mode of data is being acquired. For example, grabbing data in 5:6:5 mode but displaying it in 5:5:5 mode. To do this the following needs to be done to the .ini file (all other lines are commented out): Section Parameter to use. [Init] XPGOutFile = xpg.out [Display] Palette = ..\..\..\pal\palette.0 VGATextMode = 0x100 VGADirectColourMode = 0x113 [Camera] CPF =..\..\..\cpf\RGB565.cpf [ColourImage] NumPixelsForDisplay = 640 NumLinesForDisplay = 480 OutDataFormat = P_16_BIT_PACKED_555 This will cause the grabbed image to be separated into it's RGB components and recombined into the selected ouput format. Similarly if the VGA does not support true X:8:8:8 mode and the camera grabs in that mode then the .ini file is set to: Section Parameter to use. [Init] XPGOutFile = xpg.out [Display] Palette = ..\..\..\pal\palette.0 VGATextMode = 0x100 VGADirectColourMode = 0x115 [Camera] CPF =..\..\..\cpf\RGB32.cpf [ColourImage] NumPixelsForDisplay = 640 NumLinesForDisplay = 480 OutDataFormat = P_24_BIT_PACKED_888 ================================================================================Download Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.