예제 #1
0
 public MediaEncoder(string filePath, VideoTrackAttributes videoAttrs, AudioTrackAttributes[] audioAttrs)
 {
     this.m_Ptr = this.Create(filePath, new VideoTrackAttributes[]
     {
         videoAttrs
     }, audioAttrs);
 }
예제 #2
0
        private IntPtr Create(
            string filePath, VideoTrackAttributes videoAttrs, AudioTrackAttributes[] audioAttrs)
        {
            VideoTrackEncoderAttributes videoEncoderAttrs = new VideoTrackEncoderAttributes(videoAttrs);

            return(Create(filePath, videoEncoderAttrs, audioAttrs));
        }
예제 #3
0
 internal VideoTrackEncoderAttributes(VideoTrackAttributes videoAttrs) : this()
 {
     frameRate       = videoAttrs.frameRate;
     width           = videoAttrs.width;
     height          = videoAttrs.height;
     includeAlpha    = videoAttrs.includeAlpha;
     bitRateMode     = videoAttrs.bitRateMode;
     vp8.alphaLayout = videoAttrs.alphaLayout;
 }
예제 #4
0
 public MediaEncoder(string filePath, VideoTrackAttributes videoAttrs)
     : this(filePath, videoAttrs, new AudioTrackAttributes[0])
 {
 }
예제 #5
0
 public MediaEncoder(
     string filePath, VideoTrackAttributes videoAttrs, AudioTrackAttributes audioAttrs)
     : this(filePath, videoAttrs, new[] { audioAttrs })
 {
 }
예제 #6
0
 public MediaEncoder(
     string filePath, VideoTrackAttributes videoAttrs, AudioTrackAttributes[] audioAttrs)
 {
     m_ThisPtr = Create(filePath, new[] { videoAttrs }, audioAttrs);
 }