<div>Oh. Seems I was misguided! Thanks Ross.</div>
<div> </div>
<div>From looking at examples in the code, if I were to use fInputSource->getNextFrame(), it looks like I would do my processing in afterGettingFrame() then, correct?<br> </div>
<div>I wouldnt know how many bytes to tell the getNextFrame() call to get, though, since I have just a delimited elemtary stream coming from the file.</div>
<div> </div>
<div>Im thinking that telling getNextFrame to get 1 byte at a time wouldnt be very efficient, but I need to check one byte at a time for the 3-byte delimiter. </div>
<div> </div>
<div>Am I still a little lost about my thinking?</div>
<div> </div>
<div>-j.<br> </div>
<div><span class="gmail_quote">On 5/2/07, <b class="gmail_sendername">Ross Finlayson</b> <<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">>Doesn't turnOnBackgroundReadHandling() require a file<br>>descriptor/scoket as it's first argument?
<br><br>Yes, but you should never need to call that function.<br>"ByteStreamFileSource" does that automatically..<br><br>> my doGetNextFrame() func calls turnOnBackgroundReadHandling()<br><br>No, don't do this. Your "H264VideoStreamFramer" subclass is a
<br>filter. It doesn't know anything about files. You *initialiize*<br>your subclass with your "ByteStreamFileSource" object (as the<br>"inputSource" argument).<br><br>Then, in the implementation of your "doGetNextFrame()" function, call
<br> fInputSource->getNextFrame( ... );<br>to read from your source object (which just happens, in your case, to<br>be a "ByteStreamFileSource").<br><br>Note that there are several examples of this in the code.
<br>--<br><br>Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a><br>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">
live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a><br></blockquote></div><br>