MCPcopy Create free account
hub / github.com/IENT/YUView / getCodecTypeName

Method getCodecTypeName

YUViewLib/src/ffmpeg/AVStreamWrapper.cpp:249–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249QString 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
265AVCodecID AVStreamWrapper::getCodecID()
266{

Calls 1

getCodecTypeMethod · 0.45

Tested by

no test coverage detected