PDA

View Full Version : save eY8 - monochrome



Unregistered
May 30, 2002, 10:18:09
In the Visual C++ Demo, DemoApp i will save 265-greylevel-bmp-images (as 8bit), with a Sony X900-firewire-camera (filesize 787510 byte).

I changed in the file Mainfrm.cpp:

m_Grabber.setSinktype( FrameGrabbersink( FrameGrabberSink:: tFrameGrabberMode::eSNAP ) );

to

m_Grabber.setSinktype( FrameGrabbersink( FrameGrabberSink:: tFrameGrabberMode::eSNAP, eY8 ) );

the saved bmp-file are three channels with this code (filesize 2.359.350 Bytes), What I´m doing wrong. Who is the error?


This message was originally posted by Frank Schreiber in the old IC Imaging Control Support Forum.

Unregistered
May 31, 2002, 08:50:32
Hi Frank,

move the line

m_Grabber.setSinktype( FrameGrabbersink( FrameGrabberSink:: tFrameGrabberMode::eSNAP, eY8 ) );

downwards to
if ( m_CurrentVideoCaptureDevice != "" )
{
m_Grabber.openDev( m_CurrentVideoCaptureDevice );
m_Grabber.setSinkType( DShowLib::FrameGrabberSink(
DShowLib::FrameGrabberSink::tFrameGrabberMode::eSN AP,
DShowLib::eY8 ));

Then the sinktypformat will stored in the grabber object.

Best regards
Stefan
IC Support


This message was originally posted by IC Support in the old IC Imaging Control Support Forum.