public static ulong ReadTimestampAndSkip(Stream stream) { var header = VideoFramesFileWriter.ReadHeader(stream); stream.SkipBytes(header.DataLength); return((ulong)header.Timestamp); }
public static VideoFrameRecord Read(Stream stream, ulong index) { VideoFramesFileWriter.Read(stream, out var timestamp, out var frame); return(new VideoFrameRecord(frame, index, (ulong)timestamp)); }