master ohmu/fastfetch-openbsd / src / common / edidHelper.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include <stdint.h>
 4#include "common/FFstrbuf.h"
 5
 6void ffEdidGetVendorAndModel(const uint8_t edid[128], FFstrbuf* result);
 7bool ffEdidGetName(const uint8_t edid[128], FFstrbuf* name);
 8void ffEdidGetPreferredResolutionAndRefreshRate(const uint8_t edid[128], uint32_t* width, uint32_t* height, double* refreshRate);
 9void ffEdidGetPhysicalResolution(const uint8_t edid[128], uint32_t* width, uint32_t* height);
10void ffEdidGetPhysicalSize(const uint8_t edid[128], uint32_t* width, uint32_t* height); // in mm
11void ffEdidGetManufactureDate(const uint8_t edid[128], uint16_t* year, uint16_t* week);
12bool ffEdidGetSerial(const uint8_t edid[128], FFstrbuf* result);
13bool ffEdidGetHdrCompatible(const uint8_t* edid, uint32_t length);
14bool ffEdidIsValid(const uint8_t edid[128], uint32_t length);