Esempio n. 1
0
 public virtual IEnumerable <byte[]> FrameIterator()
 {
     foreach (var pf in Files)
     {
         _frameFile = pf;
         foreach (var frame in _frameFile.FrameIterator())
         {
             yield return(frame);
         }
         _frameFile = null;
     }
 }
Esempio n. 2
0
 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");
 }