Exemplo n.º 1
0
 /// <summary>
 /// Initializes an instance of <see cref="MuxedStreamInfo"/>.
 /// </summary>
 public MuxedStreamInfo(
     int tag,
     string url,
     Container container,
     FileSize size,
     Bitrate bitrate,
     string audioCodec,
     string videoCodec,
     string videoQualityLabel,
     VideoQuality videoQuality,
     VideoResolution resolution,
     Framerate framerate)
 {
     Tag               = tag;
     Url               = url;
     Container         = container;
     Size              = size;
     Bitrate           = bitrate;
     AudioCodec        = audioCodec;
     VideoCodec        = videoCodec;
     VideoQualityLabel = videoQualityLabel;
     VideoQuality      = videoQuality;
     Resolution        = resolution;
     Framerate         = framerate;
 }
Exemplo n.º 2
0
        /// <inheritdoc />
        public int CompareTo(VideoQuality other)
        {
            var maxHeightComparison = MaxHeight.CompareTo(other.MaxHeight);
            var framerateComparison = Framerate.CompareTo(other.Framerate);

            return(maxHeightComparison != 0
                ? maxHeightComparison
                : framerateComparison);
        }
Exemplo n.º 3
0
 private void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this);
     }
     else
     {
         instance = this;
         DontDestroyOnLoad(this);
     }
 }
Exemplo n.º 4
0
        public override string BuildArguments()
        {
            string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture);

            return
                ("-y " +                      //Yes to override existing files
                 $"-framerate {framerate} " + // Frmaerate in
                 $"-i \"{InputFile}\" " +     // Input File
                 $"-r {framerate} " +         // Framerate out
                 "-vcodec libx264 -crf 0 " +
                 $"\"{OutputFile}\"");
        }
        public override string BuildArguments()
        {
            string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture);

            return
                ("-y " +                                     //Yes to override existing files
                 $"-ss {StartTimeSpan:hh\\:mm\\:ss\\.ff} " + // Starting Position
                 $"-i \"{InputFile}\" " +                    // Input File
                 $"-t {Duration:hh\\:mm\\:ss\\.ff} " +       // Duration
                 $"-r {framerate} " +
                 "-vf " +                                    // video filter parameters" +
                 $"\"setpts=PTS-STARTPTS, hqdn3d=10, scale = {Width}:{Height}\" " +
                 "-vcodec libx264 -crf 0 " +
                 $"\"{OutputFile}\"");
        }
Exemplo n.º 6
0
        /// <summary>
        /// Initializes new Demo testbed.
        /// </summary>
        public DemoGame()
        {
            _graphics = new GraphicsDeviceManager(this);
            _content  = new ContentManager(Services);
            //graphics.SynchronizeWithVerticalRetrace = false;

            IsMouseVisible       = true;
            _camera              = new Camera(this);
            _fps                 = new Framerate(this);
            _fps.UpdateFrequency = 100;
            Components.Add(_camera);
            Components.Add(_fps);

            ResetPhysics();
        }
Exemplo n.º 7
0
 public static PluginsLoader GetInstance()
 {
     Config.GetInstance();
     DrawGrid.GetInstance();
     UICommandQueue.GetInstance().InitFromGlThread();
     HeightMapPersistence.GetInstance();
     SlopeMapPersistence.GetInstance();
     MouseFilterSdlMouseCache.GetInstance();
     KeyFilterSdlKeyCache.GetInstance();
     KeyFilterConfigMappingsFactory.GetInstance();
     MainUI.GetInstance();
     HeightEditor.GetInstance();
     Camera.GetInstance();
     Framerate.GetInstance();
     FrustrumCulling.GetInstance();
     return(instance);
 }
        public override string BuildArguments()
        {
            string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture);

            return
                ("-y " +                                     //Yes to override existing files
                 $"-ss {StartTimeSpan:hh\\:mm\\:ss\\.ff} " + // Starting Position
                 $"-i \"{InputFile}\" " +                    // Input File
                 $"-t {Duration:hh\\:mm\\:ss\\.ff} " +       // Duration
                 $"-r {framerate} " +
                 "-vf " +                                    // video filter parameters" +
                 $"\"" +
                 $"setpts=PTS-STARTPTS, hqdn3d=10" +
                 (ClipLeft ? $", stereo3d=sbsl:ml" : "") + // de-3D
                 // (DeLense ? $", lenscorrection=k1=0:k2=-0.33" : "") +
                 (ClipLeft ? $", scale = {Width / 2}:{Height}" : $", scale = {Width}:{Height}") +
                 "\" " +
                 (ClipLeft ? "-metadata:s:v:0 stereo_mode=\"mono\" " : "") + //de-3D
                 "-vcodec libx264 -crf 0 " +
                 $"\"{OutputFile}\"");
        }
Exemplo n.º 9
0
 void OnGUI()
 {
     GUI.skin.label.normal.textColor = Color.white;
     GUI.Label(new Rect(16.0f, 0.0f, 128.0f, 24.0f), Framerate.Fps().ToString());
 }
Exemplo n.º 10
0
 void Update()
 {
     //Ocean.AdjustPitch();
     //Ocean.SetSoundPositionRelativeToViewer();
     Framerate.Update();
 }
Exemplo n.º 11
0
 public static void SetDefaultProjectFramerate(Framerate framerate)
 {
     defaultProjectFramerate = (int)framerate;
 }
Exemplo n.º 12
0
        public override string BuildArguments()
        {
            string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture);

            return($"-stats -y -r {framerate} -i \"{InputFile}\" -i \"{PaletteFile}\" -filter_complex paletteuse -plays 0 \"{OutputFile}\"");
        }