[Liblas-commits] laszip: proper #ifdefs for range encoder test
liblas-commits at liblas.org
liblas-commits at liblas.org
Sat Jan 29 21:10:53 EST 2011
details: http://hg.liblas.orglaszip/rev/9404aa16a0c7
changeset: 161:9404aa16a0c7
user: Howard Butler <hobu.inc at gmail.com>
date: Sat Jan 29 20:10:43 2011 -0600
description:
proper #ifdefs for range encoder test
diffstat:
tools/laszippertest.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 66f59b110640 -r 9404aa16a0c7 tools/laszippertest.cpp
--- a/tools/laszippertest.cpp Fri Jan 28 06:53:17 2011 -0800
+++ b/tools/laszippertest.cpp Sat Jan 29 20:10:43 2011 -0600
@@ -303,7 +303,7 @@
static LASzipper* make_zipper(OStream* ost, PointData& data, LASzip::Algorithm alg)
{
-#ifndef LASZIP_HAVE_RANGECODER
+#ifdef LASZIP_HAVE_RANGECODER
if (alg == LASzip::POINT_BY_POINT_RANGE)
{
log("(skipping range encoder test)\n");
@@ -333,7 +333,7 @@
static LASunzipper* make_unzipper(IStream* ist, PointData& data, LASzip::Algorithm alg)
{
-#ifndef LASZIP_HAVE_RANGECODER
+#ifdef LASZIP_HAVE_RANGECODER
if (alg == LASzip::POINT_BY_POINT_RANGE)
{
return NULL;
@@ -564,8 +564,9 @@
run_test("test1.lax", data, LASzip::POINT_BY_POINT_RAW);
run_test("test2.lax", data, LASzip::POINT_BY_POINT_ARITHMETIC);
+#ifdef LASZIP_HAVE_RANGECODER
run_test("test3.lax", data, LASzip::POINT_BY_POINT_RANGE);
-
+#endif
log("Finished %u runs\n\n", run);
++run;
} while (run_forever);
More information about the Liblas-commits
mailing list