#pragma once

#ifndef FF_INCLUDED_EDID_HELPER_H
#define FF_INCLUDED_EDID_HELPER_H

#include <stdint.h>
#include "util/FFstrbuf.h"

void ffEdidGetVendorAndModel(const uint8_t edid[128], FFstrbuf* result);
bool ffEdidGetName(const uint8_t edid[128], FFstrbuf* name);
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
bool ffEdidGetHdrCompatible(const uint8_t* edid, uint32_t length);

#endif
