comparison src/track/constants.cc @ 100:f5940a575d83

track/constants: add many more video formats
author Paper <mrpapersonic@gmail.com>
date Fri, 03 Nov 2023 09:43:04 -0400
parents 18979b066284
children 39521c47c7a3
comparison
equal deleted inserted replaced
99:503bc1547d49 100:f5940a575d83
1 #include "track/constants.h" 1 #include "track/constants.h"
2 2
3 // clang-format off 3 // clang-format off
4 // https://github.com/llvm/llvm-project/issues/62676 4 // https://github.com/llvm/llvm-project/issues/62676
5
6 /* right now, these are just const vectors, but eventually
7 I'll make a class to manage these and make them disableable */
5 const std::vector<std::string> media_extensions = { 8 const std::vector<std::string> media_extensions = {
9 "mkv",
10 "mp4",
11 "m4v", /* apple's stupid DRM thing */
6 "avi", 12 "avi",
13 "webm", /* matroska's retarded inbred cousin */
14 /* QuickTime */
15 "mov",
16 "qt",
17 /* MPEG transport stream */
18 "mts",
19 "m2ts",
20 "ts",
21 /* MPEG-1, typically not used for anime */
22 "mpg",
23 "mp2",
24 "mpeg",
25 "mpe",
26 "mpv",
27 /* MPEG-2 */
28 "m2v"
29 /* 3GPP */
30 "3gp",
31 "3g2",
32 /* Windows Media */
7 "asf", 33 "asf",
8 "mp4", 34 "wmv",
9 "mkv", 35 /* Adobe Flash */
10 "wmv" 36 "flv",
37 "swf", /* not exactly a video format */
38 /* Ogg Video */
39 "ogv",
40 /* RealPlayer (who tf uses this?) */
41 "rm",
42 "rmvb",
43 /* Nullsoft Streaming Video (Winamp) */
44 "nsv",
45 /* Material Exchange Format (Sony?) */
46 "mxf"
11 }; 47 };
12 48
13 const std::vector<std::string> media_players = { 49 const std::vector<std::string> media_players = {
14 #ifdef MACOSX 50 #ifdef MACOSX
15 "VLC", "IINA", "QuickTime Player" 51 "VLC", "IINA", "QuickTime Player"