mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 15:26:00 +01:00
9 lines
200 B
C++
9 lines
200 B
C++
|
#include "FormatUtils.hpp"
|
||
|
#include <drm_fourcc.h>
|
||
|
#include <xf86drm.h>
|
||
|
|
||
|
std::string fourccToName(uint32_t drmFormat) {
|
||
|
auto fmt = drmGetFormatName(drmFormat);
|
||
|
return fmt ? fmt : "unknown";
|
||
|
}
|