PDA

View Full Version : setVideoFormat



Bolle
December 28, 2006, 10:50:35
It's frustrating! Even the most common settings won't work? Does anyone have any Ideas about that?

I have live image but the console says that I'm running on "BY8" video format.

****************
SYSTEM:
=======
VS2005
IC 3.0.3
FWCam DFK 41AF02
****************

CODE:
=====

_grabber = new DShowLib::Grabber();
if (!_grabber->openDev(0x1301D2EB72)){
_grabber->showDevicePage();
if (!_grabber->isDevValid())
{
std::cout << "No device was selected!" << std::endl;
return false;
}
}

_grabber->setVideoFormat( "UYVY (1280x960)" );
std::cout << _grabber->getVideoFormat() << std::endl;
_grabber->setFPS(7.5);

Johannes Vogel
December 29, 2006, 09:40:25
Hello,

You cannot change the video format while you are in live mode. Please call _grabber->stopLive(); before changing the video format.