How to debug frame by frame source filter ?

How to debug frame by frame source filter ?

Post by VG9teX » Tue, 15 May 2007 19:29:01


Hi

My source filter works good without any breakpoint in "fillbufer" function.
But when I insert breakpoint into "fillbufer" function of my filter in
output window of visual studio 2005 C++ apperas: dropframe. The same effect
is when I stop fillbufer function by windows application (COM).
I`d like to change frame by frame by button of my application.
The problem is like I described above (debug mode) in output window of
visual studio 2005 C++ apperas: dropframe

HRESULT CVCamStream::FillBuffer(IMediaSample *pms)
{
.
.
data_video *d_video;// structure of container video frame (mjpg)

d_video=(data_video*) my_CPtrFIFO->Consume();// wait for jpg frame is ready
/// when waiting is too long in visual studio 2005 output control window
apperas: dropframe

memcpy(pData, d_video->pointer_data,d_video->count_byte);

pms->SetSyncPoint(true);
pms->SetDiscontinuity(true);
.
.
}

the "pms" sample is not time-stamped and media times are not set on this
sample.

It is posible to show frame by frame without "dropframe" in that method ?

tomys
 
 
 

How to debug frame by frame source filter ?

Post by Iain Down » Wed, 16 May 2007 01:34:59


I'm not entirely sure I understand your issue, but if you set the graph
SychSOurce to null, you can pause for debug as long as you want


Iain

 
 
 

How to debug frame by frame source filter ?

Post by VG9teX » Wed, 16 May 2007 03:23:00


How to set it ?
tomys
 
 
 

How to debug frame by frame source filter ?

Post by Iain Down » Wed, 16 May 2007 04:58:07


See 'Setting the Graph Clock' in the docs.

iain