protected override void Initialize(Interop.Media.MediaTrack mediaTrack) { base.Initialize(mediaTrack); var subtitleTrack = (Interop.Media.SubtitleTrack)Marshal.PtrToStructure(Track, typeof(Interop.Media.SubtitleTrack)); Encoding = InteropHelper.PtrToString(subtitleTrack.Encoding); }
protected override void Initialize(Interop.Media.MediaTrack mediaTrack) { base.Initialize(mediaTrack); var audioTrack = (Interop.Media.AudioTrack)Marshal.PtrToStructure(Track, typeof(Interop.Media.AudioTrack)); Channels = audioTrack.Channels; Rate = audioTrack.Rate; }
protected virtual void Initialize(Interop.Media.MediaTrack mediaTrack) { Codec = mediaTrack.Codec; OriginalFourcc = mediaTrack.OriginalFourcc; Id = mediaTrack.Id; Type = mediaTrack.Type; Profile = mediaTrack.Profile; Level = mediaTrack.Level; Bitrate = mediaTrack.Bitrate; Language = InteropHelper.PtrToString(mediaTrack.Language); Description = InteropHelper.PtrToString(mediaTrack.Description); Track = mediaTrack.Track; }
protected override void Initialize(Interop.Media.MediaTrack mediaTrack) { base.Initialize(mediaTrack); var videoTrack = (Interop.Media.VideoTrack)Marshal.PtrToStructure(Track, typeof(Interop.Media.VideoTrack)); Height = videoTrack.Height; Width = videoTrack.Width; SarNum = videoTrack.SarNum; SarDen = videoTrack.SarDen; FrameRateNum = videoTrack.FrameRateNum; FrameRateDen = videoTrack.FrameRateDen; }
internal AudioTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack) { }
internal UnkownTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack) { }
internal SubtitleTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack) { }
protected MediaTrack(Interop.Media.MediaTrack mediaTrack) { Initialize(mediaTrack); }
internal VideoTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack) { }