Evita  0.16
evSegmentationMapCodecRunlength.h
Go to the documentation of this file.
1 /*
2  *
3  * EVITA: Efficient Visualization of Terascale Datasets
4  * Copyright (C) 2000-2016 Team Evita
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
19  * MA 02139, USA.
20  *
21  */
22 
23 
24 #ifndef __evSegmentationMapCodecRunlength_h
25 #define __evSegmentationMapCodecRunlength_h
26 
27 
28 #include "evSegmentationMapCodec.h"
29 
30 
32 {
33 public:
36 
37  virtual const evString GetClassName(void) const
38  {
39  return(evString("evSegmentationMapCodecRunlength"));
40  }
41 
42  int EncodeHeader(evFile &outfile) const;
43  int Encode(evBitBuffer &output_buffer,
44  const evSegmentationMap &segmentation_map) const;
45  int DecodeHeader(evFile &infile) const;
46  int Decode(evBitBuffer &input_buffer,
47  evSegmentationMap &segmentation_map) const;
48 
49 protected:
50 
51 private:
52  int EncodeNumber(int number, QccENTArithmeticModel *arithmetic_model,
53  evBitBuffer &output_buffer, int mode, int first_call) const;
54  int DecodeNumber(int &number,QccENTArithmeticModel *arithmetic_model,
55  evBitBuffer &input_buffer, int first_symbol,
56  int &last_symbol, int mode) const;
57 
58 };
59 
60 
61 #endif
Definition: evFile.h:44
Definition: evSegmentationMapCodecRunlength.h:31
int DecodeHeader(evFile &infile) const
int EncodeHeader(evFile &outfile) const
int DecodeNumber(int &number, QccENTArithmeticModel *arithmetic_model, evBitBuffer &input_buffer, int first_symbol, int &last_symbol, int mode) const
virtual const evString GetClassName(void) const
Definition: evSegmentationMapCodecRunlength.h:37
int EncodeNumber(int number, QccENTArithmeticModel *arithmetic_model, evBitBuffer &output_buffer, int mode, int first_call) const
Definition: evBitBuffer.h:34
int Decode(evBitBuffer &input_buffer, evSegmentationMap &segmentation_map) const
Definition: evSegmentationMap.h:35
Definition: evSegmentationMapCodec.h:33
int Encode(evBitBuffer &output_buffer, const evSegmentationMap &segmentation_map) const
Definition: evString.h:30
virtual ~evSegmentationMapCodecRunlength(void)