File: defaults.vala

package info (click to toggle)
peek 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,768 kB
  • sloc: xml: 234; sh: 85; python: 69; makefile: 14
file content (41 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
Peek Copyright (c) 2017-2018 by Philipp Wolfer <ph.wolfer@gmail.com>

This file is part of Peek.

This software is licensed under the GNU General Public License
(version 3 or later). See the LICENSE file in this distribution.
*/

namespace Peek {

  const string APP_ID = "com.uploadedlobster.peek";

  const int DEFAULT_FRAMERATE = 15;
  const int DEFAULT_DOWNSAMPLE = 1;
  const int DEFAULT_GIFSKI_QUALITY = 60;

  const string ISSUE_TRACKER_URL = "https://github.com/phw/peek/issues/new";

  public enum OutputFormat {
    APNG,
    GIF,
    MP4,
    WEBM;

    public string to_string() {
      switch (this) {
        case APNG:
          return "apng";
        case GIF:
          return "gif";
        case WEBM:
          return "webm";
        case MP4:
          return "mp4";
        default:
          assert_not_reached ();
      }
    }
  }
}