LCOV - code coverage report
Current view: top level - eq - pixelData.cpp (source / functions) Hit Total Coverage
Test: Equalizer Lines: 16 16 100.0 %
Date: 2016-07-30 05:04:55 Functions: 5 5 100.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2006-2014, Stefan Eilemann <eile@equalizergraphics.com>
       3             :  *                    2011, Daniel Nachbaur <danielnachbaur@gmail.com>
       4             :  *                    2010, 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        1646 : PixelData::PixelData()
      27             : {
      28        1646 :     reset();
      29        1646 : }
      30             : 
      31          52 : PixelData::~PixelData()
      32             : {
      33          26 :     reset();
      34          26 : }
      35             : 
      36        1672 : void PixelData::reset()
      37             : {
      38        1672 :     internalFormat = EQ_COMPRESSOR_DATATYPE_NONE;
      39        1672 :     externalFormat = EQ_COMPRESSOR_DATATYPE_NONE;
      40        1672 :     pixelSize = 0;
      41        1672 :     pixels = 0;
      42        1672 :     compressedData = pression::CompressorResult();
      43        1672 :     compressorName = EQ_COMPRESSOR_INVALID;
      44        1672 :     compressorFlags = 0;
      45        1672 : }
      46             : 
      47          42 : }

Generated by: LCOV version 1.11