File: using-config.ocio-from-system.patch

package info (click to toggle)
alicevision 3.3.1%2Brepack-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 34,172 kB
  • sloc: cpp: 142,191; python: 13,724; ansic: 7,937; modula3: 6,977; sh: 163; makefile: 66
file content (16 lines) | stat: -rw-r--r-- 984 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: alicevision/src/aliceVision/image/colorspace.cpp
===================================================================
--- alicevision.orig/src/aliceVision/image/colorspace.cpp
+++ alicevision/src/aliceVision/image/colorspace.cpp
@@ -102,6 +102,11 @@ std::string getDefaultColorConfigFilePat
             ALICEVISION_LOG_DEBUG("ALICEVISION_ROOT is not defined, use embedded OCIO config file from source code: " << configFromSource);
             return configFromSource;
         }
+
+        const std::string configFromSystem("/usr/share/aliceVision/config.ocio");
+        if (fs::exists(configFromSystem))
+            return configFromSystem;
+
         // Output message with logging before throw as this function could be called before main.
         ALICEVISION_LOG_ERROR("ALICEVISION_ROOT is not defined, embedded OCIO config file cannot be accessed.");
         ALICEVISION_THROW_ERROR("ALICEVISION_ROOT is not defined, embedded OCIO config file cannot be accessed.");