Exemple #1
0
        public static ulong ReadTimestampAndSkip(Stream stream)
        {
            var header = VideoFramesFileWriter.ReadHeader(stream);

            stream.SkipBytes(header.DataLength);
            return((ulong)header.Timestamp);
        }
Exemple #2
0
 public static VideoFrameRecord Read(Stream stream, ulong index)
 {
     VideoFramesFileWriter.Read(stream, out var timestamp, out var frame);
     return(new VideoFrameRecord(frame, index, (ulong)timestamp));
 }