From 205d12b357a76a9ed4808b561dc5a09d35300845 Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Thu, 13 Jun 2013 11:53:16 +0200 Subject: Improved compression. GZIP compress box shape. TNG compression precision to 0.001. diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 03baf21..6bcf151 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -3708,7 +3708,7 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data, { dest = tng_compress_pos_float_find_algo(start_pos, n_particles, n_frames, - 0.01, 0, + 0.001, 0, tng_data-> compress_algo_pos, &new_len); @@ -3717,7 +3717,7 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data, { dest = tng_compress_pos_find_algo(start_pos, n_particles, n_frames, - 0.01, 0, + 0.001, 0, tng_data-> compress_algo_pos, &new_len); @@ -3728,13 +3728,13 @@ static tng_function_status tng_compress(tng_trajectory_t tng_data, if(type == TNG_FLOAT_DATA) { dest = tng_compress_pos_float(start_pos, n_particles, - n_frames, 0.01, 0, + n_frames, 0.001, 0, tng_data->compress_algo_pos, &new_len); } else { dest = tng_compress_pos(start_pos, n_particles, - n_frames, 0.01, 0, + n_frames, 0.001, 0, tng_data->compress_algo_pos, &new_len); } } @@ -13789,7 +13789,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_box_shape_write return(tng_util_generic_write(tng_data, frame_nr, box_shape, 9, TNG_TRAJ_BOX_SHAPE, "BOX SHAPE", TNG_NON_PARTICLE_BLOCK_DATA, - TNG_UNCOMPRESSED)); + TNG_GZIP_COMPRESSION)); } -- cgit v0.10.1