ldas-tools-framecpp  2.5.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Typedefs | Functions
FrameCPP::Compression::ZeroSuppress Namespace Reference

Routines related to the gzip compression algorith. More...

Typedefs

typedef
LDASTools::AL::SharedArray
< CHAR_U > 
data_type
 
typedef data_type::element_type data_element_type
 
typedef INT_8U nbytes_type
 
typedef INT_8U ndata_type
 
typedef INT_4U data_type_type
 

Functions

template<typename InType , typename OutType >
void diff_compress (const data_element_type *Source, INT_8U SourceLength, INT_4U DataType, AutoArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<typename InType , typename OutType >
void diff_compress (const data_element_type *Source, INT_8U SourceLength, INT_4U DataType, SharedArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<typename InType , typename OutType >
void expand (const data_element_type *DataIn, INT_8U DataInBytes, bool ByteSwap, AutoArray< data_element_type > &DataOut, INT_8U NDataOut, INT_8U &NBytesOut)
 
template<typename InType , typename OutType >
void expand (const data_element_type *DataIn, INT_8U DataInBytes, bool ByteSwap, SharedArray< data_element_type > &DataOut, ndata_type NDataOut, INT_8U &NBytesOut)
 
template<>
void Compress< 2 > (const data_element_type *Source, INT_8U SourceLength, AutoArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void Compress< 2 > (const data_element_type *Source, INT_8U SourceLength, SharedArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void Compress< 4 > (const data_element_type *Source, INT_8U SourceLength, AutoArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void Compress< 4 > (const data_element_type *Source, INT_8U SourceLength, SharedArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void Expand< 2 > (const data_element_type *DataIn, INT_8U DataInBytes, bool ByteSwap, AutoArray< data_element_type > &DataOut, ndata_type NDataOut, INT_8U &NBytesOut)
 
template<>
void Expand< 2 > (const data_element_type *DataIn, INT_8U DataInBytes, bool ByteSwap, SharedArray< data_element_type > &DataOut, ndata_type NDataOut, INT_8U &NBytesOut)
 
template<>
void Expand< 4 > (const data_element_type *DataIn, INT_8U DataInBytes, bool ByteSwap, AutoArray< data_element_type > &DataOut, ndata_type NDataOut, INT_8U &NBytesOut)
 
template<>
void Expand< 4 > (const data_element_type *DataIn, INT_8U DataInBytes, bool ByteSwap, SharedArray< data_element_type > &DataOut, ndata_type NDataOut, INT_8U &NBytesOut)
 
template<>
void Expand< 8 > (const data_element_type *DataIn, INT_8U DataInBytes, bool ByteSwap, AutoArray< data_element_type > &DataOut, ndata_type NDataOut, INT_8U &NBytesOut)
 
template<>
void Expand< 8 > (const data_element_type *DataIn, INT_8U DataInBytes, bool ByteSwap, SharedArray< data_element_type > &DataOut, ndata_type NDataOut, INT_8U &NBytesOut)
 
template<>
void DiffCompress< 2 > (const data_element_type *Source, INT_8U SourceLength, INT_4U DataType, AutoArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void DiffCompress< 4 > (const data_element_type *Source, INT_8U SourceLength, INT_4U DataType, AutoArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void DiffCompress< 8 > (const data_element_type *Source, INT_8U SourceLength, INT_4U DataType, AutoArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void DiffCompress< 2 > (const data_element_type *Source, INT_8U SourceLength, INT_4U DataType, SharedArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void DiffCompress< 4 > (const data_element_type *Source, INT_8U SourceLength, INT_4U DataType, SharedArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<>
void DiffCompress< 8 > (const data_element_type *Source, INT_8U SourceLength, INT_4U DataType, SharedArray< data_element_type > &Dest, INT_8U &DestByteLength)
 
template<int Size>
void DiffExpand (const data_element_type *DataIn, nbytes_type DataInBytes, bool ByteSwap, data_type_type DataType, AutoArray< data_element_type > &DataOut, ndata_type NDataOut, nbytes_type &NBytesOut)
 
template<int Size>
void DiffExpand (const data_element_type *DataIn, nbytes_type DataInBytes, bool ByteSwap, data_type_type DataType, data_type &DataOut, ndata_type NDataOut, nbytes_type &NBytesOut)
 Expansion of the data. More...
 
 INSTANTIATE (2)
 
 INSTANTIATE (4)
 
 INSTANTIATE (8)
 
template<int >
void Compress (const data_element_type *DataIn, nbytes_type NBytesIn, LDASTools::AL::AutoArray< data_element_type > &DataOut, nbytes_type &NBytesOut)
 Compress the data with ZeroSuppress. More...
 
template<int >
void Compress (const data_element_type *DataIn, nbytes_type NBytesIn, data_type &DataOut, nbytes_type &NBytesOut)
 
template<int >
void Expand (const data_element_type *DataIn, nbytes_type DataInBytes, bool ByteSwap, LDASTools::AL::AutoArray< data_element_type > &DataOut, ndata_type NDataOut, nbytes_type &NBytesOut)
 
template<int >
void Expand (const data_element_type *DataIn, nbytes_type DataInBytes, bool ByteSwap, data_type &DataOut, ndata_type NDataOut, nbytes_type &NBytesOut)
 
template<int >
void DiffCompress (const data_element_type *DataIn, nbytes_type NBytesIn, data_type_type DataType, LDASTools::AL::AutoArray< data_element_type > &DataOut, nbytes_type &NBytesOut)
 
template<int >
void DiffCompress (const data_element_type *DataIn, nbytes_type NBytesIn, data_type_type DataType, data_type &DataOut, nbytes_type &NBytesOut)
 
template<int Size>
void DiffExpand (const data_element_type *DataIn, nbytes_type DataInBytes, bool ByteSwap, data_type_type DataType, LDASTools::AL::AutoArray< data_element_type > &DataOut, ndata_type NDataOut, nbytes_type &NBytesOut)
 Expansion of the data. More...
 

Detailed Description

Routines related to the gzip compression algorith.

The routines defined in this namespace are specific to the ZeroSuppress compression algorithm. Routines are defined for both compression and decompression of data buffers.

Typedef Documentation

typedef LDASTools::AL::SharedArray< CHAR_U > FrameCPP::Compression::ZeroSuppress::data_type

Function Documentation

template<int >
void FrameCPP::Compression::ZeroSuppress::Compress ( const data_element_type DataIn,
nbytes_type  NBytesIn,
LDASTools::AL::AutoArray< data_element_type > &  DataOut,
nbytes_type NBytesOut 
)

Compress the data with ZeroSuppress.

Parameters
[in]DataInPointer to the data to be compressed
[in]NBytesInThe number of bytes to be compressed. Upon return, the size of the compressed buffer is returned.
[out]DataOutPointer to the data to be compressed
[out]NBytesOutThe number of bytes to be compressed. Upon return, the size of the compressed buffer is returned.
Todo:
Correct this documentation
template<int >
void FrameCPP::Compression::ZeroSuppress::Compress ( const data_element_type DataIn,
nbytes_type  NBytesIn,
data_type DataOut,
nbytes_type NBytesOut 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Compress< 2 > ( const data_element_type Source,
INT_8U  SourceLength,
AutoArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Compress< 2 > ( const data_element_type Source,
INT_8U  SourceLength,
SharedArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Compress< 4 > ( const data_element_type Source,
INT_8U  SourceLength,
AutoArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Compress< 4 > ( const data_element_type Source,
INT_8U  SourceLength,
SharedArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<typename InType , typename OutType >
void FrameCPP::Compression::ZeroSuppress::diff_compress ( const data_element_type Source,
INT_8U  SourceLength,
INT_4U  DataType,
AutoArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<typename InType , typename OutType >
void FrameCPP::Compression::ZeroSuppress::diff_compress ( const data_element_type Source,
INT_8U  SourceLength,
INT_4U  DataType,
SharedArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<int >
void FrameCPP::Compression::ZeroSuppress::DiffCompress ( const data_element_type DataIn,
nbytes_type  NBytesIn,
data_type_type  DataType,
LDASTools::AL::AutoArray< data_element_type > &  DataOut,
nbytes_type NBytesOut 
)
template<int >
void FrameCPP::Compression::ZeroSuppress::DiffCompress ( const data_element_type DataIn,
nbytes_type  NBytesIn,
data_type_type  DataType,
data_type DataOut,
nbytes_type NBytesOut 
)
template<>
void FrameCPP::Compression::ZeroSuppress::DiffCompress< 2 > ( const data_element_type Source,
INT_8U  SourceLength,
INT_4U  DataType,
AutoArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<>
void FrameCPP::Compression::ZeroSuppress::DiffCompress< 2 > ( const data_element_type Source,
INT_8U  SourceLength,
INT_4U  DataType,
SharedArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<>
void FrameCPP::Compression::ZeroSuppress::DiffCompress< 4 > ( const data_element_type Source,
INT_8U  SourceLength,
INT_4U  DataType,
AutoArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<>
void FrameCPP::Compression::ZeroSuppress::DiffCompress< 4 > ( const data_element_type Source,
INT_8U  SourceLength,
INT_4U  DataType,
SharedArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<>
void FrameCPP::Compression::ZeroSuppress::DiffCompress< 8 > ( const data_element_type Source,
INT_8U  SourceLength,
INT_4U  DataType,
AutoArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<>
void FrameCPP::Compression::ZeroSuppress::DiffCompress< 8 > ( const data_element_type Source,
INT_8U  SourceLength,
INT_4U  DataType,
SharedArray< data_element_type > &  Dest,
INT_8U &  DestByteLength 
)
template<int Size>
void FrameCPP::Compression::ZeroSuppress::DiffExpand ( const data_element_type DataIn,
nbytes_type  DataInBytes,
bool  ByteSwap,
data_type_type  DataType,
LDASTools::AL::AutoArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
nbytes_type NBytesOut 
)

Expansion of the data.

Parameters
[in]DataInThe data to be expanded
[in]DataInBytesThen number of bytes in DataIn.
[in]ByteSwapIf true, then perform byte swapping; false otherwise
[in]DataTypeThe data type of the compressed data.
[out]DataOutIf DataIn is uncompressable, then the resulting uncompressed data is stored here. If DataIn is can not be uncompressed, then this will be set to a NULL pointer.
[in]NDataOutThe number of data elements expected to be in the uncompressed buffer.
[in]NBytesOutThen number of bytes allocated to DataOut.
template<int Size>
void FrameCPP::Compression::ZeroSuppress::DiffExpand ( const data_element_type DataIn,
nbytes_type  DataInBytes,
bool  ByteSwap,
data_type_type  DataType,
AutoArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
nbytes_type NBytesOut 
)
template<int Size>
void FrameCPP::Compression::ZeroSuppress::DiffExpand ( const data_element_type DataIn,
nbytes_type  DataInBytes,
bool  ByteSwap,
data_type_type  DataType,
data_type DataOut,
ndata_type  NDataOut,
nbytes_type NBytesOut 
)

Expansion of the data.

Parameters
[in]DataInThe data to be expanded
[in]DataInBytesThen number of bytes in DataIn.
[in]ByteSwapIf true, then perform byte swapping; false otherwise
[in]DataTypeThe data type of the compressed data.
[out]DataOutIf DataIn is uncompressable, then the resulting uncompressed data is stored here. If DataIn is can not be uncompressed, then this will be set to a NULL pointer.
[in]NDataOutThe number of data elements expected to be in the uncompressed buffer.
[in]NBytesOutThen number of bytes allocated to DataOut.
template<int >
void FrameCPP::Compression::ZeroSuppress::Expand ( const data_element_type DataIn,
nbytes_type  DataInBytes,
bool  ByteSwap,
LDASTools::AL::AutoArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
nbytes_type NBytesOut 
)
template<int >
void FrameCPP::Compression::ZeroSuppress::Expand ( const data_element_type DataIn,
nbytes_type  DataInBytes,
bool  ByteSwap,
data_type DataOut,
ndata_type  NDataOut,
nbytes_type NBytesOut 
)
template<typename InType , typename OutType >
void FrameCPP::Compression::ZeroSuppress::expand ( const data_element_type DataIn,
INT_8U  DataInBytes,
bool  ByteSwap,
AutoArray< data_element_type > &  DataOut,
INT_8U  NDataOut,
INT_8U &  NBytesOut 
)
template<typename InType , typename OutType >
void FrameCPP::Compression::ZeroSuppress::expand ( const data_element_type DataIn,
INT_8U  DataInBytes,
bool  ByteSwap,
SharedArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
INT_8U &  NBytesOut 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Expand< 2 > ( const data_element_type DataIn,
INT_8U  DataInBytes,
bool  ByteSwap,
AutoArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
INT_8U &  NBytesOut 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Expand< 2 > ( const data_element_type DataIn,
INT_8U  DataInBytes,
bool  ByteSwap,
SharedArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
INT_8U &  NBytesOut 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Expand< 4 > ( const data_element_type DataIn,
INT_8U  DataInBytes,
bool  ByteSwap,
AutoArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
INT_8U &  NBytesOut 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Expand< 4 > ( const data_element_type DataIn,
INT_8U  DataInBytes,
bool  ByteSwap,
SharedArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
INT_8U &  NBytesOut 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Expand< 8 > ( const data_element_type DataIn,
INT_8U  DataInBytes,
bool  ByteSwap,
AutoArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
INT_8U &  NBytesOut 
)
template<>
void FrameCPP::Compression::ZeroSuppress::Expand< 8 > ( const data_element_type DataIn,
INT_8U  DataInBytes,
bool  ByteSwap,
SharedArray< data_element_type > &  DataOut,
ndata_type  NDataOut,
INT_8U &  NBytesOut 
)
FrameCPP::Compression::ZeroSuppress::INSTANTIATE ( )
FrameCPP::Compression::ZeroSuppress::INSTANTIATE ( )
FrameCPP::Compression::ZeroSuppress::INSTANTIATE ( )