LCOV - code coverage report
Current view: top level - lunchbox/compressor - compressorRLE4B.h (source / functions) Hit Total Coverage
Test: lcov2.info Lines: 0 8 0.0 %
Date: 2014-10-01 Functions: 0 8 0.0 %

          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             : #ifndef LUNCHBOX_PLUGIN_COMPRESSORRLE4B
      20             : #define LUNCHBOX_PLUGIN_COMPRESSORRLE4B
      21             : 
      22             : #include "compressor.h"
      23             : 
      24             : namespace lunchbox
      25             : {
      26             : namespace plugin
      27             : {
      28             : 
      29             : class CompressorRLE4B : public Compressor
      30             : {
      31             : public:
      32           0 :     CompressorRLE4B() : Compressor() {}
      33           0 :     virtual ~CompressorRLE4B() {}
      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             : 
      45           0 :     static Compressor* getNewCompressor( const unsigned /*name*/ )
      46           0 :         { return new CompressorRLE4B; }
      47             : 
      48             : protected:
      49             : };
      50             : 
      51             : 
      52             : 
      53             : class CompressorDiffRLE4B : public CompressorRLE4B
      54             : {
      55             : public:
      56           0 :     CompressorDiffRLE4B() : CompressorRLE4B() {}
      57           0 :     virtual ~CompressorDiffRLE4B() {}
      58             : 
      59             :     /** get a new instance of compressor RLE 4 bytes and swizzle data. */
      60           0 :     static Compressor* getNewCompressor( const unsigned /*name*/ )
      61           0 :         { return new CompressorDiffRLE4B; }
      62             : 
      63             :     void compress( const void* const inData, const eq_uint64_t nPixels,
      64             :                    const bool useAlpha ) override;
      65             : 
      66             :     static void decompress( const void* const* inData,
      67             :                             const eq_uint64_t* const inSizes,
      68             :                             const unsigned nInputs, void* const outData,
      69             :                             eq_uint64_t* const outDims, const eq_uint64_t flags,
      70             :                             void* const );
      71             : };
      72             : 
      73             : }
      74             : }
      75             : #endif // LUNCHBOX_PLUGIN_COMPRESSORRLE4B

Generated by: LCOV version 1.10