Exemple #1
0
            public void Initialize(MovieEncoderConfigs c, DataPath p)
            {
                string path = p.GetFullPath() + "/" + m_name;

                c.Setup(m_rt.width, m_rt.height, m_channels, m_targetFramerate);
                m_encoder = MovieEncoder.Create(c, path);
            }
Exemple #2
0
        public static MovieEncoder Create(MovieEncoderConfigs c, string path)
        {
            var ret = Create(c.format);

            switch (c.format)
            {
            case Type.Png: ret.Initialize(c.pngEncoderSettings, path); break;

            case Type.Exr: ret.Initialize(c.exrEncoderSettings, path); break;

            case Type.Gif: ret.Initialize(c.gifEncoderSettings, path); break;

            case Type.WebM: ret.Initialize(c.webmEncoderSettings, path); break;

            case Type.MP4: ret.Initialize(c.mp4EncoderSettings, path); break;
            }
            return(ret);
        }