<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>Hi guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i attempted to write the h.264videoframer. Can you guy help me take a look? I am super noivce in this area but thanks to the many help provided so far.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2>// Additional Implementation for H264videostreamframer</FONT></DIV>
<DIV><FONT size=2>void H264VideoStreamFramer::doGetNextFrame() {<BR> <BR> // Try to read as many bytes as will fit in the buffer provided<BR> // (or "fPreferredFrameSize" if less)<BR> if (fPreferredFrameSize > 0 && fPreferredFrameSize < fMaxSize) {<BR> fMaxSize = fPreferredFrameSize;<BR> }</FONT></DIV>
<DIV><FONT size=2> fFrameSize = g_video_enc_rbuf->read(fTo,fMaxSize,0); //g_video_enc_rbuf is a ring buffer which contains the encoded video</FONT></DIV>
<DIV><BR><FONT size=2> <BR> // Record the current time as the 'presentation time':<BR> gettimeofday(&fPresentationTime, NULL);</FONT></DIV>
<DIV><FONT size=2>}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>I have problem understanding and writing the "currentNALUnitEndsAccessUnit()". Can someone provide more information on this?</DIV>
<DIV> </DIV>
<DIV>Many thanks in advanced.</DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV> </DIV>
<DIV>zkunhui</DIV></BODY></HTML>