Line data Source code
1 :
2 : /* Copyright (c) 2009, Cedric Stalder <cedric.stalder@gmail.com>
3 : * 2009-2013, Stefan Eilemann <eile@equalizergraphics.com>
4 : *
5 : * This library is free software; you can redistribute it and/or modify it under
6 : * the terms of the GNU Lesser General Public License version 2.1 as published
7 : * by the Free Software Foundation.
8 : *
9 : * This library is distributed in the hope that it will be useful, but WITHOUT
10 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 : * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 : * details.
13 : *
14 : * You should have received a copy of the GNU Lesser General Public License
15 : * along with this library; if not, write to the Free Software Foundation, Inc.,
16 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 : */
18 :
19 :
20 : #ifndef PRESSION_PLUGIN_COMPRESSORRLE4HF
21 : #define PRESSION_PLUGIN_COMPRESSORRLE4HF
22 :
23 : #include "compressor.h"
24 :
25 : namespace pression
26 : {
27 : namespace plugin
28 : {
29 : class CompressorRLE4HF : public Compressor
30 : {
31 : public:
32 0 : CompressorRLE4HF(): Compressor() {}
33 0 : virtual ~CompressorRLE4HF() {}
34 :
35 : void compress( const void* const inData, const eq_uint64_t nPixels,
36 : const bool useAlpha ) override;
37 :
38 : static void decompress( const void* const* inData,
39 : const eq_uint64_t* const inSizes,
40 : const unsigned nInputs, void* const outData,
41 : eq_uint64_t* const outDims, const eq_uint64_t flags,
42 : void* const );
43 :
44 0 : static Compressor* getNewCompressor( const unsigned /*name*/ )
45 0 : { return new CompressorRLE4HF; }
46 : };
47 :
48 : class CompressorDiffRLE4HF : public CompressorRLE4HF
49 : {
50 : public:
51 0 : CompressorDiffRLE4HF() : CompressorRLE4HF() {}
52 0 : virtual ~CompressorDiffRLE4HF() {}
53 :
54 : void compress( const void* const inData, const eq_uint64_t nPixels,
55 : const bool useAlpha ) override;
56 :
57 : static void decompress( const void* const* inData,
58 : const eq_uint64_t* const inSizes,
59 : const unsigned nInputs, void* const outData,
60 : eq_uint64_t* const outDims, const eq_uint64_t flags,
61 : void* const );
62 :
63 0 : static Compressor* getNewCompressor( const unsigned /*name*/ )
64 0 : { return new CompressorDiffRLE4HF; }
65 : };
66 :
67 : }
68 : }
69 : #endif // PRESSION_PLUGIN_COMPRESSORRLE4HF
|