tomhog
May 30, 2007, 11:04:04
I'm having problems with the VCD props
I have managed to acess and change the brightness settings but when I try gain or the AutoReference which is what I need I get false from the isAvaliable function of the CSimplePropertyAccess class.
//get camera params
m_VCDProp.init( m_Grabber.getAvailableVCDProperties() );
//get the values for auto ref
if(m_VCDProp.isAvailable(VCDElement_AutoReference) )
{cout<<"VCDElement_AutoReference avaliable"<<endl;}
else{cout <<"VCDElement_AutoReference Not Avaliable"<<endl;}
Above returns false. I tried making sure Auto Exposure was enabled just to be sure.
Is there any thing extra I need to do to access these props?
Also the showVCDPropertyPage dialog does'nt seem to save the changes I make. I found the saveDeviceState but not sure if I need to write returned string to the registry. Not impossible but I am using a console application which makes it a hassle.
m_Grabber.showVCDPropertyPage( 0, "Settings" );
m_Grabber.saveDeviceState();
Any help much appreciated
Tom
I have managed to acess and change the brightness settings but when I try gain or the AutoReference which is what I need I get false from the isAvaliable function of the CSimplePropertyAccess class.
//get camera params
m_VCDProp.init( m_Grabber.getAvailableVCDProperties() );
//get the values for auto ref
if(m_VCDProp.isAvailable(VCDElement_AutoReference) )
{cout<<"VCDElement_AutoReference avaliable"<<endl;}
else{cout <<"VCDElement_AutoReference Not Avaliable"<<endl;}
Above returns false. I tried making sure Auto Exposure was enabled just to be sure.
Is there any thing extra I need to do to access these props?
Also the showVCDPropertyPage dialog does'nt seem to save the changes I make. I found the saveDeviceState but not sure if I need to write returned string to the registry. Not impossible but I am using a console application which makes it a hassle.
m_Grabber.showVCDPropertyPage( 0, "Settings" );
m_Grabber.saveDeviceState();
Any help much appreciated
Tom