protected override void LoadFromStream(Stream stream) { base.LoadFromStream(stream); Width = stream.ReadBEUInt32(); Height = stream.ReadBEUInt32(); }
protected override void LoadFromStream(Stream stream) { base.LoadFromStream(stream); if (Version == 1) { CreationTime = MovieHeaderBox.Convert1904Time(stream.ReadBEUInt64()); ModificationTime = MovieHeaderBox.Convert1904Time(stream.ReadBEUInt64()); TrackID = stream.ReadBEUInt32(); Reserved1 = stream.ReadBEUInt32(); Duration = stream.ReadBEUInt64(); } else // if (Version == 0) { CreationTime = MovieHeaderBox.Convert1904Time(stream.ReadBEUInt32()); ModificationTime = MovieHeaderBox.Convert1904Time(stream.ReadBEUInt32()); TrackID = stream.ReadBEUInt32(); Reserved1 = stream.ReadBEUInt32(); Duration = stream.ReadBEUInt32(); } Reserved2 = stream.ReadBEUInt64(); Layer = stream.ReadBEInt16(); AlternateGroup = stream.ReadBEInt16(); Volume = stream.ReadBEInt16(); Reserved3 = stream.ReadBEUInt16(); for (int i = 0; i < 9; i++) { Matrix[i] = stream.ReadBEInt32(); } Width = stream.ReadBEUInt32(); Height = stream.ReadBEUInt32(); }