MCPcopy Create free account
hub / github.com/LAStools/LAStools / init

Method init

LASzip/src/lasreaditemcompressed_v1.cpp:105–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105BOOL LASreadItemCompressed_POINT10_v1::init(const U8* item, U32& context)
106{
107 U32 i;
108
109 /* init state */
110 last_x_diff[0] = last_x_diff[1] = last_x_diff[2] = 0;
111 last_y_diff[0] = last_y_diff[1] = last_y_diff[2] = 0;
112 last_incr = 0;
113
114 /* init models and integer compressors */
115 ic_dx->initDecompressor();
116 ic_dy->initDecompressor();
117 ic_z->initDecompressor();
118 ic_intensity->initDecompressor();
119 ic_scan_angle_rank->initDecompressor();
120 ic_point_source_ID->initDecompressor();
121 dec->initSymbolModel(m_changed_values);
122 for (i = 0; i < 256; i++)
123 {
124 if (m_bit_byte[i]) dec->initSymbolModel(m_bit_byte[i]);
125 if (m_classification[i]) dec->initSymbolModel(m_classification[i]);
126 if (m_user_data[i]) dec->initSymbolModel(m_user_data[i]);
127 }
128
129 /* init last item */
130 memcpy(last_item, item, 20);
131
132 return TRUE;
133}
134
135inline void LASreadItemCompressed_POINT10_v1::read(U8* item, U32& context)
136{

Callers

nothing calls this directly

Calls 2

initDecompressorMethod · 0.80
initSymbolModelMethod · 0.45

Tested by

no test coverage detected