41 #ifndef __PCL_IO_RANGECODING__ 42 #define __PCL_IO_RANGECODING__ 51 #include <boost/cstdint.hpp> 57 using boost::uint32_t;
58 using boost::uint64_t;
106 std::vector<char> outputCharVector_;
123 cFreqTable_ (65537), outputCharVector_ ()
139 encodeIntVectorToStream (std::vector<unsigned int>& inputIntVector_arg, std::ostream& outputByterStream_arg);
147 decodeStreamToIntVector (std::istream& inputByteStream_arg, std::vector<unsigned int>& outputIntVector_arg);
175 return log (n_arg) / log (2.0);
180 std::vector<uint64_t> cFreqTable_;
183 std::vector<char> outputCharVector_;
This file defines compatibility wrappers for low level I/O functions.
AdaptiveRangeCoder compression class
StaticRangeCoder()
Constructor.
unsigned long decodeStreamToCharVector(std::istream &inputByteStream_arg, std::vector< char > &outputByteVector_arg)
Decode char stream to output vector.
StaticRangeCoder compression class
unsigned long encodeCharVectorToStream(const std::vector< char > &inputByteVector_arg, std::ostream &outputByteStream_arg)
Encode char vector to output stream.
virtual ~StaticRangeCoder()
Empty deconstructor.
virtual ~AdaptiveRangeCoder()
Empty deconstructor.
AdaptiveRangeCoder()
Empty constructor.
double Log2(double n_arg)
Helper function to calculate the binary logarithm.