2021-10-22 23:10:47 +02:00
|
|
|
#ifndef TYPES_WLR_OUTPUT_H
|
|
|
|
#define TYPES_WLR_OUTPUT_H
|
|
|
|
|
|
|
|
#include <wlr/render/drm_format_set.h>
|
|
|
|
#include <wlr/types/wlr_output.h>
|
|
|
|
|
2022-05-24 19:29:02 +02:00
|
|
|
void output_pending_resolution(struct wlr_output *output,
|
|
|
|
const struct wlr_output_state *state, int *width, int *height);
|
2022-05-24 19:43:56 +02:00
|
|
|
void output_state_attach_buffer(struct wlr_output_state *state,
|
|
|
|
struct wlr_buffer *buffer);
|
2022-09-21 16:16:53 +02:00
|
|
|
bool output_is_direct_scanout(struct wlr_output *output,
|
|
|
|
struct wlr_buffer *buffer);
|
2021-10-22 23:10:47 +02:00
|
|
|
|
|
|
|
struct wlr_drm_format *output_pick_format(struct wlr_output *output,
|
2021-11-11 04:54:04 +01:00
|
|
|
const struct wlr_drm_format_set *display_formats, uint32_t format);
|
2021-10-22 23:10:47 +02:00
|
|
|
void output_clear_back_buffer(struct wlr_output *output);
|
2022-05-24 19:43:56 +02:00
|
|
|
bool output_ensure_buffer(struct wlr_output *output,
|
2022-06-03 00:15:42 +02:00
|
|
|
const struct wlr_output_state *state, bool *new_back_buffer);
|
2021-10-22 23:10:47 +02:00
|
|
|
|
|
|
|
#endif
|