Equalizer  2.1.0
Parallel Rendering Framework
pixelData.h
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 #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
34 {
36  EQ_API PixelData();
37 
39  EQ_API PixelData(const PixelData& rhs);
40 
42  EQ_API ~PixelData();
43 
51  void reset();
52 
58  uint32_t internalFormat;
59 
65  uint32_t externalFormat;
66 
72  uint32_t pixelSize;
73 
85  PixelViewport pvp;
86 
88  void* pixels;
89 
91  pression::CompressorResult compressedData;
92 
94  uint32_t compressorName;
95 
96  uint32_t compressorFlags;
97 
98 private:
99  PixelData& operator=(const PixelData&) = delete;
100 };
101 }
102 
103 #endif // EQ_PIXELDATA_H
uint32_t internalFormat
The type of data stored in FrameBuffer or texture on the GPU.
Definition: pixelData.h:58
uint32_t externalFormat
The type of data stored in pixels in main memory.
Definition: pixelData.h:65
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:72
EQ_API PixelData()
Construct new pixel data.
void reset()
Reset the data.
void * pixels
uncompressed pixel data, pvp * pixelSize bytes.
Definition: pixelData.h:88
uint32_t compressorFlags
Flags used for compression.
Definition: pixelData.h:96
EQ_API ~PixelData()
Destruct the pixel data.
The Equalizer client library.
Definition: eq/agl/types.h:23
pression::CompressorResult compressedData
The compressed pixel data blocks.
Definition: pixelData.h:91
PixelViewport pvp
The dimensions of the pixel data in pixels.
Definition: pixelData.h:85
uint32_t compressorName
The compressor used to produce compressedData.
Definition: pixelData.h:94