|
Hi,
I am a newbie to DirectShow. Recently I am developing an Image Acquisition
software for a microscope. I want to save the parameters such as brightness,
hue and whitebalance, which are got from the IAMVideoProAmp interface to be
the default parameters for the next startup. However, I found if I set the
ColorEnable property to be manual, the saved values can not make a correct
display, especially the color, while the vidcap32.exe can. The following is
copied from the camera driver info ( *.set file):
;[OVT.9600.Properties]
;Standard properties
;PROPSETID_VIDCAP_VIDEOPROCAMP
; KSPROPERTY_VIDEOPROCAMP_BRIGHTNESS, // RW O 0
; KSPROPERTY_VIDEOPROCAMP_CONTRAST, // RW O 1
; KSPROPERTY_VIDEOPROCAMP_HUE, // RW O 2
; KSPROPERTY_VIDEOPROCAMP_SATURATION, // RW O 3
; KSPROPERTY_VIDEOPROCAMP_SHARPNESS, // RW O 4
; KSPROPERTY_VIDEOPROCAMP_GAMMA, // RW O 5
; KSPROPERTY_VIDEOPROCAMP_COLORENABLE, // RW O 6
; KSPROPERTY_VIDEOPROCAMP_WHITEBALANCE, // RW O 7
; KSPROPERTY_VIDEOPROCAMP_BACKLIGHT_COMPENSATION,// RW O 8
HKR,%9600Brit%,PropertyId,0x10001, 0
;Control method 0-->just write calculated value to register (one register)
;Control method 1-->Range look up table, write one or more registers for
value within a range
HKR,%9600Brit%,MapMethod,0x10001, 0
HKR,%9600Brit%,RelatedRegister,1,6
;true or false
HKR,%9600Brit%,RelateUsbRegister,1,0
HKR,%9600Brit%,SupportAuto,0x10001,0 ;0 not support, 1 support
;Auto control method 0-->when turn off auto, just write current value to
register
;Auto control method 1-->when turn off auto, just read register value as
current value
HKR,%9600Brit%,PropertyId,0x10001, 0
HKR,%9600Brit%,MapMethod,0x10001, 0
HKR,%9600Brit%,RelatedRegister,1,ec
;true or false
HKR,%9600Brit%,RelateUsbRegister,1,1
HKR,%9600Brit%,DefaultValue,0x10001, 0x00
HKR,%9600Brit%,DefaultFlags,0x10001, 1
HKR,%9600Brit%,MinValue,0x10001, 0xffffff80
HKR,%9600Brit%,MaxValue,0x10001, 0x7f
HKR,%9600Brit%,Step,0x10001, 1
;#####################################
HKR,%9600Cntr%,PropertyId,0x10001, 1
HKR,%9600Cntr%,MapMethod,0x10001, 0
HKR,%9600Cntr%,RelatedRegister,1,eb
;true or false
HKR,%9600Cntr%,RelateUsbRegister,1,1
HKR,%9600Cntr%,DefaultValue,0x10001, 0x80
HKR,%9600Cntr%,DefaultFlags,0x10001, 1
HKR,%9600Cntr%,MinValue,0x10001, 0
HKR,%9600Cntr%,MaxValue,0x10001, 255
HKR,%9600Cntr%,Step,0x10001, 1
;#####################################
HKR,%9600Col%,PropertyId,0x10001, 6
HKR,%9600Col%,MapMethod,0x10001, 1
HKR,%9600Col%,NumberOfValues,0x10001, 2
HKR,%9600Col%\0000,Value,0x10001, 0
HKR,%9600Col%\0000,UsbRegisters,1, f0,00,ff
HKR,%9600Col%\0000,CamRegisters,1, 01,80,ff,02,80,ff,24,80,ff,25,70,ff
HKR,%9600Col%\0001,Value,0x10001, 1
HKR,%9600Col%\0001,UsbRegisters,1, f0,01,ff
HKR,%9600Col%\0001,CamRegisters,1, 24,b0,ff,25,90,ff
HKR,%9600Col%,DefaultValue,0x10001, 1
HKR,%9600Col%,MinValue,0x10001, 0
HKR,%9600Col%,MaxValue,0x10001, 1
HKR,%9600Col%,Step,0x10001, 1
;#####################################
;HKR,%9600Wb%,Registers,0x10001,
;#####################################
;HKR,%9600Wb%,PropertyId,0x10001, 7
;HKR,%9600Wb%,MapMethod,0x10001, 0
;HKR,%9600Wb%,RelatedRegister,1,01
;HKR,%9600Wb%,DefaultValue,0x10001, 80
;HKR,%9600Wb%,DefaultFlags,0x10001, 1
;HKR,%9600Wb%,MinValue,0x10001, 0
;HKR,%9600Wb%,MaxValue,0x10001, 255
;HKR,%9600Wb%,Step,0x10001, 1
I guess the vidcap32.exe buffers the register values. How can I read/write
the registers?
Any comments should be appreciated!
|
|
|
|
|
Let me detail the problem.
I use IAMVideoProAmp to Get/Set the properties to control the video display. I get the properties and save them in an ini file. I found a question:
1. I set the ColorEnable property to be the Auto mode to obtain a correct color display;
2. then I switch the ColorEnable Item to be the Manual mode(after this,the video display does not change the color);
3. now I save all the properties that I can get from IAMVideoProAmp.
4. However, when I restart my program to read the ini file to set the saved properties to the camera, the color display is not the original one.
The same procedures are taken by using vidcap32 except that the properties can not be saved. Namely,
1. open the video source dialog to set the ColorEnable item to be the auto mode to obtain a correct color display;
2. then switch it to manual mode (after this,the video display does not change the color);
3. close the vidcap32.
4. If I restart the vidcap32, the color display remains the same as it was before I close the vidcap32.
I have checked the Registry but I did not find any solution. So I guess the vidcap32 buffers the video register values. How can I read/write the values?
Thanks a lot.
|
|
|
|
|
using SetupDiXxx functions:
I have got a DevicePath
\\?\usbstor#disk&ven_fujitsu&prod_memorybird&rev_1.14#0739035033a1&0#{53f563
07-b6bf-11d0-94f2-00a0c91efb8b}.
then use function GetLogicalDrives get all removable drives :
A:\, I:\.
Then I feed all these removable drive mountpoint to function
GetVolumeNameForVolumeMountPoint
but the volumeName returned from the function:
\\?\Volume{84ec96be-1682-11db-8e5c-001111c4d88f}
doesn't match with the device path.
So how can I determine which removable drive in the list is the one for the USB flash drive??? I need exact drive letter for the USB flash drive plugged into the PC in order to access files stored in it.
|
|
|
|
|
hi,
how i am get serial of my hard disk.
|
|
|
|
|
DWORD GetSerialNumber(int nDrive)
{
DWORD dwHDSerialNum = 0;
if (!GetVolumeInformation(GetRoot(nDrive), NULL, 0, &dwHDSerialNum,NULL,NULL, NULL, 0))
return (DWORD)-1;
return dwHDSerialNum;
}
|
|
|
|
|
Not the true serial number, for that (I think) you have to go through WMI.
What this gets is Windows internal Volume ID which may change randomly (reformatting of disk etc)
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
See Here[^] maybe it is some helpful to you
|
|
|
|
|
|
Original error message –“Operating system not found”
Assuming IDE0 disk 0 failure..
Running Windows Advanced server 2000 with three hard drives using RAID 5.
Tried to use emergency recovery (with emergency disk) to restore OS.
Received an error ( in setup) that windows need to write to IDE 1 disk 0 but there is no room / partition available – advised by setup to delete partition!. Declined the offer!
Disabled IDE1 in setup – windows run OK. Enabled IDE 1 Disk 0 – windows runs, enabled IDE 1 disk 1 windows runs but no RAID 5 activity!
Disk management reported disk 0 – dynamic on line with errors.
Disk management further reported two dynamic “foreign disks” – off line and two dynamic “missing disks”. Both foreign disks reported wrong capacity. Enabled foreign disks, started windows and now have blue screen – “…cannot find boot device…”.
My next step – disable IDE1 and then reload windows using emergency recovery process again.
Any better idea?
Just do not want to loose the data on the RAID array.
Vaclav
|
|
|
|
|
who could give me a basic flow of this driver? The ISA card is very easy only for reading and writing without interruption.
|
|
|
|
|
For Windows?
What do you want, a flow chart? If so, you wont get one, Windows has the 'main' function, and makes calls into your code when it wants to.
So you will have IO handling. Packet arrives fomr the IO manager, you copy the data to the hardware and set it going and complete the send packet request accordingly.
Data comes in, you pass it up in a receive packet request.
Very linear, very simple.
Untill you come to write a driver, in which case it gets bitchingly complex.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
What is frame grabber? Thanks
|
|
|
|
|
Next time you want to know what something is, try Wikipedia[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
anyone have experience on the Apple Xserve?? is it the best recently compare to IBM?? i concern on the security on my server for my website, cause customer may log in to my server and key in some information. SO i want to have a strong security which atleast lower the risk of been hack.
i just have some question on the apple product... does it support windows? i check the offical website it said it's unix based... i dont really learn unix b4 but if it easy to control i might use it.
|
|
|
|
|
The G5 in the product name refers to the processor type: 5th generation PowerPC. Windows does not run on this processor. I presume that Apple will soon shift this product line to an Intel processor (probably the server version of the Core 2 Duo, codename 'Woodcrest').
As far as security goes, there have been very few vulnerabilities in Internet Information Services 6.0, which comes with Windows Server 2003. Whatever you choose you should familiarise yourself with how to harden the software - look for a 'security hardening guide' which will tell you how to do this. Also, ensure that you're keeping your system's patches up-to-date.
We've not had much experience with IBM hardware. Most of our customers are using HP ProLiant DL-series servers.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
hi
i want write and read one byte on the special address of VGA Ram .
if you have information about it,or you know articles about it
please help me.
|
|
|
|
|
|
http://www.engineeringproject.net
|
|
|
|
|
|
|
dont sleep . wakeup and act properly.
expect more source codes
http://www.engineeringproject.net
|
|
|
|
|
I use
to kindly tell someone that their post is BORING
Do not advertise in Code Project forums
|
|
|
|
|
ok , if i troubled u with my post,i am very sorry.
and will never repeat this
http://www.engineeringproject.net
|
|
|
|
|
premium1 wrote: if i troubled u with my post,i am very sorry.
Hey, no worries. Good luck with your site
|
|
|
|
|
thank u paul.
http://www.engineeringproject.net
|
|
|
|
|