|
8 | 8 |
|
9 | 9 | from __future__ import annotations
|
10 | 10 |
|
11 |
| -import enum |
12 | 11 | import typing
|
13 | 12 | from dataclasses import dataclass
|
14 | 13 |
|
|
42 | 41 | __all__ = [
|
43 | 42 | "Array",
|
44 | 43 | "CalibrationInfo",
|
45 |
| - "RangeStyle", |
46 |
| - "LogStyle", |
47 |
| - "ExponentStyle", |
48 | 44 | "SOPNode",
|
49 | 45 | "SatNode",
|
50 | 46 | "Info",
|
@@ -232,175 +228,6 @@ def from_xml(
|
232 | 228 | return CalibrationInfo(**attributes)
|
233 | 229 |
|
234 | 230 |
|
235 |
| -class RangeStyle(enum.Enum): |
236 |
| - """ |
237 |
| - Represent the valid values of the *style* attribute of a |
238 |
| - :class:`colour_clf_io.Range` *Process Node*. |
239 |
| -
|
240 |
| - Attributes |
241 |
| - ---------- |
242 |
| - - :attr:`~colour_clf_io.RangeStyle.CLAMP` |
243 |
| - - :attr:`~colour_clf_io.RangeStyle.NO_CLAMP` |
244 |
| -
|
245 |
| - References |
246 |
| - ---------- |
247 |
| - - https://docs.acescentral.com/specifications/clf/#range |
248 |
| - """ |
249 |
| - |
250 |
| - CLAMP = "Clamp" |
251 |
| - """ |
252 |
| - Clamping is applied upon the result of the scale and offset expressed by |
253 |
| - the result of the non-clamping Range equation.""" |
254 |
| - |
255 |
| - NO_CLAMP = "noClamp" |
256 |
| - """ |
257 |
| - Scale and offset is applied without clamping (i.e., values below |
258 |
| - minOutValue or above maxOutValue are preserved). |
259 |
| - """ |
260 |
| - |
261 |
| - |
262 |
| -class LogStyle(enum.Enum): |
263 |
| - """ |
264 |
| - Represent the valid values of the *style* attribute of a |
265 |
| - :class:`colour_clf_io.Log` *Process Node*. |
266 |
| -
|
267 |
| - Attributes |
268 |
| - ---------- |
269 |
| - - :attr:`~colour_clf_io.LogStyle.LOG_10` |
270 |
| - - :attr:`~colour_clf_io.LogStyle.ANTI_LOG_10` |
271 |
| - - :attr:`~colour_clf_io.LogStyle.LOG_2` |
272 |
| - - :attr:`~colour_clf_io.LogStyle.ANTI_LOG_2` |
273 |
| - - :attr:`~colour_clf_io.LogStyle.LIN_TO_LOG` |
274 |
| - - :attr:`~colour_clf_io.LogStyle.LOG_TO_LIN` |
275 |
| - - :attr:`~colour_clf_io.LogStyle.CAMERA_LIN_TO_LOG` |
276 |
| - - :attr:`~colour_clf_io.LogStyle.CAMERA_LOG_TO_LIN` |
277 |
| -
|
278 |
| - References |
279 |
| - ---------- |
280 |
| - - https://docs.acescentral.com/specifications/clf/#processList |
281 |
| - """ |
282 |
| - |
283 |
| - LOG_10 = "log10" |
284 |
| - """Apply a base 10 logarithm.""" |
285 |
| - |
286 |
| - ANTI_LOG_10 = "antiLog10" |
287 |
| - """Apply a base 10 anti-logarithm.""" |
288 |
| - |
289 |
| - LOG_2 = "log2" |
290 |
| - """Apply a base 2 logarithm.""" |
291 |
| - |
292 |
| - ANTI_LOG_2 = "antiLog2" |
293 |
| - """Apply a base 2 anti-logarithm.""" |
294 |
| - |
295 |
| - LIN_TO_LOG = "linToLog" |
296 |
| - """Apply a logarithm.""" |
297 |
| - |
298 |
| - LOG_TO_LIN = "logToLin" |
299 |
| - """Apply an anti-logarithm.""" |
300 |
| - |
301 |
| - CAMERA_LIN_TO_LOG = "cameraLinToLog" |
302 |
| - """ |
303 |
| - Apply a piecewise function with logarithmic and linear segments on linear |
304 |
| - values, converting them to non-linear values. |
305 |
| - """ |
306 |
| - |
307 |
| - CAMERA_LOG_TO_LIN = "cameraLogToLin" |
308 |
| - """ |
309 |
| - Applies a piecewise function with logarithmic and linear segments on |
310 |
| - non-linear values, converting them to linear values. |
311 |
| - """ |
312 |
| - |
313 |
| - |
314 |
| -class ExponentStyle(enum.Enum): |
315 |
| - """ |
316 |
| - Represent the valid values of the *style* attribute of a |
317 |
| - :class:`colour_clf_io.Exponent` *Process Node*. |
318 |
| -
|
319 |
| - Attributes |
320 |
| - ---------- |
321 |
| - - :attr:`~colour_clf_io.ExponentStyle.BASIC_FWD` |
322 |
| - - :attr:`~colour_clf_io.ExponentStyle.BASIC_REV` |
323 |
| - - :attr:`~colour_clf_io.ExponentStyle.BASIC_MIRROR_FWD` |
324 |
| - - :attr:`~colour_clf_io.ExponentStyle.BASIC_MIRROR_REV` |
325 |
| - - :attr:`~colour_clf_io.ExponentStyle.BASIC_PASS_THRU_FWD` |
326 |
| - - :attr:`~colour_clf_io.ExponentStyle.BASIC_PASS_THRU_REV` |
327 |
| - - :attr:`~colour_clf_io.ExponentStyle.MON_CURVE_FWD` |
328 |
| - - :attr:`~colour_clf_io.ExponentStyle.MON_CURVE_REV` |
329 |
| - - :attr:`~colour_clf_io.ExponentStyle.MON_CURVE_MIRROR_FWD` |
330 |
| - - :attr:`~colour_clf_io.ExponentStyle.MON_CURVE_MIRROR_REV` |
331 |
| -
|
332 |
| - References |
333 |
| - ---------- |
334 |
| - - https://docs.acescentral.com/specifications/clf/#exponent |
335 |
| - """ |
336 |
| - |
337 |
| - BASIC_FWD = "basicFwd" |
338 |
| - """ |
339 |
| - Apply a power law using the exponent value specified in the ExponentParams |
340 |
| - element. |
341 |
| - """ |
342 |
| - |
343 |
| - BASIC_REV = "basicRev" |
344 |
| - """ |
345 |
| - Apply a power law using the exponent value specified in the ExponentParams |
346 |
| - element. |
347 |
| - """ |
348 |
| - |
349 |
| - BASIC_MIRROR_FWD = "basicMirrorFwd" |
350 |
| - """ |
351 |
| - Apply a basic power law using the exponent value specified in the |
352 |
| - ExponentParams element for values greater than or equal to zero and mirror |
353 |
| - the function for values less than zero (i.e., rotationally symmetric around |
354 |
| - the origin). |
355 |
| - """ |
356 |
| - |
357 |
| - BASIC_MIRROR_REV = "basicMirrorRev" |
358 |
| - """ |
359 |
| - Apply a basic power law using the exponent value specified in the |
360 |
| - ExponentParams element for values greater than or equal to zero and mirror |
361 |
| - the function for values less than zero (i.e., rotationally symmetric around |
362 |
| - the origin). |
363 |
| - """ |
364 |
| - |
365 |
| - BASIC_PASS_THRU_FWD = "basicPassThruFwd" # noqa: S105 |
366 |
| - """ |
367 |
| - Apply a basic power law using the exponent value specified in the |
368 |
| - ExponentParams element for values greater than or equal to zero and passes |
369 |
| - values less than zero unchanged. |
370 |
| - """ |
371 |
| - |
372 |
| - BASIC_PASS_THRU_REV = "basicPassThruRev" # noqa: S105 |
373 |
| - """ |
374 |
| - Apply a basic power law using the exponent value specified in the |
375 |
| - ExponentParams element for values greater than or equal to zero and passes |
376 |
| - values less than zero unchanged. |
377 |
| - """ |
378 |
| - |
379 |
| - MON_CURVE_FWD = "monCurveFwd" |
380 |
| - """ |
381 |
| - Apply a power law function with a linear segment near the origin. |
382 |
| - """ |
383 |
| - |
384 |
| - MON_CURVE_REV = "monCurveRev" |
385 |
| - """ |
386 |
| - Apply a power law function with a linear segment near the origin. |
387 |
| - """ |
388 |
| - |
389 |
| - MON_CURVE_MIRROR_FWD = "monCurveMirrorFwd" |
390 |
| - """ |
391 |
| - Apply a power law function with a linear segment near the origin and |
392 |
| - mirror the function for values less than zero (i.e., rotationally symmetric |
393 |
| - around the origin). |
394 |
| - """ |
395 |
| - |
396 |
| - MON_CURVE_MIRROR_REV = "monCurveMirrorRev" |
397 |
| - """ |
398 |
| - Apply a power law function with a linear segment near the origin and mirror |
399 |
| - the function for values less than zero (i.e., rotationally symmetric around |
400 |
| - the origin). |
401 |
| - """ |
402 |
| - |
403 |
| - |
404 | 231 | @dataclass
|
405 | 232 | class SOPNode(XMLParsable):
|
406 | 233 | """
|
|
0 commit comments