ImageProcessor
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGDB_IMAGEPROCESSOR
#define OSGDB_IMAGEPROCESSOR 1
#include <osg/Object>
namespace osgDB {
class ImageProcessor : public osg::Object
{
public:
ImageProcessor():
osg::Object(true) {}
ImageProcessor(const ImageProcessor& rw,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY):
osg::Object(rw,copyop) {}
virtual ~ImageProcessor() {}
META_Object(osgDB,ImageProcessor);
enum CompressionMethod
{
USE_CPU,
USE_GPU
};
enum CompressionQuality
{
FASTEST,
NORMAL,
PRODUCTION,
HIGHEST
};
virtual void compress(osg::Image& /*image*/, osg::Texture::InternalFormatMode /*compressedFormat*/, bool /*generateMipMap*/, bool /*resizeToPowerOfTwo*/, CompressionMethod /*method*/, CompressionQuality /*quality*/) {}
virtual void generateMipMap(osg::Image& /*image*/, bool /*resizeToPowerOfTwo*/, CompressionMethod /*method*/) {}
};
}
#endif
Object
osgDB::ImageProcessor::ImageProcessor
ImageProcessor()
Definition ImageProcessor:25
osgDB::ImageProcessor::CompressionMethod
CompressionMethod
Definition ImageProcessor:36
osgDB::ImageProcessor::USE_CPU
@ USE_CPU
Definition ImageProcessor:37
osgDB::ImageProcessor::USE_GPU
@ USE_GPU
Use CPU for compression even when GPU compression is available.
Definition ImageProcessor:38
osgDB::ImageProcessor::compress
virtual void compress(osg::Image &, osg::Texture::InternalFormatMode, bool, bool, CompressionMethod, CompressionQuality)
Definition ImageProcessor:49
osgDB::ImageProcessor::CompressionQuality
CompressionQuality
Definition ImageProcessor:42
osgDB::ImageProcessor::PRODUCTION
@ PRODUCTION
Definition ImageProcessor:45
osgDB::ImageProcessor::NORMAL
@ NORMAL
Definition ImageProcessor:44
osgDB::ImageProcessor::FASTEST
@ FASTEST
Definition ImageProcessor:43
osgDB::ImageProcessor::HIGHEST
@ HIGHEST
Definition ImageProcessor:46
osgDB::ImageProcessor::generateMipMap
virtual void generateMipMap(osg::Image &, bool, CompressionMethod)
Definition ImageProcessor:50
osgDB::ImageProcessor::~ImageProcessor
virtual ~ImageProcessor()
Definition ImageProcessor:31
osgDB::ImageProcessor::META_Object
META_Object(osgDB, ImageProcessor)
osgDB::ImageProcessor::ImageProcessor
ImageProcessor(const ImageProcessor &rw, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition ImageProcessor:28
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Image
Definition Image:179
osg::Object
Definition Object:61
osg::Object::Object
Object()
Definition Object:69
osg::Texture::InternalFormatMode
InternalFormatMode
Definition Texture:581
osgDB
Definition Archive:24
osg
Definition AlphaFunc:19