[−][src]Trait laz::record::FieldDecompressor
Trait to be implemented by FieldDecompressors
Note
Here a 'field' may be a single field (example: GpsTime which is a double) or a combination of single fields (example: the RGB is considered a field and it is a combination of multiple single fields: Red, Green, Blue)
Required methods
fn size_of_field(&self) -> usize
[src]
size in bytes of the decompressed field data
fn decompress_first(
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
[src]
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
Decompress the first point's field from the src
, and pack it into the first_point
slice
The first_point
slice will have a len of exactly self_of_field()
bytes.
fn decompress_with(
&mut self,
decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
[src]
&mut self,
decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
Decompress the next point's field from the decoder
and pack the
decompressed data in the buf
slice.
The buf
slice will have a len of exactly self_of_field()
bytes.
Implementors
impl<R: Read> FieldDecompressor<R> for LasExtraByteDecompressor
[src]
fn size_of_field(&self) -> usize
[src]
fn decompress_first(
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
[src]
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
fn decompress_with(
&mut self,
decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
[src]
&mut self,
decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
impl<R: Read> FieldDecompressor<R> for LasGpsTimeDecompressor
[src]
fn size_of_field(&self) -> usize
[src]
fn decompress_first(
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
[src]
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
fn decompress_with(
&mut self,
mut decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
[src]
&mut self,
mut decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
impl<R: Read> FieldDecompressor<R> for GpsTimeDecompressor
[src]
fn size_of_field(&self) -> usize
[src]
fn decompress_first(
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
[src]
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
fn decompress_with(
&mut self,
mut decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
[src]
&mut self,
mut decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
impl<R: Read> FieldDecompressor<R> for laz::las::point0::v1::LasPoint0Decompressor
[src]
fn size_of_field(&self) -> usize
[src]
fn decompress_first(
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
[src]
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
fn decompress_with(
&mut self,
mut decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
[src]
&mut self,
mut decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
impl<R: Read> FieldDecompressor<R> for laz::las::point0::v2::LasPoint0Decompressor
[src]
fn size_of_field(&self) -> usize
[src]
fn decompress_first(
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
[src]
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
fn decompress_with(
&mut self,
mut decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
[src]
&mut self,
mut decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
impl<R: Read> FieldDecompressor<R> for laz::las::rgb::v1::LasRGBDecompressor
[src]
fn size_of_field(&self) -> usize
[src]
fn decompress_first(
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
[src]
&mut self,
src: &mut R,
first_point: &mut [u8]
) -> Result<()>
fn decompress_with(
&mut self,
decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>
[src]
&mut self,
decoder: &mut ArithmeticDecoder<R>,
buf: &mut [u8]
) -> Result<()>