PDA

View Full Version : Color Format Problem



Steven
June 24, 2007, 09:33:32
Hi Stefan,

I have implemented a listener in my application. When I call getColorformat() method in frameReady() implementation, it always returns eRGB32 (incorrectly) for UYVY and Y411 formats but it returns correct formats if video format is set to RGB24 or Y800 in device settings or in Sink type. The video format RGB32 is not avialbale in my camera's (DFK 21F04) device settings dialog. Is it a camera problem or I am doing something wrong?

EDIT: I debugged my application and found out that Grabber's format is correctly reported in Listener while I am unable to get the correct format of Sink in the Listener. Here is how I created my Sink



DShowLib::FrameHandlerSink::tFHSPtr pSink = DShowLib::FrameHandlerSink::create(DShowLib::eUYVY );
pSink->setSnapMode(false);
pSink->setSinkMode(GrabberSinkType::eRUN);

m_Grabber.setSinkType(pSink);
m_Grabber.setOverlayBitmapPathPosition(DShowLib::e PP_NONE);


Thanks,
Steven