Files
fastfetch/src/common/edidHelper.h
T

14 lines
763 B
C
Raw Normal View History

2023-08-08 20:23:26 +08:00
#pragma once
#include <stdint.h>
2026-01-06 09:48:38 +08:00
#include "common/FFstrbuf.h"
2023-08-08 20:23:26 +08:00
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);
2023-08-09 13:25:22 +08:00
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);
2023-08-14 20:26:08 +08:00
bool ffEdidGetHdrCompatible(const uint8_t* edid, uint32_t length);
2026-03-13 09:39:28 +08:00
bool ffEdidIsValid(const uint8_t edid[128], uint32_t length);