| 247 | } |
| 248 | |
| 249 | QString AVStreamWrapper::getCodecTypeName() |
| 250 | { |
| 251 | auto type = this->codecpar.getCodecType(); |
| 252 | if (type > AVMEDIA_TYPE_NB) |
| 253 | return {}; |
| 254 | |
| 255 | auto names = QStringList() << "Unknown" |
| 256 | << "Video" |
| 257 | << "Audio" |
| 258 | << "Data" |
| 259 | << "Subtitle" |
| 260 | << "Attachment" |
| 261 | << "NB"; |
| 262 | return names[type + 1]; |
| 263 | } |
| 264 | |
| 265 | AVCodecID AVStreamWrapper::getCodecID() |
| 266 | { |
no test coverage detected