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 <lunchbox/plugins/compressor.h>
23 :
24 : namespace eq
25 : {
26 1686 : PixelData::PixelData()
27 : {
28 1686 : reset();
29 1686 : }
30 :
31 132 : PixelData::~PixelData()
32 : {
33 66 : reset();
34 66 : }
35 :
36 1786 : void PixelData::reset()
37 : {
38 1786 : internalFormat = EQ_COMPRESSOR_DATATYPE_NONE;
39 1786 : externalFormat = EQ_COMPRESSOR_DATATYPE_NONE;
40 1786 : pixelSize = 0;
41 1786 : pixels = 0;
42 1786 : compressedData = lunchbox::CompressorResult();
43 1786 : compressorName = EQ_COMPRESSOR_INVALID;
44 1786 : compressorFlags = 0;
45 1786 : }
46 :
47 36 : }
|