示例#1
0
        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);
        }
示例#2
0
        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;
        }
示例#3
0
 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;
 }
示例#4
0
        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;
        }
示例#5
0
 internal AudioTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
示例#6
0
 internal UnkownTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
示例#7
0
 internal SubtitleTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
示例#8
0
 protected MediaTrack(Interop.Media.MediaTrack mediaTrack)
 {
     Initialize(mediaTrack);
 }
示例#9
0
 internal VideoTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }