mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
output: add wlr_output_mode.picture_aspect_ratio
CTA-861-H defines a picture aspect ratio which may be attached to each mode. This affects the way the sink will display the image. See annexes H.1 and H.2 for examples.
This commit is contained in:
parent
68c8cef38e
commit
2178573b0a
1 changed files with 9 additions and 0 deletions
|
@ -17,10 +17,19 @@
|
|||
#include <wlr/types/wlr_buffer.h>
|
||||
#include <wlr/util/addon.h>
|
||||
|
||||
enum wlr_output_mode_aspect_ratio {
|
||||
WLR_OUTPUT_MODE_ASPECT_RATIO_NONE,
|
||||
WLR_OUTPUT_MODE_ASPECT_RATIO_4_3,
|
||||
WLR_OUTPUT_MODE_ASPECT_RATIO_16_9,
|
||||
WLR_OUTPUT_MODE_ASPECT_RATIO_64_27,
|
||||
WLR_OUTPUT_MODE_ASPECT_RATIO_256_135,
|
||||
};
|
||||
|
||||
struct wlr_output_mode {
|
||||
int32_t width, height;
|
||||
int32_t refresh; // mHz
|
||||
bool preferred;
|
||||
enum wlr_output_mode_aspect_ratio picture_aspect_ratio;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue