3#ifdef VIDEO_STANDARD_PAL
22constexpr int kUploadDateSize = 7;
25constexpr int kUploadPartSize = 30;
39inline void SplitUploadName(
const char *pszName,
char *pszDate,
char *pszSong,
char *pszTitle) {
40 constexpr int kPrefixLength = 2;
41 constexpr int kDateLength = 6;
42 constexpr int kSeparatorLength = 1;
43 constexpr int kShadesSongLength = 15;
44 const char *p = pszName + kPrefixLength;
45 std::strncpy(pszDate, p, kDateLength);
46 p += kDateLength + kSeparatorLength;
47 const size_t nSong = std::strcspn(p,
"_");
48 std::strncpy(pszSong, p, nSong);
49 if (std::strcmp(pszSong,
"SHADES") == 0) {
50 p += kShadesSongLength;
51 std::strcpy(pszSong,
"SHADES_OF");
53 p += nSong + kSeparatorLength;
55 std::strncpy(pszTitle, p, std::strcspn(p,
"."));