summaryrefslogtreecommitdiff
path: root/src/helpers/Format.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/Format.hpp')
-rw-r--r--src/helpers/Format.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/helpers/Format.hpp b/src/helpers/Format.hpp
index a1ef53f5..8269c5c3 100644
--- a/src/helpers/Format.hpp
+++ b/src/helpers/Format.hpp
@@ -1,7 +1,9 @@
#pragma once
#include <cstdint>
+#include <string>
#include "math/Math.hpp"
+#include <aquamarine/backend/Misc.hpp>
typedef uint32_t DRMFormat;
typedef uint32_t SHMFormat;
@@ -18,10 +20,7 @@ struct SPixelFormat {
Vector2D blockSize;
};
-struct SDRMFormat {
- uint32_t format = 0;
- std::vector<uint64_t> mods;
-};
+typedef Aquamarine::SDRMFormat SDRMFormat;
namespace FormatUtils {
SHMFormat drmToShm(DRMFormat drm);
@@ -34,4 +33,6 @@ namespace FormatUtils {
int minStride(const SPixelFormat* const fmt, int32_t width);
uint32_t drmFormatToGL(DRMFormat drm);
uint32_t glFormatToType(uint32_t gl);
+ std::string drmFormatName(DRMFormat drm);
+ std::string drmModifierName(uint64_t mod);
};