Mercurial > minori
view src/track/constants.cc @ 187:9613d72b097e
*: multiple performance improvements
like marking `static const` when it makes sense...
date: change old stupid heap-based method to a structure which should
make copying the thing actually make a copy.
also many performance-based changes, like removing the std::tie
dependency and forward-declaring nlohmann json
*: replace every instance of QString::fromUtf8 to Strings::ToQString.
the main difference is that our function will always convert exactly
what is in the string, while some other times it would only convert
up to the nearest NUL byte
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 06 Dec 2023 13:43:54 -0500 |
| parents | 39521c47c7a3 |
| children |
line wrap: on
line source
#include "track/constants.h" /* right now, these are just const vectors, but eventually I'll make a class to manage these and make them disableable */ namespace Track { namespace Constants { const std::vector<std::string> default_media_extensions = { "mkv", "mp4", "m4v", /* apple's stupid DRM thing */ "avi", "webm", /* matroska's retarded inbred cousin */ /* QuickTime */ "mov", "qt", /* MPEG transport stream */ "mts", "m2ts", "ts", /* MPEG-1, typically not used for anime */ "mpg", "mp2", "mpeg", "mpe", "mpv", /* MPEG-2 */ "m2v" /* 3GPP */ "3gp", "3g2", /* Windows Media */ "asf", "wmv", /* Adobe Flash */ "flv", "swf", /* not exactly a video format */ /* Ogg Video */ "ogv", /* RealPlayer (who tf uses this?) */ "rm", "rmvb", /* Nullsoft Streaming Video (Winamp) */ "nsv", /* Material Exchange Format (Sony?) */ "mxf" }; const std::vector<std::string> default_media_players = { #ifdef MACOSX "VLC", "IINA", "QuickTime Player" #elif WIN32 "vlc.exe", "mpc-hc.exe", "mpc-hc64.exe", "wmplayer.exe", "mpv.exe" #else // linux, unix, whatevs "vlc", "mpv", "mpc-qt" #endif }; } }
