aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/libgamma-method.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-01 05:38:58 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-01 05:38:58 +0200
commit9f8c3fb80740d91074b4b08a2cd4e6a729c17086 (patch)
treeb7eec53a1fe4280e922607cfca46f6287e0c55e2 /src/lib/libgamma-method.h
parentm + m fixes + doc (diff)
downloadlibgamma-9f8c3fb80740d91074b4b08a2cd4e6a729c17086.tar.gz
libgamma-9f8c3fb80740d91074b4b08a2cd4e6a729c17086.tar.bz2
libgamma-9f8c3fb80740d91074b4b08a2cd4e6a729c17086.tar.xz
m + m doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/lib/libgamma-method.h')
-rw-r--r--src/lib/libgamma-method.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/libgamma-method.h b/src/lib/libgamma-method.h
index 8496631..df95f87 100644
--- a/src/lib/libgamma-method.h
+++ b/src/lib/libgamma-method.h
@@ -542,6 +542,42 @@ typedef enum libgamma_subpixel_order
*/
#define LIBGAMMA_CRTC_INFO_COUNT 13
+/**
+ * Macro for all `libgamma_crtc_information_t` fields
+ * that can be filled if the adjustment method have
+ * support for reading the monitors' Extended Display
+ * Information Data.
+ */
+#define LIBGAMMA_CRTC_INFO_MACRO_EDID ( LIBGAMMA_CRTC_INFO_EDID \
+ | LIBGAMMA_CRTC_INFO_WIDTH_MM_EDID \
+ | LIBGAMMA_CRTC_INFO_HEIGHT_MM_EDID \
+ | LIBGAMMA_CRTC_INFO_GAMMA )
+
+/**
+ * Macro for both `libgamma_crtc_information_t` fields
+ * that can specify the size of the monitors viewport
+ * is provided by the adjustment method without this
+ * library having to parse the monitor's Extended Display
+ * Information Data.
+ */
+#define LIBGAMMA_CRTC_INFO_MACRO_VIEWPORT (LIBGAMMA_CRTC_INFO_WIDTH_MM | LIBGAMMA_CRTC_INFO_HEIGHT_MM)
+
+/**
+ * Macro for the `libgamma_crtc_information_t` fields
+ * that specifies the CRTC's gamma ramp sizes and gamma
+ * ramp depth.
+ */
+#define LIBGAMMA_CRTC_INFO_MACRO_RAMP (LIBGAMMA_CRTC_INFO_GAMMA_SIZE | LIBGAMMA_CRTC_INFO_GAMMA_DEPTH)
+
+/**
+ * Macro for the `libgamma_crtc_information_t` fields
+ * that specifies the CRTC's connector type and the
+ * partition unique name of the connector.
+ */
+#define LIBGAMMA_CRTC_INFO_MACRO_CONNECTOR ( LIBGAMMA_CRTC_INFO_CONNECTOR_NAME \
+ | LIBGAMMA_CRTC_INFO_CONNECTOR_TYPE )
+
+
/**
* Cathode ray tube controller information data structure.