- Reestructuración de ficheros y directorios general
- merge v0.01 --> Añadido fileselector - Añadidas fuentes de Gem y Pure Data - pix2jpg incluído en Gem. Archivos de construcción de Gem modificados. - Añadido fichero ompiling.txt con instrucciones de compilación
This commit is contained in:
parent
c9adfd020b
commit
e85d191b46
3100 changed files with 775434 additions and 3073 deletions
59
Gem/plugins/imageSGI/imageSGI.h
Normal file
59
Gem/plugins/imageSGI/imageSGI.h
Normal file
|
@ -0,0 +1,59 @@
|
|||
/*-----------------------------------------------------------------
|
||||
|
||||
GEM - Graphics Environment for Multimedia
|
||||
|
||||
Load an SGI picture
|
||||
|
||||
Copyright (c) 2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at
|
||||
For information on usage and redistribution, and for a DISCLAIMER OF ALL
|
||||
WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
|
||||
|
||||
|
||||
-----------------------------------------------------------------*/
|
||||
|
||||
#ifndef _INCLUDE_GEMPLUGIN__IMAGESGI_IMAGESGI_H_
|
||||
#define _INCLUDE_GEMPLUGIN__IMAGESGI_IMAGESGI_H_
|
||||
#include "plugins/imageloader.h"
|
||||
#include <stdio.h>
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
-------------------------------------------------------------------
|
||||
CLASS
|
||||
imageSGI
|
||||
|
||||
Loads in a picture
|
||||
|
||||
KEYWORDS
|
||||
pix
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
-----------------------------------------------------------------*/
|
||||
namespace gem { namespace plugins {
|
||||
class GEM_EXPORT imageSGI : public gem::plugins::imageloader {
|
||||
public:
|
||||
|
||||
//////////
|
||||
// Constructor
|
||||
imageSGI(void);
|
||||
virtual ~imageSGI(void);
|
||||
|
||||
//////////
|
||||
// read an image
|
||||
virtual bool load(std::string filename, imageStruct&result, gem::Properties&props);
|
||||
//////////
|
||||
// write an image
|
||||
virtual bool save(const imageStruct&img, const std::string&filename, const std::string&mimetype, const gem::Properties&props);
|
||||
//////////
|
||||
// estimate, how well we could save this image
|
||||
virtual float estimateSave(const imageStruct&img, const std::string&filename, const std::string&mimetype, const gem::Properties&props);
|
||||
|
||||
|
||||
// this is always threadable
|
||||
virtual bool isThreadable(void) { return true; }
|
||||
|
||||
|
||||
};
|
||||
};};
|
||||
|
||||
#endif // for header file
|
Loading…
Add table
Add a link
Reference in a new issue