4 #include <QCoreApplication>
26 bool offset = (
m_data[3] & 0xf8) == 0x80;
27 return m_data + ((offset) ? 4 : 3);
35 bool offset = (
m_data[3] & 0xf8) == 0x80;
40 uint compression_type)
const
79 if (properties_raw.contains(
"6|CC"))
82 if (properties_raw.contains(
"7|Stereo"))
89 QString
prefix = QString(
"");
101 else if (
m_data[2] == 0x7d)
103 else if (
m_data[2] == 0x7e)
115 QString
id = QString(
"%1%2%3").arg(
prefix, series).arg(episode, 4, 0);
122 QString
prefix = QString(
"");
129 else if (
m_data[2] == 0x7d)
131 else if (
m_data[2] == 0x7e)
137 ((
m_data[6] & 0xc0) >> 0x06);
139 QString
id = QString(
"%1%2").arg(
prefix).arg(series, 8, 0);
146 std::array<uint8_t,5> mjd {};
178 case 0x01:
return 1.0 / 4;
179 case 0x02:
return 1.5 / 4;
180 case 0x03:
return 2.0 / 4;
181 case 0x04:
return 2.5 / 4;
182 case 0x05:
return 3.0 / 4;
183 case 0x06:
return 3.5 / 4;
184 case 0x07:
return 4.0 / 4;
208 QStringList advisories;
211 advisories.append(
"S");
213 advisories.append(
"L");
215 advisories.append(
"mQ");
217 advisories.append(
"FV");
219 advisories.append(
"V");
221 advisories.append(
"mK");
223 advisories.append(
"N");
225 return advisories.join(
",");
267 QStringList advisories;
270 advisories.append(
"FV");
272 advisories.append(
"V");
274 advisories.append(
"S");
276 advisories.append(
"L");
278 advisories.append(
"D");
280 return advisories.join(
",");
306 static const std::array<const std::string,kThemeLast> s_themes =
308 "",
"Movie",
"Sports",
"News/Business",
"Family/Children",
"Education",
309 "Series/Special",
"Music/Art",
"Religious",
"Off-Air"
313 return QString::fromStdString(s_themes[theme_type]);
320 static const std::array<const std::string,kThemeLast> s_themes
322 "",
"Movie",
"Sports",
"News/Business",
"Family/Children",
"Education",
323 "Series/Special",
"Music/Art",
"Religious",
"Off-Air"
326 for (
uint i = 1; i < 10; i++)
327 if (theme_type.toStdString() == s_themes[i])
357 QMap<uint,QString>::const_iterator it =
500 "Holiday-children special");
662 "Hydroplane racing");
666 "Motorcycle racing");
706 "Mixed martial arts");