annotate src/track/constants.cc @ 119:4eae379cb1ff

settings: add a very early recognition tab for configuring players and extensions
author Paper <mrpapersonic@gmail.com>
date Wed, 08 Nov 2023 13:50:00 -0500
parents 39521c47c7a3
children
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
100
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
3 /* 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
4 I'll make a class to manage these and make them disableable */
118
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
5
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
6 namespace Track {
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
7 namespace Constants {
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
8
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
9 const std::vector<std::string> default_media_extensions = {
100
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
10 "mkv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
11 "mp4",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
12 "m4v", /* apple's stupid DRM thing */
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
13 "avi",
100
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
14 "webm", /* matroska's retarded inbred cousin */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
15 /* QuickTime */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
16 "mov",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
17 "qt",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
18 /* MPEG transport stream */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
19 "mts",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
20 "m2ts",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
21 "ts",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
22 /* MPEG-1, typically not used for anime */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
23 "mpg",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
24 "mp2",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
25 "mpeg",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
26 "mpe",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
27 "mpv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
28 /* MPEG-2 */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
29 "m2v"
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
30 /* 3GPP */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
31 "3gp",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
32 "3g2",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
33 /* Windows Media */
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
34 "asf",
100
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
35 "wmv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
36 /* Adobe Flash */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
37 "flv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
38 "swf", /* not exactly a video format */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
39 /* Ogg Video */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
40 "ogv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
41 /* RealPlayer (who tf uses this?) */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
42 "rm",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
43 "rmvb",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
44 /* Nullsoft Streaming Video (Winamp) */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
45 "nsv",
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
46 /* Material Exchange Format (Sony?) */
f5940a575d83 track/constants: add many more video formats
Paper <mrpapersonic@gmail.com>
parents: 97
diff changeset
47 "mxf"
82
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
118
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
50 const std::vector<std::string> default_media_players = {
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
51 #ifdef MACOSX
97
18979b066284 animia/unix: fix a bunch of stuff that breaks OS X things
Paper <mrpapersonic@gmail.com>
parents: 83
diff changeset
52 "VLC", "IINA", "QuickTime Player"
82
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
53 #elif WIN32
83
d02fdf1d6708 *: huuuge update
Paper <mrpapersonic@gmail.com>
parents: 82
diff changeset
54 "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
55 #else // linux, unix, whatevs
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
56 "vlc", "mpv", "mpc-qt"
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
57 #endif
8b65c417c225 *: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
58 };
118
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
59
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
60 }
39521c47c7a3 *: another huge megacommit, SORRY
Paper <mrpapersonic@gmail.com>
parents: 100
diff changeset
61 }