Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 413d1c29 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm: add picture aspect ratio flags"

parents 814ce2f5 dfd7f4cb
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
@@ -80,6 +80,20 @@ extern "C" {
#define  DRM_MODE_FLAG_SUPPORTS_RGB		(1<<20)
#define  DRM_MODE_FLAG_SUPPORTS_YUV		(1<<21)

/* Picture aspect ratio options */
#define DRM_MODE_PICTURE_ASPECT_NONE		0
#define DRM_MODE_PICTURE_ASPECT_4_3		1
#define DRM_MODE_PICTURE_ASPECT_16_9		2

/* Aspect ratio flag bitmask (4 bits 27:24) */
#define DRM_MODE_FLAG_PIC_AR_MASK		(0x0F<<24)
#define  DRM_MODE_FLAG_PIC_AR_NONE \
			(DRM_MODE_PICTURE_ASPECT_NONE<<24)
#define  DRM_MODE_FLAG_PIC_AR_4_3 \
			(DRM_MODE_PICTURE_ASPECT_4_3<<24)
#define  DRM_MODE_FLAG_PIC_AR_16_9 \
			(DRM_MODE_PICTURE_ASPECT_16_9<<24)

/* DPMS flags */
/* bit compatible with the xorg definitions. */
#define DRM_MODE_DPMS_ON	0
@@ -94,11 +108,6 @@ extern "C" {
#define DRM_MODE_SCALE_CENTER		2 /* Centered, no scaling */
#define DRM_MODE_SCALE_ASPECT		3 /* Full screen, preserve aspect */

/* Picture aspect ratio options */
#define DRM_MODE_PICTURE_ASPECT_NONE	0
#define DRM_MODE_PICTURE_ASPECT_4_3	1
#define DRM_MODE_PICTURE_ASPECT_16_9	2

/* Dithering mode options */
#define DRM_MODE_DITHERING_OFF	0
#define DRM_MODE_DITHERING_ON	1