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_
void DecompressRVL(const unsigned char *input, unsigned short *output, int numPixels)
Definition: rvl_codec.cpp:70
RvlCodec & operator=(const RvlCodec &)
int CompressRVL(const unsigned short *input, unsigned char *output, int numPixels)
Definition: rvl_codec.cpp:43


compressed_depth_image_transport
Author(s): Julius Kammerl
autogenerated on Fri Sep 20 2019 03:32:12