LCOV - code coverage report
Current view: top level - eq - pixelData.cpp (source / functions) Hit Total Coverage
Test: Equalizer Lines: 16 23 69.6 %
Date: 2017-12-16 05:07:20 Functions: 5 6 83.3 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2006-2017, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *                          Daniel Nachbaur <danielnachbaur@gmail.com>
       4             :  *                          Cedric Stalder <cedric.stalder@gmail.com>
       5             :  *
       6             :  * This library is free software; you can redistribute it and/or modify it under
       7             :  * the terms of the GNU Lesser General Public License version 2.1 as published
       8             :  * by the Free Software Foundation.
       9             :  *
      10             :  * This library is distributed in the hope that it will be useful, but WITHOUT
      11             :  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      12             :  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
      13             :  * details.
      14             :  *
      15             :  * You should have received a copy of the GNU Lesser General Public License
      16             :  * along with this library; if not, write to the Free Software Foundation, Inc.,
      17             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      18             :  */
      19             : 
      20             : #include "pixelData.h"
      21             : 
      22             : #include <pression/plugins/compressor.h>
      23             : 
      24             : namespace eq
      25             : {
      26          32 : PixelData::PixelData()
      27             : {
      28          32 :     reset();
      29          31 : }
      30             : 
      31           0 : PixelData::PixelData(const PixelData& rhs)
      32           0 :     : internalFormat(rhs.internalFormat)
      33           0 :     , externalFormat(rhs.externalFormat)
      34           0 :     , pixelSize(rhs.pixelSize)
      35             :     , pvp(rhs.pvp)
      36             :     , compressedData(rhs.compressedData)
      37           0 :     , compressorName(rhs.compressorName)
      38           0 :     , compressorFlags(rhs.compressorFlags)
      39             : {
      40           0 : }
      41             : 
      42          64 : PixelData::~PixelData()
      43             : {
      44          32 :     reset();
      45          32 : }
      46             : 
      47          68 : void PixelData::reset()
      48             : {
      49          68 :     internalFormat = EQ_COMPRESSOR_DATATYPE_NONE;
      50          68 :     externalFormat = EQ_COMPRESSOR_DATATYPE_NONE;
      51          68 :     pixelSize = 0;
      52          68 :     pixels = 0;
      53          68 :     compressedData = pression::CompressorResult();
      54          67 :     compressorName = EQ_COMPRESSOR_INVALID;
      55          67 :     compressorFlags = 0;
      56          67 : }
      57          30 : }

Generated by: LCOV version 1.11