mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-25 21:59:08 +01:00
06a05c83c0
Use the newly-introduced di_logger to report CTA failures. Signed-off-by: Simon Ser <contact@emersion.fr>
39 lines
706 B
C
39 lines
706 B
C
#ifndef CTA_H
|
|
#define CTA_H
|
|
|
|
/**
|
|
* Private header for the low-level CTA API.
|
|
*/
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include <libdisplay-info/cta.h>
|
|
|
|
struct di_edid_cta {
|
|
int revision;
|
|
struct di_edid_cta_flags flags;
|
|
|
|
/* NULL-terminated */
|
|
struct di_cta_data_block *data_blocks[128];
|
|
size_t data_blocks_len;
|
|
|
|
struct di_logger *logger;
|
|
};
|
|
|
|
struct di_cta_data_block {
|
|
enum di_cta_data_block_tag tag;
|
|
|
|
/* Used for DI_CTA_DATA_BLOCK_COLORIMETRY */
|
|
struct di_cta_colorimetry_block colorimetry;
|
|
};
|
|
|
|
bool
|
|
_di_edid_cta_parse(struct di_edid_cta *cta, const uint8_t *data, size_t size,
|
|
struct di_logger *logger);
|
|
|
|
void
|
|
_di_edid_cta_finish(struct di_edid_cta *cta);
|
|
|
|
#endif
|