aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-09-05 16:49:11 +0200
committerSimon Ser <contact@emersion.fr>2022-09-22 09:36:59 +0200
commit2178573b0a5a8160564da1fd85c1f16f7d4d7bdd (patch)
treede2ea21e88f4cf3738b6e99fce3d64d8915fb6fc /include/wlr
parent68c8cef38edafa5e52532e0b43a4888554168361 (diff)
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.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 01a9d49f..c69a4a2b 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -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;
};