ToP
June 17, 2004, 09:01:08
Hello,
for image processing I read the Old Thread (http://www.theimagingsourceforums.com/showthread.php?s=&threadid=313424). But I have a problem with the function setSinkType(...eGRAB...)
If I call befor startLive() then i get no images, if I don't use it or after startLive() I get images.
( There are no problems with setSinkType(...eSNAP...) )
------------------------------------------------------------
...
m_pGrabber.addListener(&m_cOverlayCallback, DShowLib::GrabberListener::eOVERLAYCALLBACK);
DShowLib::Grabber::tVidFmtListPtr pVideoFormats = m_pGrabber.getAvailableVideoFormats();
int formatIndex = 0;
m_pGrabber.setVideoFormat( (*pVideoFormats) [formatIndex] );
m_pGrabber.setHWND( GetSafeHwnd() );
smart_ptr<DShowLib::OverlayBitmap> ob;
ob = m_pGrabber.getOverlay();
ob->setEnable(true);
m_pGrabber.startLive();
...
---------------------------------------------------------
Do I need this function setSinkType (why?) and why does it not work?
Thanks
Torsten
for image processing I read the Old Thread (http://www.theimagingsourceforums.com/showthread.php?s=&threadid=313424). But I have a problem with the function setSinkType(...eGRAB...)
If I call befor startLive() then i get no images, if I don't use it or after startLive() I get images.
( There are no problems with setSinkType(...eSNAP...) )
------------------------------------------------------------
...
m_pGrabber.addListener(&m_cOverlayCallback, DShowLib::GrabberListener::eOVERLAYCALLBACK);
DShowLib::Grabber::tVidFmtListPtr pVideoFormats = m_pGrabber.getAvailableVideoFormats();
int formatIndex = 0;
m_pGrabber.setVideoFormat( (*pVideoFormats) [formatIndex] );
m_pGrabber.setHWND( GetSafeHwnd() );
smart_ptr<DShowLib::OverlayBitmap> ob;
ob = m_pGrabber.getOverlay();
ob->setEnable(true);
m_pGrabber.startLive();
...
---------------------------------------------------------
Do I need this function setSinkType (why?) and why does it not work?
Thanks
Torsten