Equalizer  1.9.0
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pixelData.h
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 #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 <pression/compressorResult.h> // member
29 
30 namespace eq
31 {
33 struct PixelData : public boost::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  pression::CompressorResult compressedData;
89 
91  uint32_t compressorName;
92 
93  uint32_t compressorFlags;
94 };
95 };
96 #endif // EQ_PIXELDATA_H
uint32_t internalFormat
The type of data stored in FrameBuffer or texture on the GPU.
Definition: pixelData.h:55
uint32_t externalFormat
The type of data stored in pixels in main memory.
Definition: pixelData.h:62
The pixel data structure manages the pixel information for images.
Definition: pixelData.h:33
uint32_t pixelSize
The size of one pixel, in bytes, stored in pixels.
Definition: pixelData.h:69
EQ_API PixelData()
Construct new pixel data.
void reset()
Reset the data.
void * pixels
uncompressed pixel data, pvp * pixelSize bytes.
Definition: pixelData.h:85
uint32_t compressorFlags
Flags used for compression.
Definition: pixelData.h:93
EQ_API ~PixelData()
Destruct the pixel data.
pression::CompressorResult compressedData
The compressed pixel data blocks.
Definition: pixelData.h:88
PixelViewport pvp
The dimensions of the pixel data in pixels.
Definition: pixelData.h:82
uint32_t compressorName
The compressor used to produce compressedData.
Definition: pixelData.h:91