aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma.7
blob: a59c9ae9157735b9e06abf7e0d4529fbbc1bda45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
.TH LIBGAMMA 7 LIBGAMMA
.SH NAME
libgamma - Display server abstraction layer for gamma ramps

.SH DESCRIPTION
.B libgamma
is a C library that aims to abstract away the display server
when adjusting the colours curves for monitors via gamma ramps.

.B libgamma
have support for the RandR (Resize and Rotate) extension for X,
the VidMode extension for X and under Linux the Direct Rendering
Manager which lets software work with graphics outside of
graphical environments. Additionally
.B libgamma
have support for Windows Graphics Device Interface (Windows GDI)
under Windows and Quartz using CoreGraphics under OS X. However
Windows GDI and Quartz/CoreGraphics do not receive first-party
testing on their target platforms but do receive first-party
testing using a compatibility layer that translates the calls to
RandR calls. Neither does
.BR libgamma ,
currently, receive testing on any of the BSD:s, it is only tested
on Linux. Furthermore
.B libgamma
provides a dummy adjustment method.


.SH JARGON
.B libgamma
uses a small jargon, parts of which is loaned from X.org
and redshift, and some is commonly used jargon.
.TP
.BR "adjustment method" " [redshift]"
A combination of the display server and a protocol used to
tell to the display server.
.TP
.BR "display server" " [X.org]"
The program used to display graphical elements to the
monitors. In
.B libgamma
we also call the non-graphical environment a display server.
.TP
.BR "display" " [X.org]"
.TQ
.BR "site" " [libgamma]"
An instance of a display server. Non-graphical environment are
only covered by \(aqsite\(aq.
.TP
.BR "screen" " [X.org]"
A group of CRTC:s within a display.
.TP
.B CRTC
.TQ
.B cathode ray tube controller
Controller for the output on monitor. The mapping from CRTC:s
to encoders is an injection.
.TP
.B monitor
The physical medium used to display text and graphics.
.TP
.BR "partition" " [libgamma]"
Umbrella term for \(aqscreen\(aq and \(aqgraphics card\(aq.
.TP
.BR "page" " [libgamma]"
The desktop workspace or virtual terminal that is displayed
on a CRTC. (This jargon is not currently used, but is reserved
for future features.)
.TP
.BR "output" " [X.org]"
A connector and its encoder.
.TP
.B connector
Physical port on the graphics card where a monitor can be
plugged in. If and only if the connector is disabled it does
not have a port and does not have a CRTC.
.TP
.B encoder
Translation layer between CRTC:s and connectors.
.TP
.B gamma ramp
.TQ
.B colour curve
.TQ
.B CLUT
.TQ
.B colour lookup table
A lookup table that translates an encoded value for a subpixel
into its output value.
.TP
.B subpixel
.TQ
.B colour channel
One of the three colours that makes up a pixel: red, green or blue.
.TP
.B gamma ramp size
.TQ
.B gamma stops
The number of possible values on the encoding axis of a gamma ramp.

.SH SEE ALSO
.BR libgamma_behex_edid (3),
.br
.BR libgamma_behex_edid_lowercase (3),
.br
.BR libgamma_behex_edid_uppercase (3),
.br
.BR libgamma_connector_type_count (3),
.br
.BR libgamma_const_of_connector_type (3),
.br
.BR libgamma_const_of_method (3),
.br
.BR libgamma_const_of_subpixel_order (3),
.br
.BR libgamma_crtc_destroy (3),
.br
.BR libgamma_crtc_free (3),
.br
.BR libgamma_crtc_get_gamma_ramps8 (3),
.br
.BR libgamma_crtc_get_gamma_ramps16 (3),
.br
.BR libgamma_crtc_get_gamma_ramps32 (3),
.br
.BR libgamma_crtc_get_gamma_ramps64 (3),
.br
.BR libgamma_crtc_get_gamma_rampsf (3),
.br
.BR libgamma_crtc_get_gamma_rampsd (3),
.br
.BR libgamma_crtc_info_count (3),
.br
.BR libgamma_crtc_information_destroy (3),
.br
.BR libgamma_crtc_information_free (3),
.br
.BR libgamma_crtc_initialise (3),
.br
.BR libgamma_crtc_restore (3),
.br
.BR libgamma_crtc_set_gamma_ramps8 (3),
.br
.BR libgamma_crtc_set_gamma_ramps16 (3),
.br
.BR libgamma_crtc_set_gamma_ramps32 (3),
.br
.BR libgamma_crtc_set_gamma_ramps64 (3),
.br
.BR libgamma_crtc_set_gamma_rampsf (3),
.br
.BR libgamma_crtc_set_gamma_rampsd (3),
.br
.BR libgamma_crtc_set_gamma_ramps8_f (3),
.br
.BR libgamma_crtc_set_gamma_ramps16_f (3),
.br
.BR libgamma_crtc_set_gamma_ramps32_f (3),
.br
.BR libgamma_crtc_set_gamma_ramps64_f (3),
.br
.BR libgamma_crtc_set_gamma_rampsf_f (3),
.br
.BR libgamma_crtc_set_gamma_rampsd_f (3),
.br
.BR libgamma_error_min (3),
.br
.BR libgamma_gamma_ramps8_destroy (3),
.br
.BR libgamma_gamma_ramps16_destroy (3),
.br
.BR libgamma_gamma_ramps32_destroy (3),
.br
.BR libgamma_gamma_ramps64_destroy (3),
.br
.BR libgamma_gamma_rampsf_destroy (3),
.br
.BR libgamma_gamma_rampsd_destroy (3),
.br
.BR libgamma_gamma_ramps8_free (3),
.br
.BR libgamma_gamma_ramps16_free (3),
.br
.BR libgamma_gamma_ramps32_free (3),
.br
.BR libgamma_gamma_ramps64_free (3),
.br
.BR libgamma_gamma_rampsf_free (3),
.br
.BR libgamma_gamma_rampsd_free (3),
.br
.BR libgamma_gamma_ramps8_initialise (3),
.br
.BR libgamma_gamma_ramps16_initialise (3),
.br
.BR libgamma_gamma_ramps32_initialise (3),
.br
.BR libgamma_gamma_ramps64_initialise (3),
.br
.BR libgamma_gamma_rampsf_initialise (3),
.br
.BR libgamma_gamma_rampsd_initialise (3),
.br
.BR libgamma_get_crtc_information (3),
.br
.BR libgamma_group_gid (3),
.br
.BR libgamma_group_name (3),
.br
.BR libgamma_is_method_available (3),
.br
.BR libgamma_list_methods (3),
.br
.BR libgamma_method_capabilities (3),
.br
.BR libgamma_method_count (3),
.br
.BR libgamma_method_default_site (3),
.br
.BR libgamma_method_default_site_variable (3),
.br
.BR libgamma_name_of_connector_type (3),
.br
.BR libgamma_name_of_error (3),
.br
.BR libgamma_name_of_method (3),
.br
.BR libgamma_name_of_subpixel_order (3),
.br
.BR libgamma_partition_destroy (3),
.br
.BR libgamma_partition_free (3),
.br
.BR libgamma_partition_initialise (3),
.br
.BR libgamma_partition_restore (3),
.br
.BR libgamma_perror (3),
.br
.BR libgamma_site_destroy (3),
.br
.BR libgamma_site_free (3),
.br
.BR libgamma_site_initialise (3),
.br
.BR libgamma_site_restore (3),
.br
.BR libgamma_strerror (3),
.br
.BR libgamma_strerror_r (3),
.br
.BR libgamma_subpixel_order_count (3),
.br
.BR libgamma_unhex_edid (3),
.br
.BR libgamma_value_of_connector_type (3),
.br
.BR libgamma_value_of_error (3),
.br
.BR libgamma_value_of_method (3),
.br
.BR libgamma_value_of_subpixel_order (3)