Skip to content

Instantly share code, notes, and snippets.

View remia's full-sized avatar

Rémi Achard remia

View GitHub Profile
diff --git a/lib/IlmCtlSimd/CtlSimdInst.cpp b/lib/IlmCtlSimd/CtlSimdInst.cpp
index 4d329fc..fc5ff8f 100644
--- a/lib/IlmCtlSimd/CtlSimdInst.cpp
+++ b/lib/IlmCtlSimd/CtlSimdInst.cpp
@@ -189,7 +189,7 @@ SimdInst::executePath (SimdBoolMask &mask, SimdXContext &xcontext) const
REPLACE_EXC
(e, "\n" <<
xcontext.fileName() << ":" <<
- inst->lineNumber() << ": " << e);
+ inst->lineNumber() << ": " << e.what());
import colour
import numpy as np
import matplotlib.pyplot as plt
np.set_printoptions(suppress=True)
"""
Example shader generated by ocio v1, using Troy's config untouched, lutsize is 32
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
build-essential \
devscripts \
fakeroot \
python -m clairmeta.cli check -type dcp tests/resources/DCP/ECL-SET/ECL39-SINGLE-CPL-LVLS_TST_C_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV
2020-09-01 19:44:40,577 - Clairmeta - INFO - Probing DCP : tests/resources/DCP/ECL-SET/ECL39-SINGLE-CPL-LVLS_TST_C_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV
2020-09-01 19:44:40,745 - Clairmeta - INFO - Total time : 0.17 seconds
2020-09-01 19:44:40,843 - Clairmeta - INFO - Checking DCP : tests/resources/DCP/ECL-SET/ECL39-SINGLE-CPL-LVLS_TST_C_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV
2020-09-01 19:44:40,941 - Clairmeta - INFO - DCP : tests/resources/DCP/ECL-SET/ECL39-SINGLE-CPL-LVLS_TST_C_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV
2020-09-01 19:44:40,941 - Clairmeta - INFO - Size : 42.09 MiB
2020-09-01 19:44:40,941 - Clairmeta - INFO - Error(s):
+ CPL_ECL39-SINGLE-CPL-LVLS_TST_C_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV.xml (ECL39-SINGLE-CPL-LVLS_TST_C_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV)
. CPL reel attributes shall be coherents across all reels.
python -m clairmeta.cli probe -type dcp tests/resources/DCP/ECL-SET/ECL39-SINGLE-CPL-LVLS_TST_C_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV
{'asset_list': {'23ca1be9-2a3e-42bf-8b29-9cbc52d9be46': 'ECL28-SINGLE-CPL_TST_F_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV_03.mxf',
'3fd640ec-f75e-4f91-8849-e29cda6cf79b': 'ECL28-SINGLE-CPL_TST_F_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV_audio_02.mxf',
'99150145-69c1-4589-b78d-33f84eae6efd': 'PKL_99150145-69c1-4589-b78d-33f84eae6efd.xml',
'99bb3528-4a7b-423d-8a09-465f4f8dee4d': 'j2c_99bb3528-4a7b-423d-8a09-465f4f8dee4d.mxf',
'ad46379a-a41c-4e57-9e45-c0b9a7a9ba1a': 'CPL_ECL39-SINGLE-CPL-LVLS_TST_C_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV.xml',
'cd62a8fc-3271-4e86-99a3-6285336eb9be': 'ECL28-SINGLE-CPL_TST_F_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV_audio_03.mxf',
'd68127a0-4f7e-4b7a-8211-ec48213546fe': 'ECL28-SINGLE-CPL_TST_F_EN-XX_UK-U_51_4K_DI_20180103_ECL_SMPTE_OV_audio_01.mxf',
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
build-essential \
devscripts \
fakeroot \
cmake \
@remia
remia / Patch
Created October 22, 2020 20:59
OCIO LookTransform inversion
diff --git a/src/OpenColorIO/transforms/LookTransform.cpp b/src/OpenColorIO/transforms/LookTransform.cpp
index 5458e9a9..8afee104 100755
--- a/src/OpenColorIO/transforms/LookTransform.cpp
+++ b/src/OpenColorIO/transforms/LookTransform.cpp
@@ -327,12 +327,13 @@ void BuildLookOps(OpRcPtrVec & ops,
looks.parse(lookTransform.getLooks());
// We must handle the inverse src/dst colorspace transformation explicitly.
- if(dir == TRANSFORM_DIR_INVERSE)
+ auto combinedDir = CombineTransformDirections(dir, lookTransform.getDirection());
ocio_profile_version: 2
description: Prototype OCIO v2 config for ACES 1.2.
name: ACES 1.2 2021-02-01
roles:
aces_interchange: ACES2065-1
cie_xyz_d65_interchange: CIE-XYZ D65
color_timing: ACEScct
compositing_log: ACEScct
# -*- coding: utf-8 -*-
import os
import sys
import colour
import numpy as np
import subprocess
@remia
remia / ocio_icc.py
Created September 27, 2022 18:02
ICC and ParametricCurve tests in Python
import os
import re
import subprocess as sp
import tempfile
from warnings import warn
import matplotlib
matplotlib.use('Qt5Agg')
import matplotlib.pyplot as plt
import numpy as np