public virtual IEnumerable <byte[]> FrameIterator() { foreach (var pf in Files) { _frameFile = pf; foreach (var frame in _frameFile.FrameIterator()) { yield return(frame); } _frameFile = null; } }
private bool Read(FrameFile ff) { if (_fc1 < 0) { if (!ff.Read(_buf1)) { return(false); } _fc1 = FrameAccessor.FrameCount(_buf1); return(true); } if (_fc2 < 0) { if (!ff.Read(_buf2)) { return(false); } _fc2 = FrameAccessor.FrameCount(_buf2); return(true); } throw new Exception("No free frame buffers"); }