[niepce] ncr: use libopenraw 0.3.0



commit d6df5e18e3ae08a997aeb373726c8264b21c4831
Author: Hubert Figuière <hub figuiere net>
Date:   Wed Dec 23 00:43:48 2020 -0500

    ncr: use libopenraw 0.3.0

 configure.ac      | 4 ++--
 src/ncr/image.cpp | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 993aeff..a1a2e17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ LIBGTKMM_VERSION=3.22
 EXEMPI_VERSION=2.4.0
 SQLITE_VERSION=3.0
 GEGL_VERSION=0.3.0
-LIBOPENRAW_VERSION=0.1.0
+LIBOPENRAW_VERSION=0.3.0
 LIBGPHOTO_VERSION=2.5
 dnl need at least 2.5.0 because of xmlTextReader
 LIBXML2_VERSION=2.5.0
@@ -65,7 +65,7 @@ PKG_CHECK_MODULES(GPHOTO, [libgphoto2 >= $LIBGPHOTO_VERSION libgphoto2_port])
 
 dnl niepce
 PKG_CHECK_MODULES(BABL, babl)
-PKG_CHECK_MODULES(OPENRAW, libopenraw-0.1 >= $LIBOPENRAW_VERSION)
+PKG_CHECK_MODULES(OPENRAW, libopenraw-0.3 >= $LIBOPENRAW_VERSION)
 AC_SUBST(OPENRAW_CFLAGS)
 AC_SUBST(OPENRAW_LIBS)
 
diff --git a/src/ncr/image.cpp b/src/ncr/image.cpp
index 59a2a5d..e722515 100644
--- a/src/ncr/image.cpp
+++ b/src/ncr/image.cpp
@@ -185,8 +185,7 @@ GeglNode* Image::Private::_load_raw(const std::string &p)
     GeglNode* load_file = gegl_node_new_child(m_graph,
                                               "operation", "gegl:buffer-source",
                                               "buffer", buffer, nullptr);
-    ORCfaPatternRef pattern = or_rawdata_get_cfa_pattern(rawdata);
-    or_cfa_pattern pattern_type = or_cfapattern_get_type(pattern);
+    or_cfa_pattern pattern_type = or_rawdata_get_cfa_pattern_type(rawdata);
     or_rawdata_release(rawdata);
 
     GeglNode* stretch =


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]