using System.Text; namespace UMP { public class MediaTrackInfoVideo : MediaTrackInfoExpanded { private readonly int _trackWidth; private readonly int _trackHeight; /// /// Create new unknown track info. /// /// Track ID /// Track Codec (fourcc) /// Track Profile /// Track Level /// Track Video Width /// Track Video Height internal MediaTrackInfoVideo(int trackId, int trackCodec, int trackProfile, int trackLevel, int trackWidth, int trackHeight) : base(trackId, trackCodec, trackProfile, trackLevel) { _trackWidth = trackWidth; _trackHeight = trackHeight; } /// /// Get the video width. /// public int Width { get { return _trackWidth; } } /// /// Get the video height. /// public int Height { get { return _trackHeight; } } public override string ToString() { StringBuilder sb = new StringBuilder(200); sb.Append(base.ToString()).Append('['); sb.Append("WIDTH=").Append(_trackWidth).Append(", "); sb.Append("HEIGHT=").Append(_trackHeight).Append(']'); return sb.ToString(); } } }