nicetoshare
March 7, 2011, 04:32:18
I am a newbie. this might be a silly question, but still hope someone help me to understand how the things work.
I took "MembufferCollection" in IC Image Control 3.1 vc9 samples, and added
following lines to print out VCDPropertyItems
//////////////////////////////////////////////
tIVCDPropertyItemsPtr pItems = grabber.getAvailableVCDProperties();
if( pItems != 0 )
{
tVCDPropertyItemArray itemArray = pItems->getItems();
for( tVCDPropertyItemArray::const_iterator itItem = itemArray.begin(); itItem != itemArray.end(); ++itItem )
{
std::cerr << (*itItem)->getName().c_str() << std::endl;
}
}
//////////////////////////////////////////////
The itemArray is size of 7, but no strings are printed out. MembufferCollection still can get the 5 snapshots.
While in another sample "List VCDProperties" I can get all the things I want:
Brightness
Gamma
Gain
Exposure
Trigger
GPIOStrobe
Brightness
How come two samples show different results? The only thing in my mind is that "List VCDProperties" uses MFC DLL while "MembufferCollection" does not.
many thanks!
I took "MembufferCollection" in IC Image Control 3.1 vc9 samples, and added
following lines to print out VCDPropertyItems
//////////////////////////////////////////////
tIVCDPropertyItemsPtr pItems = grabber.getAvailableVCDProperties();
if( pItems != 0 )
{
tVCDPropertyItemArray itemArray = pItems->getItems();
for( tVCDPropertyItemArray::const_iterator itItem = itemArray.begin(); itItem != itemArray.end(); ++itItem )
{
std::cerr << (*itItem)->getName().c_str() << std::endl;
}
}
//////////////////////////////////////////////
The itemArray is size of 7, but no strings are printed out. MembufferCollection still can get the 5 snapshots.
While in another sample "List VCDProperties" I can get all the things I want:
Brightness
Gamma
Gain
Exposure
Trigger
GPIOStrobe
Brightness
How come two samples show different results? The only thing in my mind is that "List VCDProperties" uses MFC DLL while "MembufferCollection" does not.
many thanks!