Beispiel #1
0
        protected override void ApplySettings(Camera camera)
        {
            base.ApplySettings(camera);

            GifEncoderSettings settings = RecordingUnit.Encoder.Settings;

            settings.Colors          = m_Colors;
            settings.UseLocalPalette = m_UseLocalPalette;
        }
Beispiel #2
0
        private static fcAPI.fcGIFContext CreateContext(GifEncoderSettings settings)
        {
            fcAPI.fcGifConfig config;
            config.width            = settings.ResolutionWidth;
            config.height           = settings.ResolutionHeight;
            config.num_colors       = settings.Colors;
            config.max_active_tasks = 0;

            return(fcAPI.fcGifCreateContext(ref config));
        }
Beispiel #3
0
 public GifEncoder(GifEncoderSettings settings = null)
 {
     Settings = settings;
 }