summaryrefslogtreecommitdiffstats
path: root/src/common/edidHelper.h
diff options
context:
space:
mode:
authorsumuel <samuel@yakubos.org>2026-08-17 20:44:55 +0000
committersumuel <samuel@yakubos.org>2026-08-17 20:44:55 +0000
commit76424950e373d3b04ac3dd13019151bfba3e8423 (patch)
tree4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/common/edidHelper.h
Add the files
Diffstat (limited to 'src/common/edidHelper.h')
-rw-r--r--src/common/edidHelper.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/common/edidHelper.h b/src/common/edidHelper.h
new file mode 100644
index 0000000..dc4e4fb
--- /dev/null
+++ b/src/common/edidHelper.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <stdint.h>
+#include "common/FFstrbuf.h"
+
+void ffEdidGetVendorAndModel(const uint8_t edid[128], FFstrbuf* result);
+bool ffEdidGetName(const uint8_t edid[128], FFstrbuf* name);
+void ffEdidGetPreferredResolutionAndRefreshRate(const uint8_t edid[128], uint32_t* width, uint32_t* height, double* refreshRate);
+void ffEdidGetPhysicalResolution(const uint8_t edid[128], uint32_t* width, uint32_t* height);
+void ffEdidGetPhysicalSize(const uint8_t edid[128], uint32_t* width, uint32_t* height); // in mm
+void ffEdidGetSerialAndManufactureDate(const uint8_t edid[128], uint32_t* serial, uint16_t* year, uint16_t* week);
+bool ffEdidGetHdrCompatible(const uint8_t* edid, uint32_t length);
+bool ffEdidIsValid(const uint8_t edid[128], uint32_t length);