23 lines
416 B
C++
23 lines
416 B
C++
#include "mediafourcc.h"
|
|
|
|
#include "../mediaformat.h"
|
|
|
|
namespace Media {
|
|
|
|
namespace Fourccs {
|
|
|
|
/*!
|
|
* \brief Returns the media format for the specified \a fourcc.
|
|
*/
|
|
MediaFormat fourccToMediaFormat(uint32 fourcc) {
|
|
switch(fourcc) {
|
|
case XvidMpeg4:
|
|
return MediaFormat(GeneralMediaFormat::Mpeg4Video, SubFormats::Mpeg4Asp);
|
|
default: return MediaFormat(); // TODO: cover more FOURCCs
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|