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