[Liblas-commits] laszip: removing rangecoder

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Jan 12 08:34:53 EST 2011


details:   http://hg.liblas.orglaszip/rev/cbd804c766e9
changeset: 133:cbd804c766e9
user:      isenburg
date:      Wed Jan 12 05:34:39 2011 -0800
description:
removing rangecoder

diffstat:

 src/CMakeLists.txt    |  5 +----
 src/Makefile.am       |  5 +----
 src/lasreadpoint.cpp  |  4 ++++
 src/laswritepoint.cpp |  4 ++++
 4 files changed, 10 insertions(+), 8 deletions(-)

diffs (82 lines):

diff -r 1ee3a8a5125e -r cbd804c766e9 src/CMakeLists.txt
--- a/src/CMakeLists.txt	Tue Jan 11 12:45:20 2011 -0800
+++ b/src/CMakeLists.txt	Wed Jan 12 05:34:39 2011 -0800
@@ -48,9 +48,6 @@
     laswritepoint.cpp
     laszip.cpp
     laszipper.cpp
-    rangeencoder.cpp
-    rangedecoder.cpp
-    rangemodel.cpp
 )
 
 set(LASZIP_SOURCES
@@ -92,4 +89,4 @@
 
 install(DIRECTORY ${LASZIP_HEADERS_DIR}
   DESTINATION ${LASZIP_INCLUDE_DIR}
-  FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
\ No newline at end of file
+  FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
diff -r 1ee3a8a5125e -r cbd804c766e9 src/Makefile.am
--- a/src/Makefile.am	Tue Jan 11 12:45:20 2011 -0800
+++ b/src/Makefile.am	Wed Jan 12 05:34:39 2011 -0800
@@ -13,7 +13,4 @@
 						lasreadpoint.cpp \
 						laszip.cpp \
 						laszipper.cpp \
-						lasunzipper.cpp \
-						rangeencoder.cpp \
-						rangedecoder.cpp \
-						rangemodel.cpp
+						lasunzipper.cpp
diff -r 1ee3a8a5125e -r cbd804c766e9 src/lasreadpoint.cpp
--- a/src/lasreadpoint.cpp	Tue Jan 11 12:45:20 2011 -0800
+++ b/src/lasreadpoint.cpp	Wed Jan 12 05:34:39 2011 -0800
@@ -47,7 +47,9 @@
 #include "lasreadpoint.hpp"
 
 #include "arithmeticdecoder.hpp"
+#ifdef LASZIP_HAVE_RANGECODER
 #include "rangedecoder.hpp"
+#endif
 #include "lasreaditemraw.hpp"
 #include "lasreaditemcompressed_v1.hpp"
 
@@ -79,9 +81,11 @@
   case LASzip::POINT_BY_POINT_RAW:
     dec = 0;
     break;
+#ifdef LASZIP_HAVE_RANGECODER
   case LASzip::POINT_BY_POINT_RANGE:
     dec = new RangeDecoder();
     break;
+#endif
   case LASzip::POINT_BY_POINT_ARITHMETIC:
     dec = new ArithmeticDecoder();
     break;
diff -r 1ee3a8a5125e -r cbd804c766e9 src/laswritepoint.cpp
--- a/src/laswritepoint.cpp	Tue Jan 11 12:45:20 2011 -0800
+++ b/src/laswritepoint.cpp	Wed Jan 12 05:34:39 2011 -0800
@@ -47,7 +47,9 @@
 #include "laswritepoint.hpp"
 
 #include "arithmeticencoder.hpp"
+#ifdef LASZIP_HAVE_RANGECODER
 #include "rangeencoder.hpp"
+#endif
 #include "laswriteitemraw.hpp"
 #include "laswriteitemcompressed_v1.hpp"
 
@@ -79,9 +81,11 @@
   case LASzip::POINT_BY_POINT_RAW:
     enc = 0;
     break;
+#ifdef LASZIP_HAVE_RANGECODER
   case LASzip::POINT_BY_POINT_RANGE:
     enc = new RangeEncoder();
     break;
+#endif
   case LASzip::POINT_BY_POINT_ARITHMETIC:
     enc = new ArithmeticEncoder();
     break;


More information about the Liblas-commits mailing list