Monday, February 25, 2008

Things to Be Done in RTP Source Filter

Things to be done in RTP source Filter :
----------------------------------------
1.Dynamic width and height configuration
2.Handling Error checking
3.Render Based on Time stamp
4.Put the Event for receiving repeated video frames
like this:
FillBuffer()
{
while(1)
{
RTPReceiveVideo();
if( HasMPEG4Frames() == TRUE)
{
SetEvent( m_hManualEvent);
break;
}
}
WaitForSingleObject(m_hManualEvent,INFINITE);
GetMpeg4Frame(&pbRTPData,&pbRTPPacketSize);
pMediaSample->GetPointer(&pbData);
memcpy(pbData,pbRTPData, pbRTPPacketSize);
ResetEvent(m_hEvent);
}

Labels:

0 Comments:

Post a Comment

<< Home