annotate src/track/constants.cc @ 101:c537996cf67b

*: multitude of config changes 1. theme is now configurable from the settings menu (but you have to restart for it to apply) 2. config is now stored in an INI file, with no method of conversion from json (this repo is private-ish anyway)
author Paper <mrpapersonic@gmail.com>
date Fri, 03 Nov 2023 14:06:02 -0400
parents f5940a575d83
children 39521c47c7a3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
1 #include "track/constants.h"
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
2
83
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 82
diff changeset
3 // clang-format off
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 82
diff changeset
4 // https://github.com/llvm/llvm-project/issues/62676
100
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
5
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
6 /* right now, these are just const vectors, but eventually
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
7 I'll make a class to manage these and make them disableable */
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
8 const std::vector<std::string> media_extensions = {
100
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
9 "mkv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
10 "mp4",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
11 "m4v", /* apple's stupid DRM thing */
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
12 "avi",
100
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
13 "webm", /* matroska's retarded inbred cousin */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
14 /* QuickTime */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
15 "mov",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
16 "qt",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
17 /* MPEG transport stream */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
18 "mts",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
19 "m2ts",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
20 "ts",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
21 /* MPEG-1, typically not used for anime */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
22 "mpg",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
23 "mp2",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
24 "mpeg",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
25 "mpe",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
26 "mpv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
27 /* MPEG-2 */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
28 "m2v"
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
29 /* 3GPP */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
30 "3gp",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
31 "3g2",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
32 /* Windows Media */
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
33 "asf",
100
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
34 "wmv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
35 /* Adobe Flash */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
36 "flv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
37 "swf", /* not exactly a video format */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
38 /* Ogg Video */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
39 "ogv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
40 /* RealPlayer (who tf uses this?) */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
41 "rm",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
42 "rmvb",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
43 /* Nullsoft Streaming Video (Winamp) */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
44 "nsv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
45 /* Material Exchange Format (Sony?) */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
46 "mxf"
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
47 };
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
48
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
49 const std::vector<std::string> media_players = {
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
50 #ifdef MACOSX
97
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents: 83
diff changeset
51 "VLC", "IINA", "QuickTime Player"
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
52 #elif WIN32
83
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 82
diff changeset
53 "vlc.exe", "mpc-hc.exe", "mpc-hc64.exe", "wmplayer.exe", "mpv.exe"
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
54 #else // linux, unix, whatevs
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
55 "vlc", "mpv", "mpc-qt"
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
56 #endif
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
57 };
83
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 82
diff changeset
58 // clang-format on