42 #if defined(_MSC_VER) && (_MSC_VER < 1300) 49 #define LASZIP_VERSION_MAJOR 2 50 #define LASZIP_VERSION_MINOR 0 51 #define LASZIP_VERSION_REVISION 3 53 #define LASZIP_COMPRESSOR_NONE 0 54 #define LASZIP_COMPRESSOR_POINTWISE 1 55 #define LASZIP_COMPRESSOR_POINTWISE_CHUNKED 2 56 #define LASZIP_COMPRESSOR_TOTAL_NUMBER_OF 3 58 #define LASZIP_COMPRESSOR_CHUNKED LASZIP_COMPRESSOR_POINTWISE_CHUNKED 59 #define LASZIP_COMPRESSOR_NOT_CHUNKED LASZIP_COMPRESSOR_POINTWISE 61 #define LASZIP_COMPRESSOR_DEFAULT LASZIP_COMPRESSOR_CHUNKED 63 #define LASZIP_CODER_ARITHMETIC 0 64 #define LASZIP_CODER_TOTAL_NUMBER_OF 1 66 #define LASZIP_CHUNK_SIZE_DEFAULT 50000 73 enum Type {
BYTE = 0,
SHORT,
INT,
LONG,
FLOAT,
DOUBLE,
POINT10,
GPSTIME11,
RGB12,
WAVEPACKET13,
POINT14,
RGBNIR14 }
type;
85 bool check_compressor(
const unsigned short compressor);
86 bool check_coder(
const unsigned short coder);
87 bool check_item(
const LASitem* item);
88 bool check_items(
const unsigned short num_items,
const LASitem* items);
92 bool setup(
unsigned short* num_items,
LASitem** items,
const unsigned char point_type,
const unsigned short point_size,
const unsigned short compressor=
LASZIP_COMPRESSOR_NONE);
93 bool is_standard(
const unsigned short num_items,
const LASitem* items,
unsigned char* point_type=0,
unsigned short* record_length=0);
94 bool is_standard(
unsigned char* point_type=0,
unsigned short* record_length=0);
98 bool unpack(
const unsigned char* bytes,
const int num);
99 bool pack(
unsigned char*& bytes,
int& num);
102 bool setup(
const unsigned char point_type,
const unsigned short point_size,
const unsigned short compressor=
LASZIP_COMPRESSOR_DEFAULT);
103 bool setup(
const unsigned short num_items,
const LASitem* items,
const unsigned short compressor);
104 bool set_chunk_size(
const unsigned int chunk_size);
105 bool request_version(
const unsigned short requested_version);
108 const char* get_error()
const;
127 bool return_error(
const char* err);
unsigned char version_minor
unsigned short compressor
#define LASZIP_COMPRESSOR_DEFAULT
bool is_type(LASitem::Type t) const
#define LASZIP_COMPRESSOR_NONE
unsigned short version_revision
const char * get_name() const
unsigned char version_major