#include "FormatUtils.hpp" #include #include std::string fourccToName(uint32_t drmFormat) { auto fmt = drmGetFormatName(drmFormat); std::string name = fmt ? fmt : "unknown"; free(fmt); return name; }