Public Member Functions | Protected Types | Protected Member Functions | Private Attributes
pcl::StaticRangeCoder Class Reference

StaticRangeCoder compression class More...

#include <entropy_range_coder.h>

List of all members.

Public Member Functions

unsigned long decodeStreamToCharVector (std::istream &inputByteStream_arg, std::vector< char > &outputByteVector_arg)
 Decode char stream to output vector.
unsigned long decodeStreamToIntVector (std::istream &inputByteStream_arg, std::vector< unsigned int > &outputIntVector_arg)
 Decode stream to output integer vector.
unsigned long encodeCharVectorToStream (const std::vector< char > &inputByteVector_arg, std::ostream &outputByteStream_arg)
 Encode char vector to output stream.
unsigned long encodeIntVectorToStream (std::vector< unsigned int > &inputIntVector_arg, std::ostream &outputByterStream_arg)
 Encode integer vector to output stream.
 StaticRangeCoder ()
 Constructor.
virtual ~StaticRangeCoder ()
 Empty deconstructor.

Protected Types

typedef boost::uint32_t DWord

Protected Member Functions

double Log2 (double n_arg)
 Helper function to calculate the binary logarithm.

Private Attributes

std::vector< uint64_t > cFreqTable_
 Vector containing cumulative symbol frequency table.
std::vector< char > outputCharVector_
 Vector containing compressed data.

Detailed Description

StaticRangeCoder compression class

Note:
This class provides static range coding functionality.
Its symbol probability/frequency table is precomputed and encoded to the output stream
Author:
Julius Kammerl (julius@kammerl.de)

Definition at line 118 of file entropy_range_coder.h.


Member Typedef Documentation

typedef boost::uint32_t pcl::StaticRangeCoder::DWord [protected]

Definition at line 166 of file entropy_range_coder.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 122 of file entropy_range_coder.h.

virtual pcl::StaticRangeCoder::~StaticRangeCoder ( ) [inline, virtual]

Empty deconstructor.

Definition at line 129 of file entropy_range_coder.h.


Member Function Documentation

unsigned long pcl::StaticRangeCoder::decodeStreamToCharVector ( std::istream &  inputByteStream_arg,
std::vector< char > &  outputByteVector_arg 
)

Decode char stream to output vector.

Parameters:
inputByteStream_arginput stream of compressed data
outputByteVector_argdecompressed output vector
Returns:
amount of bytes read from input stream

Definition at line 601 of file entropy_range_coder.hpp.

unsigned long pcl::StaticRangeCoder::decodeStreamToIntVector ( std::istream &  inputByteStream_arg,
std::vector< unsigned int > &  outputIntVector_arg 
)

Decode stream to output integer vector.

Parameters:
inputByteStream_arginput stream of compressed data
outputIntVector_argdecompressed output vector
Returns:
amount of bytes read from input stream

Definition at line 390 of file entropy_range_coder.hpp.

unsigned long pcl::StaticRangeCoder::encodeCharVectorToStream ( const std::vector< char > &  inputByteVector_arg,
std::ostream &  outputByteStream_arg 
)

Encode char vector to output stream.

Parameters:
inputByteVector_arginput vector
outputByteStream_argoutput stream containing compressed data
Returns:
amount of bytes written to output stream

Definition at line 492 of file entropy_range_coder.hpp.

unsigned long pcl::StaticRangeCoder::encodeIntVectorToStream ( std::vector< unsigned int > &  inputIntVector_arg,
std::ostream &  outputByterStream_arg 
)

Encode integer vector to output stream.

Parameters:
[in]inputIntVector_arginput vector
[out]outputByterStream_argoutput stream containing compressed data
Returns:
amount of bytes written to output stream

Definition at line 242 of file entropy_range_coder.hpp.

double pcl::StaticRangeCoder::Log2 ( double  n_arg) [inline, protected]

Helper function to calculate the binary logarithm.

Parameters:
n_arg,:some value
Returns:
binary logarithm (log2) of argument n_arg

Definition at line 173 of file entropy_range_coder.h.


Member Data Documentation

std::vector<uint64_t> pcl::StaticRangeCoder::cFreqTable_ [private]

Vector containing cumulative symbol frequency table.

Definition at line 180 of file entropy_range_coder.h.

std::vector<char> pcl::StaticRangeCoder::outputCharVector_ [private]

Vector containing compressed data.

Definition at line 183 of file entropy_range_coder.h.


The documentation for this class was generated from the following files:


pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:20:13