| 1234567891011121314151617181920212223242526 |
- #ifndef __DISPLAY_H__
- #define __DISPLAY_H__
- #include <stdint.h>
- typedef struct Display Display;
- Display *display_create(const char *drm_dev);
- void display_destroy(Display *disp);
- int display_init(Display *disp, int width, int height);
- int display_commit(Display *disp, int fd, int stride);
- /* Force the connector output color format used at the next first modeset.
- * 0=auto, 1=RGB, 2=YCbCr444, 3=YCbCr422, 4=YCbCr420. */
- int display_set_color_format(int fmt);
- int display_get_width(Display *disp);
- int display_get_height(Display *disp);
- /* Poll the DRM connector state. Returns 1 when the monitor is gone (signal
- * lost, e.g. an HDMI switch pointing elsewhere), 0 while connected, -1 on
- * error. Cheap (one GetConnector), safe to call each frame. */
- int display_signal_lost(Display *disp);
- #endif
|