Equalizer  1.6.1
pixelData.h
1 
2 /* Copyright (c) 2006-2013, 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 #ifndef EQ_PIXELDATA_H
21 #define EQ_PIXELDATA_H
22 
23 #include <eq/fabric/pixelViewport.h> // member
24 #include <eq/fabric/viewport.h> // member
25 #include <eq/util/texture.h> // member
26 #include <eq/util/types.h>
27 
28 #include <lunchbox/buffer.h> // member
29 
30 namespace eq
31 {
33  struct PixelData : public lunchbox::NonCopyable
34  {
36  EQ_API PixelData();
37 
39  EQ_API ~PixelData();
40 
48  void reset();
49 
55  uint32_t internalFormat;
56 
62  uint32_t externalFormat;
63 
69  uint32_t pixelSize;
70 
82  PixelViewport pvp;
83 
85  void* pixels;
86 
88  std::vector< void* > compressedData;
89 
91  std::vector< uint64_t > compressedSize;
92 
94  uint32_t compressorName;
95  uint32_t compressorFlags;
96  bool isCompressed;
97  };
98 };
99 #endif // EQ_PIXELDATA_H
~PixelData()
Destruct the pixel data.
The pixel data structure manages the pixel information for images.
Definition: pixelData.h:33
uint32_t compressorName
The compressor used to produce compressedData.
Definition: pixelData.h:94
uint32_t pixelSize
The size of one pixel, in bytes, stored in pixels.
Definition: pixelData.h:69
uint32_t externalFormat
The type of data stored in pixels in main memory.
Definition: pixelData.h:62
uint32_t compressorFlags
Flags used for compression.
Definition: pixelData.h:95
std::vector< void * > compressedData
The compressed pixel data blocks.
Definition: pixelData.h:88
void reset()
Reset the data.
PixelViewport pvp
The dimensions of the pixel data in pixels.
Definition: pixelData.h:82
bool isCompressed
The compressed pixel data is set.
Definition: pixelData.h:96
void * pixels
uncompressed pixel data, pvp * pixelSize bytes.
Definition: pixelData.h:85
PixelData()
Construct new pixel data.
std::vector< uint64_t > compressedSize
Sizes of each compressed pixel data block.
Definition: pixelData.h:91
uint32_t internalFormat
The type of data stored in FrameBuffer or texture on the GPU.
Definition: pixelData.h:55