Equalizer 1.0

pixelData.h

00001 
00002 /* Copyright (c) 2006-2010, Stefan Eilemann <eile@equalizergraphics.com>
00003  *                    2010, Cedric Stalder <cedric.stalder@gmail.com>
00004  *
00005  * This library is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Lesser General Public License version 2.1 as published
00007  * by the Free Software Foundation.
00008  *  
00009  * This library is distributed in the hope that it will be useful, but WITHOUT
00010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00011  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00012  * details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this library; if not, write to the Free Software Foundation, Inc.,
00016  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  */
00018 
00019 #ifndef EQ_PIXELDATA_H
00020 #define EQ_PIXELDATA_H
00021 
00022 #include <eq/fabric/pixelViewport.h> // member
00023 #include <eq/fabric/viewport.h>      // member
00024 #include <eq/util/texture.h>         // member
00025 #include <eq/util/types.h>
00026 #include <co/base/buffer.h>          // member
00027 
00028 #include <co/plugins/compressor.h> // EqCompressorInfos typedef
00029 
00030 namespace eq
00031 {
00033     struct PixelData : public co::base::NonCopyable
00034     {
00036         EQ_API PixelData();
00037 
00039         EQ_API ~PixelData();
00040 
00048         void reset();
00049 
00055         uint32_t internalFormat;
00056 
00062         uint32_t externalFormat;
00063 
00069         uint32_t pixelSize;
00070 
00082         PixelViewport pvp;
00083 
00085         void* pixels;
00086 
00088         std::vector< void* > compressedData;
00089 
00091         std::vector< uint64_t > compressedSize;
00092 
00094         uint32_t compressorName;
00095         uint32_t compressorFlags; 
00096         bool isCompressed; 
00097     };
00098 };
00099 #endif // EQ_PIXELDATA_H
Generated on Sun May 8 2011 19:11:07 for Equalizer 1.0 by  doxygen 1.7.3