150 Commits

Author SHA1 Message Date
Blottiere Paul
b3764bd5dc Add lazperf pcpatch 2016-06-14 10:22:16 +02:00
Blottiere Paul
1508f405bb fix crash when a child node is empty in pc schema
add unit test in case of an empty child node in schema
2016-03-06 15:48:08 +01:00
Sandro Santilli
e6a8e062a9 Merge pull request #101 from mbredif/patch-2
Enable valgrind checks in Travis, fix reported errors and leaks.
2016-03-05 15:55:06 +01:00
Mathieu Brédif
19a57ee89b Testing compression type of dimensional bytes 2016-03-03 17:35:20 +01:00
Mathieu Brédif
dbc47c7064 valgrind check in travis 2016-03-03 17:05:57 +01:00
Mathieu Brédif
897d7c086d fix valgrind errors using CLAMP in pc_val, due to incorrect formatting 2016-03-03 00:53:27 +01:00
Mathieu Brédif
40b2e49d89 Adding missing xmlCleanupParser calls
Fixes memory leaks
2016-03-03 00:05:05 +01:00
Mathieu Brédif
0826a986a0 fix memory leak in test_uncompressed_filter 2016-03-02 23:48:13 +01:00
Mathieu Brédif
76e3040d5f pc_bytes_sigbits_decode compression -> PC_DIM_NONE
Output compression was erroneously set to PC_DIM_SIGBITS instead of_DIM_NONE. Thanks @pblottiere for spotting this!
2016-02-29 15:44:32 +01:00
Sandro Santilli
022708bcba Fix stat computed by PC_Filter for scaled/offsetted dimensions.
Closes #78.
Includes testcase.
2015-04-30 13:31:13 +02:00
Sandro Santilli
a632241185 Fix max stat computed by PC_Filter for unscaled dimensions.
Closes #79.
Includes testcase.
2015-04-30 11:58:40 +02:00
Sandro Santilli
7061bbb549 Add "type" field in pc_summary dimension output 2015-04-24 16:41:21 +02:00
Sandro Santilli
d345f927c0 Fix leaks in patch unit test 2015-04-21 16:19:57 +02:00
Sandro Santilli
ca62fdf00f Fix leak in pc_patch_from_patchlist 2015-04-21 16:19:52 +02:00
Sandro Santilli
4ba74589d6 Fix mem leak in pc_patch_dimensional_from_pointlist 2015-04-21 16:17:11 +02:00
Sandro Santilli
ab76f32045 Fix leak in pc_patch_compute_stats 2015-04-21 16:15:47 +02:00
Sandro Santilli
dda27dc9d8 Fix leak in pc_patch_dimensional_from_uncompressed 2015-04-21 16:04:58 +02:00
Sandro Santilli
c0e75fbd43 Warn when truncating values due to size constraints
Also makes the truncation controled rather than unspecified.
Values are clamped (max if over max, min if below min).

Closes #68

Updates expected output from existing test that uses truncating value
2015-04-21 13:56:09 +02:00
Sandro Santilli
3f3bdab31f Clone stats on dimensional compression
Closes #75
2015-04-21 12:13:17 +02:00
Sandro Santilli
291ccfe57a Fix crash in testcase (due to #75) 2015-04-21 12:01:18 +02:00
Sandro Santilli
44037b743e Leak some leaks from pc_patch unit test 2015-04-21 11:40:21 +02:00
Sandro Santilli
e105cdbc40 Fix memory leak in pc_patch_dimensional_to_string 2015-04-21 11:33:12 +02:00
Sandro Santilli
cd7a644818 Drop a memory copy in pc_patch_to_string (#74) 2015-04-21 11:12:07 +02:00
Sandro Santilli
fed95d2f73 Remove unused include 2015-04-20 19:17:29 +02:00
Sandro Santilli
e5605e9292 Fix crash in schema parser
Closes #71.
Includes testcase.
2015-04-14 11:26:28 +02:00
Sandro Santilli
667dcf3ec0 Fix handling of sigbits encoding with 0 common bits
Includes online check
Closes #69
2015-04-13 16:58:35 +02:00
Sandro Santilli
db42b12e0c Fix memory leak in pc_patch_uncompressed_compute_extent 2015-04-13 15:48:15 +02:00
Sandro Santilli
c72199f1f8 Fix 64bit sigbits encoding 2015-04-13 14:17:01 +02:00
Sandro Santilli
45c0fc7820 Revert "Fix sigbits decoding to handle the 0-commonbits case"
This reverts commit ca64830e53cdae288e80fb8a127c2a86cf141c2f.

It broke other cases, better to rethink (#69)
2015-04-13 14:10:49 +02:00
Sandro Santilli
ca64830e53 Fix sigbits decoding to handle the 0-commonbits case
See #67
2015-04-13 13:40:36 +02:00
Sandro Santilli
3011d8dace Fix crash on cloning schema with missing dimension name/description
Closes #66
Includes testcase
2015-04-09 16:00:27 +02:00
Sandro Santilli
53b4fa1dcb Add test for pc_schema_clone and plug memory leaks in the test
See #65
2015-04-09 12:24:47 +02:00
Sandro Santilli
bfc1998b53 Fix memory leak in dimensional encoding when all values are equal 2015-04-02 16:33:02 +02:00
Sandro Santilli
11012357fd Support sigbits encoding for 64bit integers
Fixes #61
2015-04-02 16:26:30 +02:00
Pete Gadomski
868b78c1eb Compile the static library with -fPIC
On Ubuntu precise64, gcc/g++ 4.8, cmake 2.8.11.2, I get a link error
between the static libpc and the (default shared) libpointcloud.so. This
patch fixes the link error.

Fixes #26
2015-03-28 01:15:29 +00:00
Sandro Santilli
3fe9d4599f Implement PC_Summary(pcpatch)
Includes test and docs
2015-03-19 16:54:09 +01:00
Sandro Santilli
48faede812 More unused variables and definitions dropped 2015-02-12 18:22:08 +01:00
Sandro Santilli
7ca2b21c47 Fix a couple more unused variable warnings
Improves error checking in pc_patch_dimensional_compute_extent
2015-02-12 18:17:43 +01:00
Sandro Santilli
7d92ab50da Move INTERPRETATION_STRINGS and INTERPRETATION_SIZES to .c file
Closes #41
2015-02-12 17:36:46 +01:00
Sandro Santilli
77985c0b5c Centralize version into Version.config
Works with both autoconf and cmake
2015-02-12 13:39:26 +01:00
Sandro Santilli
30f18f3ce0 Fix unused variable warnings in pc_bytes.c 2015-02-12 12:25:17 +01:00
Sandro Santilli
225327468d Fix unused variables warnings 2015-02-12 10:37:21 +01:00
Sandro Santilli
74a0818f6a Add pc_point_to_double_array function
The function was written by Remi-C and slightly modified by me
to avoid the check for NULL and be const-correct.

Also I've added a unit test for the new library function.
2015-02-12 10:34:17 +01:00
Sandro Santilli
9243eeaaee Add a couple of return values check
now that pcerror is not guaranteed to exit it is worth checking returns
2015-02-09 19:56:37 +01:00
Sandro Santilli
aebb3cb0d3 Add test for #28
Involves registering cu_tester specific error handler
2015-02-09 19:55:59 +01:00
Sandro Santilli
5c9532c00d Revert recently introduced double free on pcpoint (only in test) 2015-02-09 19:55:01 +01:00
Sandro Santilli
2025de2625 Do not assume schema XML has a name for each dimension
Closes #28
2015-02-09 19:53:24 +01:00
Sandro Santilli
62fd168379 Allow passing NULLs to pc_set_handlers to keep previous handlers 2015-02-09 19:46:00 +01:00
Sandro Santilli
e7b8fb8810 Fix typo in pc_patch_dimensional_compute_extent
Includes testcase.
Closes #23
2015-02-09 18:24:17 +01:00
Sandro Santilli
0c7bd2778d Fix unused variables warnings 2015-02-09 18:07:40 +01:00