mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-25 21:59:08 +01:00
4ead11c64b
Signed-off-by: Simon Ser <contact@emersion.fr>
37 lines
970 B
C
37 lines
970 B
C
#ifndef DMT_H
|
|
#define DMT_H
|
|
|
|
/**
|
|
* Private header for VESA Display Monitor Timing.
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
|
|
struct di_dmt_timing {
|
|
/* DMT ID */
|
|
uint8_t dmt_id;
|
|
/* EDID standard timing 2-byte code, zero if unset */
|
|
uint16_t edid_std_id;
|
|
/* CVT 3-byte code, zero if unset */
|
|
uint32_t cvt_id;
|
|
/* Addressable pixels */
|
|
int32_t horiz_video, vert_video;
|
|
/* Field Refresh Rate in Hz */
|
|
float refresh_rate_hz;
|
|
/* Pixel clock in Hz */
|
|
int32_t pixel_clock_hz;
|
|
/* Horizontal/Vertical Blanking in pixels/lines */
|
|
int32_t horiz_blank, vert_blank;
|
|
/* Horizontal/Vertical Front Porch in pixels/lines */
|
|
int32_t horiz_front_porch, vert_front_porch;
|
|
/* Horizontal/Vertical Sync Pulse Width in pixels/lines */
|
|
int32_t horiz_sync_pulse, vert_sync_pulse;
|
|
/* Horizontal/Vertical Border in pixels/lines */
|
|
int32_t horiz_border, vert_border;
|
|
};
|
|
|
|
extern const struct di_dmt_timing _di_dmt_timings[];
|
|
extern const size_t _di_dmt_timings_len;
|
|
|
|
#endif
|