Esempio n. 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);
        }
Esempio n. 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;
        }
Esempio n. 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;
 }
Esempio n. 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;
        }
Esempio n. 5
0
 internal AudioTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
Esempio n. 6
0
 internal UnkownTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
Esempio n. 7
0
 internal SubtitleTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }
Esempio n. 8
0
 protected MediaTrack(Interop.Media.MediaTrack mediaTrack)
 {
     Initialize(mediaTrack);
 }
Esempio n. 9
0
 internal VideoTrack(Interop.Media.MediaTrack mediaTrack) : base(mediaTrack)
 {
 }