rvl_codec.h
Go to the documentation of this file.
1 #ifndef COMPRESSED_DEPTH_IMAGE_TRANSPORT_RVL_CODEC_H_
2 #define COMPRESSED_DEPTH_IMAGE_TRANSPORT_RVL_CODEC_H_
3 
5 
6 class RvlCodec {
7  public:
8  RvlCodec();
9  // Compress input data into output. The size of output can be equal to
10  // (1.5 * numPixels + 4) in the worst case.
11  int CompressRVL(const unsigned short* input, unsigned char* output,
12  int numPixels);
13  // Decompress input data into output. The size of output must be
14  // equal to numPixels.
15  void DecompressRVL(const unsigned char* input, unsigned short* output,
16  int numPixels);
17 
18  private:
19  RvlCodec(const RvlCodec&);
20  RvlCodec& operator=(const RvlCodec&);
21 
22  void EncodeVLE(int value);
23  int DecodeVLE();
24 
25  int *buffer_;
26  int *pBuffer_;
27  int word_;
29 };
30 
31 } // namespace compressed_depth_image_transport
32 
33 #endif // COMPRESSED_DEPTH_IMAGE_TRANSPORT_RVL_CODEC_H_
compressed_depth_image_transport::RvlCodec::CompressRVL
int CompressRVL(const unsigned short *input, unsigned char *output, int numPixels)
Definition: rvl_codec.cpp:43
compressed_depth_image_transport::RvlCodec::DecodeVLE
int DecodeVLE()
Definition: rvl_codec.cpp:26
compressed_depth_image_transport
Definition: codec.h:43
compressed_depth_image_transport::RvlCodec::EncodeVLE
void EncodeVLE(int value)
Definition: rvl_codec.cpp:11
compressed_depth_image_transport::RvlCodec
Definition: rvl_codec.h:6
compressed_depth_image_transport::RvlCodec::RvlCodec
RvlCodec()
Definition: rvl_codec.cpp:9
compressed_depth_image_transport::RvlCodec::DecompressRVL
void DecompressRVL(const unsigned char *input, unsigned short *output, int numPixels)
Definition: rvl_codec.cpp:70
compressed_depth_image_transport::RvlCodec::nibblesWritten_
int nibblesWritten_
Definition: rvl_codec.h:28
compressed_depth_image_transport::RvlCodec::pBuffer_
int * pBuffer_
Definition: rvl_codec.h:26
compressed_depth_image_transport::RvlCodec::operator=
RvlCodec & operator=(const RvlCodec &)
compressed_depth_image_transport::RvlCodec::buffer_
int * buffer_
Definition: rvl_codec.h:25
compressed_depth_image_transport::RvlCodec::word_
int word_
Definition: rvl_codec.h:27


compressed_depth_image_transport
Author(s): Julius Kammerl, David Gossow
autogenerated on Sat Jan 27 2024 03:31:04