/// <summary> /// Reads the full box properties from stream. /// </summary> /// <param name="reader">The binary reader with the stream.</param> protected override void ReadFullBoxPropertiesFromStream(BoxBinaryReader reader) { switch (this.Version) { case 1: this.BaseMediaDecodeTime = reader.ReadInt64(); break; case 0: this.BaseMediaDecodeTime = reader.ReadInt32(); break; } }
/// <summary> /// Initializes a new instance of the <see cref="VideoInfoHeader2"/> class. /// </summary> /// <param name="reader">The box binary reader.</param> public VideoInfoHeader2(BoxBinaryReader reader) { this.SourceRectangle = new Rectangle(reader); this.TargetRectangle = new Rectangle(reader); this.BitRate = reader.ReadInt32(); this.BitErrorRate = reader.ReadInt32(); this.AverageTimePerFrame = reader.ReadInt64(); this.Interlace = (InterlaceFlags)reader.ReadInt32(); this.CopyProtect = (CopyProtectFlags)reader.ReadInt32(); this.PictureAspectRatioX = reader.ReadInt32(); this.PictureAspectRatioY = reader.ReadInt32(); this.Control = (ControlFlags)reader.ReadInt32(); this.Reserved2 = reader.ReadInt32(); this.BitmapInformationHeader = new BitmapInfonHeader(reader); }