- 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
181
Gem/plugins/imageMAGICK/MagickCore.cpp
Normal file
181
Gem/plugins/imageMAGICK/MagickCore.cpp
Normal file
|
@ -0,0 +1,181 @@
|
|||
////////////////////////////////////////////////////////
|
||||
//
|
||||
// GEM - Graphics Environment for Multimedia
|
||||
//
|
||||
// zmoelnig@iem.kug.ac.at
|
||||
//
|
||||
// Implementation file
|
||||
//
|
||||
// Copyright (c) 1997-1999 Mark Danks.
|
||||
// Copyright (c) Günther Geiger.
|
||||
// Copyright (c) 2001-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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
/* this implements ImageMagick loading/saving using MagickCore */
|
||||
|
||||
#include "imageMAGICK.h"
|
||||
#include "Gem/RTE.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# if !defined(_W64)
|
||||
# if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
|
||||
# define _W64 __w64
|
||||
# else
|
||||
# define _W64
|
||||
# endif
|
||||
# endif
|
||||
# ifdef _WIN64
|
||||
typedef __int64 ssize_t;
|
||||
# else
|
||||
typedef _w64 int ssize_t;
|
||||
# endif
|
||||
#endif
|
||||
#include <magick/MagickCore.h>
|
||||
|
||||
using namespace gem::plugins;
|
||||
|
||||
namespace {
|
||||
static bool showException(ExceptionInfo*exception, const std::string&prefix=std::string()) {
|
||||
if(!exception)return true;
|
||||
if (exception->severity == UndefinedException)
|
||||
return false;
|
||||
|
||||
bool iswarning=exception->severity < ErrorException;
|
||||
|
||||
std::string message=prefix;
|
||||
message+="[";
|
||||
message+= SetClientName(0);
|
||||
message+="]";
|
||||
|
||||
if(!iswarning)
|
||||
message+"!";
|
||||
|
||||
message+=": ";
|
||||
|
||||
if ( exception->reason != 0 ) {
|
||||
message += std::string(exception->reason);
|
||||
}
|
||||
if ( exception->description != 0 )
|
||||
message += " (" + std::string(exception->description) + ")";
|
||||
|
||||
if(iswarning) {
|
||||
verbose(1, "%s", message.c_str());
|
||||
} else {
|
||||
verbose(1, "%s", message.c_str());
|
||||
}
|
||||
return (!iswarning);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
// really open the file ! (OS dependent)
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
bool imageMAGICK :: load(std::string filename, imageStruct&result, gem::Properties&props)
|
||||
{
|
||||
bool success=false;
|
||||
::verbose(2, "reading '%s' with ImageMagick", filename.c_str());
|
||||
ExceptionInfo*exception=AcquireExceptionInfo();
|
||||
ImageInfo*image_info=CloneImageInfo((ImageInfo *) NULL);
|
||||
CopyMagickString(image_info->filename,filename.c_str(), MaxTextExtent);
|
||||
|
||||
Image*image=ReadImage(image_info,exception);
|
||||
if(showException(exception, "magick reading problem"))
|
||||
goto cleanup;
|
||||
if (image == (Image *) NULL)
|
||||
goto cleanup;
|
||||
|
||||
result.xsize=static_cast<GLint>(image->columns);
|
||||
result.ysize=static_cast<GLint>(image->rows);
|
||||
result.setCsizeByFormat(GL_RGBA);
|
||||
result.reallocate();
|
||||
|
||||
result.upsidedown=true;
|
||||
|
||||
ExportImagePixels(image, 0, 0, result.xsize, result.ysize,
|
||||
"RGBA",
|
||||
CharPixel,
|
||||
reinterpret_cast<void*>(result.data),
|
||||
exception);
|
||||
if(showException(exception, "magick decoding problem"))
|
||||
goto cleanup;
|
||||
|
||||
success=true;
|
||||
|
||||
cleanup:
|
||||
if(image_info)
|
||||
image_info=DestroyImageInfo(image_info);
|
||||
if(exception)
|
||||
exception=DestroyExceptionInfo(exception);
|
||||
return success;
|
||||
}
|
||||
bool imageMAGICK::save(const imageStruct&image, const std::string&filename, const std::string&mimetype, const gem::Properties&props) {
|
||||
error("GEM::imageMAGICK::save (MagickCore) seems to be broken! we are trying to fix it");
|
||||
|
||||
imageStruct*img=const_cast<imageStruct*>(&image);
|
||||
imageStruct*pImage=img;
|
||||
bool result=false;
|
||||
|
||||
ImageInfo*image_info=CloneImageInfo((ImageInfo *) NULL);
|
||||
Image*finalImage=NULL;
|
||||
CopyMagickString(image_info->filename,filename.c_str(), MaxTextExtent);
|
||||
|
||||
std::string cs;
|
||||
switch(img->format) {
|
||||
case GL_LUMINANCE:
|
||||
cs="K";
|
||||
break;
|
||||
case GL_RGBA:
|
||||
cs="RGBA";
|
||||
break;
|
||||
default:
|
||||
pImage=new imageStruct();
|
||||
pImage->convertFrom(img, GL_RGB);
|
||||
case GL_RGB:
|
||||
cs="RGB";
|
||||
break;
|
||||
case GL_BGRA_EXT:
|
||||
cs="BGRA";
|
||||
break;
|
||||
}
|
||||
|
||||
ExceptionInfo*exception=AcquireExceptionInfo();
|
||||
Image *mimage = ConstituteImage(pImage->xsize,pImage->ysize,
|
||||
cs.c_str(), CharPixel,
|
||||
pImage->data,exception);
|
||||
if(showException(exception, "magick conversion problem"))
|
||||
goto cleanup;
|
||||
|
||||
finalImage=(pImage->upsidedown)?mimage:FlipImage( mimage, exception );
|
||||
if(showException(exception, "magick flipping problem"))
|
||||
goto cleanup;
|
||||
|
||||
finalImage->depth=8;
|
||||
//options->depth = 8;
|
||||
|
||||
double quality;
|
||||
if(props.get("quality", quality)) {
|
||||
finalImage->quality=quality;
|
||||
//options->quality = quality;
|
||||
}
|
||||
|
||||
WriteImage(image_info,finalImage);
|
||||
if(showException(&finalImage->exception, "magick writing problem"))
|
||||
goto cleanup;
|
||||
|
||||
result=true;
|
||||
|
||||
cleanup:
|
||||
if(finalImage!=mimage)
|
||||
finalImage=DestroyImage(finalImage);
|
||||
|
||||
mimage=DestroyImage(mimage);
|
||||
exception=DestroyExceptionInfo(exception);
|
||||
image_info=DestroyImageInfo(image_info);
|
||||
|
||||
return result;
|
||||
}
|
122
Gem/plugins/imageMAGICK/MagickPlusPlus.cpp
Normal file
122
Gem/plugins/imageMAGICK/MagickPlusPlus.cpp
Normal file
|
@ -0,0 +1,122 @@
|
|||
////////////////////////////////////////////////////////
|
||||
//
|
||||
// GEM - Graphics Environment for Multimedia
|
||||
//
|
||||
// zmoelnig@iem.kug.ac.at
|
||||
//
|
||||
// Implementation file
|
||||
//
|
||||
// Copyright (c) 1997-1999 Mark Danks.
|
||||
// Copyright (c) Günther Geiger.
|
||||
// Copyright (c) 2001-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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
/* this implements ImageMagick loading/saving using Magick++ */
|
||||
|
||||
#include "imageMAGICK.h"
|
||||
#include "Gem/RTE.h"
|
||||
|
||||
#include <Magick++.h>
|
||||
|
||||
using namespace gem::plugins;
|
||||
|
||||
namespace MagickCore {};
|
||||
using namespace MagickCore;
|
||||
|
||||
namespace MagickLib {};
|
||||
using namespace MagickLib;
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
// really open the file ! (OS dependent)
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
bool imageMAGICK :: load(std::string filename, imageStruct&result, gem::Properties&props)
|
||||
{
|
||||
Magick::Image image;
|
||||
try {
|
||||
::verbose(2, "reading '%s' with ImageMagick", filename.c_str());
|
||||
// Read a file into image object
|
||||
try {
|
||||
image.read( filename );
|
||||
} catch (Magick::Warning e) {
|
||||
verbose(1, "magick loading problem: %s", e.what());
|
||||
}
|
||||
|
||||
result.xsize=static_cast<GLint>(image.columns());
|
||||
result.ysize=static_cast<GLint>(image.rows());
|
||||
result.setCsizeByFormat(GL_RGBA);
|
||||
result.reallocate();
|
||||
|
||||
result.upsidedown=true;
|
||||
|
||||
try {
|
||||
image.write(0,0,result.xsize,result.ysize,
|
||||
"RGBA",
|
||||
Magick::CharPixel,
|
||||
reinterpret_cast<void*>(result.data));
|
||||
} catch (Magick::Warning e) {
|
||||
verbose(1, "magick decoding problem: %s", e.what());
|
||||
}
|
||||
}catch( Magick::Exception e ) {
|
||||
verbose(1, "magick loading image failed with: %s", e.what());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool imageMAGICK::save(const imageStruct&image, const std::string&filename, const std::string&mimetype, const gem::Properties&props) {
|
||||
imageStruct*img=const_cast<imageStruct*>(&image);
|
||||
imageStruct*pImage=img;
|
||||
|
||||
std::string cs;
|
||||
switch(img->format) {
|
||||
case GL_LUMINANCE:
|
||||
cs="K";
|
||||
break;
|
||||
case GL_RGBA:
|
||||
cs="RGBA";
|
||||
break;
|
||||
default:
|
||||
pImage=new imageStruct();
|
||||
pImage->convertFrom(img, GL_RGB);
|
||||
case GL_RGB:
|
||||
cs="RGB";
|
||||
break;
|
||||
case GL_BGRA_EXT:
|
||||
cs="BGRA";
|
||||
break;
|
||||
}
|
||||
try{
|
||||
Magick::Image mimage(pImage->xsize, pImage->ysize, cs, Magick::CharPixel, pImage->data);
|
||||
// since openGL is upside down
|
||||
if(!pImage->upsidedown) {
|
||||
mimage.flip();
|
||||
}
|
||||
// 8 bits per channel are enough!
|
||||
// LATER make this dependent on the image->type
|
||||
mimage.depth(8);
|
||||
double quality;
|
||||
if(props.get("quality", quality)) {
|
||||
mimage.quality(quality);
|
||||
}
|
||||
|
||||
try {
|
||||
// finally convert and export
|
||||
mimage.write(filename);
|
||||
} catch (Magick::Warning e) {
|
||||
verbose(1, "magick saving problem: %s", e.what());
|
||||
}
|
||||
|
||||
} catch (Magick::Exception e){
|
||||
error("%s", e.what());
|
||||
if(pImage!=&image)delete pImage; pImage=NULL;
|
||||
return false;
|
||||
} catch (...) {
|
||||
error("imageMAGICK:: uncaught exception!");
|
||||
return false;
|
||||
}
|
||||
if(pImage!=&image)delete pImage; pImage=NULL;
|
||||
return true;
|
||||
}
|
59
Gem/plugins/imageMAGICK/Makefile.am
Normal file
59
Gem/plugins/imageMAGICK/Makefile.am
Normal file
|
@ -0,0 +1,59 @@
|
|||
|
||||
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src @GEM_EXTERNAL_CPPFLAGS@
|
||||
|
||||
EXTRA_DIST =
|
||||
EXTRA_DIST += win-vs2003/imageMAGICK.sln win-vs2003/imageMAGICK.vcproj
|
||||
EXTRA_DIST += win-vs2008/imageMAGICK.sln win-vs2008/imageMAGICK.vcproj
|
||||
EXTRA_DIST += win-vs2008/ImageMagick_Release.vsprops win-vs2008/ImageMagick.vsprops
|
||||
|
||||
pkglib_LTLIBRARIES=
|
||||
if HAVE_LIB_IMAGEMAGICK__
|
||||
pkglib_LTLIBRARIES+= gem_imageMAGICK.la
|
||||
else
|
||||
if HAVE_LIB_MAGICKCORE
|
||||
pkglib_LTLIBRARIES+= gem_imageMAGICK.la
|
||||
endif
|
||||
endif
|
||||
|
||||
gem_imageMAGICK_la_CXXFLAGS =
|
||||
gem_imageMAGICK_la_LDFLAGS = -module -avoid-version -shared
|
||||
if WINDOWS
|
||||
gem_imageMAGICK_la_LDFLAGS += -no-undefined
|
||||
endif
|
||||
gem_imageMAGICK_la_LIBADD =
|
||||
|
||||
# RTE
|
||||
gem_imageMAGICK_la_CXXFLAGS += @GEM_RTE_CFLAGS@ @GEM_ARCH_CXXFLAGS@
|
||||
gem_imageMAGICK_la_LDFLAGS += @GEM_RTE_LIBS@ @GEM_ARCH_LDFLAGS@
|
||||
# flags for building Gem externals
|
||||
gem_imageMAGICK_la_CXXFLAGS += @GEM_EXTERNAL_CFLAGS@
|
||||
gem_imageMAGICK_la_LIBADD += -L$(top_builddir) @GEM_EXTERNAL_LIBS@
|
||||
# gem_imageMAGICK_la @MOREFLAGS@
|
||||
|
||||
# Dependencies
|
||||
if HAVE_LIB_IMAGEMAGICK__
|
||||
gem_imageMAGICK_la_CXXFLAGS += @GEM_LIB_IMAGEMAGICK___CFLAGS@
|
||||
gem_imageMAGICK_la_LIBADD += @GEM_LIB_IMAGEMAGICK___LIBS@
|
||||
else
|
||||
if HAVE_LIB_MAGICKCORE
|
||||
gem_imageMAGICK_la_CXXFLAGS += @GEM_LIB_MAGICKCORE_CFLAGS@
|
||||
gem_imageMAGICK_la_LIBADD += @GEM_LIB_MAGICKCORE_LIBS@
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
# convenience symlinks
|
||||
include $(srcdir)/../symlink_ltlib.mk
|
||||
|
||||
|
||||
### SOURCES
|
||||
gem_imageMAGICK_la_SOURCES = imageMAGICK.cpp imageMAGICK.h
|
||||
|
||||
if HAVE_LIB_IMAGEMAGICK__
|
||||
gem_imageMAGICK_la_SOURCES+= MagickPlusPlus.cpp
|
||||
else
|
||||
if HAVE_LIB_MAGICKCORE
|
||||
gem_imageMAGICK_la_SOURCES+= MagickCore.cpp
|
||||
endif
|
||||
endif
|
142
Gem/plugins/imageMAGICK/imageMAGICK.cpp
Normal file
142
Gem/plugins/imageMAGICK/imageMAGICK.cpp
Normal file
|
@ -0,0 +1,142 @@
|
|||
////////////////////////////////////////////////////////
|
||||
//
|
||||
// GEM - Graphics Environment for Multimedia
|
||||
//
|
||||
// zmoelnig@iem.kug.ac.at
|
||||
//
|
||||
// Implementation file
|
||||
//
|
||||
// Copyright (c) 1997-1999 Mark Danks.
|
||||
// Copyright (c) Günther Geiger.
|
||||
// Copyright (c) 2001-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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBMAGICK
|
||||
|
||||
#include <string.h>
|
||||
#include "imageMAGICK.h"
|
||||
#include "plugins/PluginFactory.h"
|
||||
#include "Gem/RTE.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# if !defined(_W64)
|
||||
# if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
|
||||
# define _W64 __w64
|
||||
# else
|
||||
# define _W64
|
||||
# endif
|
||||
# endif
|
||||
# ifdef _WIN64
|
||||
typedef __int64 ssize_t;
|
||||
# else
|
||||
typedef _w64 int ssize_t;
|
||||
# endif
|
||||
#endif
|
||||
#include <magick/MagickCore.h>
|
||||
|
||||
// hmm, the GetMimeList() function has changed!
|
||||
// ImageMagick-6.6.2-0: **GetMimeList(const char *,unsigned long *,ExceptionInfo *),
|
||||
// ImageMagick-6.6.2-1: **GetMimeList(const char *,size_t *,ExceptionInfo *),
|
||||
// theoretically, "unsigned long" and "size_t" are pretty much the same
|
||||
// but in practice the compiler will complain bitterly
|
||||
// set let's do some magick...
|
||||
|
||||
#ifndef MagickLibInterface
|
||||
# define MagickLibInterface 0
|
||||
#endif
|
||||
#ifndef MagickLibVersion
|
||||
# define MagickLibVersion 0
|
||||
#endif
|
||||
|
||||
// this won't catch ImageMagick>=6.6.2-0, but what can I do?
|
||||
// ubuntu/natty ships with 6.6.2-6!
|
||||
// another workaround: compile with "-fpermissive"
|
||||
#if (MagickLibInterface > 3) || (MagickLibVersion >= 0x662)
|
||||
# define mimelistlength_t size_t
|
||||
#else
|
||||
# define mimelistlength_t unsigned long
|
||||
#endif
|
||||
|
||||
|
||||
using namespace gem::plugins;
|
||||
|
||||
|
||||
namespace MagickCore {};
|
||||
using namespace MagickCore;
|
||||
|
||||
namespace MagickLib {};
|
||||
using namespace MagickLib;
|
||||
|
||||
REGISTER_IMAGELOADERFACTORY("magick", imageMAGICK);
|
||||
REGISTER_IMAGESAVERFACTORY("magick", imageMAGICK);
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
//
|
||||
// imageMAGICK
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
// Constructor
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
imageMAGICK :: imageMAGICK(void)
|
||||
{
|
||||
if(!IsMagickInstantiated())
|
||||
MagickCoreGenesis(NULL,MagickTrue);
|
||||
|
||||
//post("imageMAGICK");
|
||||
char**mimelist;
|
||||
mimelistlength_t length;
|
||||
ExceptionInfo exception;
|
||||
GetExceptionInfo(&exception);
|
||||
mimelist=GetMimeList("image/*", &length, &exception);
|
||||
unsigned int i;
|
||||
for(i=0; i<length; i++) {
|
||||
m_mimetypes.push_back(mimelist[i]);
|
||||
}
|
||||
|
||||
}
|
||||
imageMAGICK :: ~imageMAGICK(void)
|
||||
{
|
||||
//post("~imageMAGICK");
|
||||
}
|
||||
|
||||
|
||||
|
||||
float imageMAGICK::estimateSave(const imageStruct&image, const std::string&filename, const std::string&mimetype, const gem::Properties&props) {
|
||||
float result=0.5; // slightly preference for MAGICK
|
||||
unsigned int i;
|
||||
for(i=0; i<m_mimetypes.size(); i++) {
|
||||
if(mimetype==m_mimetypes[i]) {
|
||||
result+=100.;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(gem::Properties::UNSET != props.type("quality"))
|
||||
result += 1.;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void imageMAGICK::getWriteCapabilities(std::vector<std::string>&mimetypes, gem::Properties&props) {
|
||||
mimetypes.clear();
|
||||
props.clear();
|
||||
|
||||
mimetypes = m_mimetypes;
|
||||
|
||||
gem::any value;
|
||||
|
||||
value=100.f;
|
||||
props.set("quality", value);
|
||||
}
|
||||
|
||||
#endif
|
67
Gem/plugins/imageMAGICK/imageMAGICK.h
Normal file
67
Gem/plugins/imageMAGICK/imageMAGICK.h
Normal file
|
@ -0,0 +1,67 @@
|
|||
/*-----------------------------------------------------------------
|
||||
|
||||
GEM - Graphics Environment for Multimedia
|
||||
|
||||
Load a picture (using ImageMagick)
|
||||
|
||||
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__IMAGEMAGICK_IMAGEMAGICK_H_
|
||||
#define _INCLUDE_GEMPLUGIN__IMAGEMAGICK_IMAGEMAGICK_H_
|
||||
#include "plugins/imageloader.h"
|
||||
#include "plugins/imagesaver.h"
|
||||
#include <stdio.h>
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
-------------------------------------------------------------------
|
||||
CLASS
|
||||
imageMAGICK
|
||||
|
||||
Loads in a picture
|
||||
|
||||
KEYWORDS
|
||||
pix
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
-----------------------------------------------------------------*/
|
||||
namespace gem { namespace plugins {
|
||||
class GEM_EXPORT imageMAGICK : public gem::plugins::imageloader, public gem::plugins::imagesaver {
|
||||
public:
|
||||
|
||||
//////////
|
||||
// Constructor
|
||||
imageMAGICK(void);
|
||||
virtual ~imageMAGICK(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);
|
||||
|
||||
////////
|
||||
// get writing capabilities of this backend (informative)
|
||||
virtual void getWriteCapabilities(std::vector<std::string>&mimetypes, gem::Properties&props);
|
||||
|
||||
////////
|
||||
// can be used from threaded contexts
|
||||
virtual bool isThreadable(void) {return true;}
|
||||
|
||||
|
||||
private:
|
||||
std::vector<std::string>m_mimetypes;
|
||||
|
||||
};
|
||||
};};
|
||||
|
||||
#endif // for header file
|
21
Gem/plugins/imageMAGICK/win-vs2003/imageMAGICK.sln
Normal file
21
Gem/plugins/imageMAGICK/win-vs2003/imageMAGICK.sln
Normal file
|
@ -0,0 +1,21 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "imageMAGICK", "imageMAGICK.vcproj", "{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Release = Release
|
||||
ReleaseDummy = ReleaseDummy
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.Release.ActiveCfg = Release|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.Release.Build.0 = Release|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.ReleaseDummy.ActiveCfg = ReleaseDummy|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.ReleaseDummy.Build.0 = ReleaseDummy|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
146
Gem/plugins/imageMAGICK/win-vs2003/imageMAGICK.vcproj
Normal file
146
Gem/plugins/imageMAGICK/win-vs2003/imageMAGICK.vcproj
Normal file
|
@ -0,0 +1,146 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="imageMAGICK"
|
||||
ProjectGUID="{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}"
|
||||
RootNamespace="gem"
|
||||
SccProjectName=""
|
||||
SccLocalPath="">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)"
|
||||
IntermediateDirectory="$(ProjectDir)/$(ConfigurationName)"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
GlobalOptimizations="TRUE"
|
||||
InlineFunctionExpansion="2"
|
||||
FavorSizeOrSpeed="1"
|
||||
OptimizeForProcessor="2"
|
||||
AdditionalIncludeDirectories=""$(SolutionDir)\..\..\src";"$(ProjectDir)\..\..\src";"$(ProjectDir)\..\..\..\..\pd\src";"$(ProgramFiles)\pd\src";"$(IMAGEMAGICK)";"$(IMAGEMAGICK)\magick";"$(IMAGEMAGICK)\Magick++\lib""
|
||||
PreprocessorDefinitions="NT;WIN32;_WINDOWS;__WIN32__;_LANGUAGE_C_PLUS_PLUS;WIN32_LEAN_AND_MEAN;HAVE_LIBMAGICKPLUSPLUS"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
EnableEnhancedInstructionSet="0"
|
||||
DefaultCharIsUnsigned="FALSE"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalDependencies="Gem.lib pd.lib CORE_RL_bzlib_.lib CORE_RL_coders_.lib CORE_RL_filters_.lib CORE_RL_jbig_.lib CORE_RL_jp2_.lib CORE_RL_jpeg_.lib CORE_RL_lcms_.lib CORE_RL_libxml_.lib CORE_RL_magick_.lib CORE_RL_Magick++_.lib CORE_RL_png_.lib CORE_RL_tiff_.lib CORE_RL_ttf_.lib CORE_RL_wand_.lib CORE_RL_xlib_.lib CORE_RL_zlib_.lib CORE_RL_wmf_.lib winmm.lib wsock32.lib"
|
||||
OutputFile="$(OutDir)/gem_$(ProjectName).dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories=""$(SolutionDir)";"$(ProjectDir)\..\..\build\win-vs2003";"$(ProjectDir)\..\..\..\..\pd\bin";"$(ProgramFiles)\pd\bin";"$(IMAGEMAGICK)\VisualMagick\lib\""
|
||||
ProgramDatabaseFile="$(ProjectDir)/$(ProjectName).pdb"
|
||||
ImportLibrary="$(ProjectDir)/$(TargetName).lib"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\./gem.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseDummy|Win32"
|
||||
OutputDirectory="$(SolutionDir)"
|
||||
IntermediateDirectory="$(ProjectDir)/$(ConfigurationName)"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
GlobalOptimizations="TRUE"
|
||||
InlineFunctionExpansion="2"
|
||||
FavorSizeOrSpeed="1"
|
||||
OptimizeForProcessor="2"
|
||||
AdditionalIncludeDirectories=""$(SolutionDir)\..\..\src";"$(ProjectDir)\..\..\src";"$(ProjectDir)\..\..\..\..\pd\src";"$(ProgramFiles)\pd\src""
|
||||
PreprocessorDefinitions="NT;WIN32;_WINDOWS;__WIN32__;_LANGUAGE_C_PLUS_PLUS;WIN32_LEAN_AND_MEAN"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
EnableEnhancedInstructionSet="0"
|
||||
DefaultCharIsUnsigned="FALSE"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalDependencies="OLDNAMES.lib Gem.lib pd.lib"
|
||||
OutputFile="$(OutDir)/gem_$(ProjectName).dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories=""$(SolutionDir)";"$(ProjectDir)\..\..\build\win-vs2003";"$(ProjectDir)\..\..\..\..\pd\bin";"$(ProgramFiles)\pd\bin""
|
||||
ProgramDatabaseFile="$(ProjectDir)/$(ProjectName).pdb"
|
||||
ImportLibrary="$(ProjectDir)/$(TargetName).lib"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\./gem.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\imageMAGICK.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\imageMAGICK.h">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
16
Gem/plugins/imageMAGICK/win-vs2008/ImageMagick.vsprops
Normal file
16
Gem/plugins/imageMAGICK/win-vs2008/ImageMagick.vsprops
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioPropertySheet
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="ImageMagick"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""$(IMAGEMAGICK)";"$(IMAGEMAGICK)\magick";"$(IMAGEMAGICK)\Magick++\lib""
|
||||
PreprocessorDefinitions="HAVE_LIBMAGICKPLUSPLUS;HAVE_LIBMAGICK"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalLibraryDirectories="$(IMAGEMAGICK)\VisualMagick\lib\"
|
||||
/>
|
||||
</VisualStudioPropertySheet>
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioPropertySheet
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="ImageMagick - Release"
|
||||
InheritedPropertySheets=".\ImageMagick.vsprops"
|
||||
>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="CORE_RL_magick_.lib CORE_RL_bzlib_.lib CORE_RL_coders_.lib CORE_RL_filters_.lib CORE_RL_jbig_.lib CORE_RL_jp2_.lib CORE_RL_jpeg_.lib CORE_RL_lcms_.lib CORE_RL_libxml_.lib CORE_RL_png_.lib CORE_RL_tiff_.lib CORE_RL_ttf_.lib CORE_RL_wand_.lib CORE_RL_xlib_.lib CORE_RL_zlib_.lib CORE_RL_wmf_.lib"
|
||||
/>
|
||||
</VisualStudioPropertySheet>
|
21
Gem/plugins/imageMAGICK/win-vs2008/imageMAGICK.sln
Normal file
21
Gem/plugins/imageMAGICK/win-vs2008/imageMAGICK.sln
Normal file
|
@ -0,0 +1,21 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "imageMAGICK", "imageMAGICK.vcproj", "{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Release = Release
|
||||
ReleaseDummy = ReleaseDummy
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.Release.ActiveCfg = Release|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.Release.Build.0 = Release|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.ReleaseDummy.ActiveCfg = ReleaseDummy|Win32
|
||||
{FF21A158-2BDE-483F-85C3-80C9DF0A0ABC}.ReleaseDummy.Build.0 = ReleaseDummy|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
176
Gem/plugins/imageMAGICK/win-vs2008/imageMAGICK.vcproj
Normal file
176
Gem/plugins/imageMAGICK/win-vs2008/imageMAGICK.vcproj
Normal file
|
@ -0,0 +1,176 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="imageMAGICK"
|
||||
ProjectGUID="{9E650453-D08D-416F-AE68-F8EDE6E92892}"
|
||||
RootNamespace="gem"
|
||||
TargetFrameworkVersion="131072"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\..\..\build\win-vs2008\plugin.vsprops;.\ImageMagick_Release.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="true"
|
||||
SuppressStartupBanner="true"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\./gem.tlb"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalDependencies="winmm.lib wsock32.lib"
|
||||
AdditionalLibraryDirectories=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="ReleaseDummy|Win32"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops;..\..\..\build\win-vs2008\plugin.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="true"
|
||||
SuppressStartupBanner="true"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\./gem.tlb"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalLibraryDirectories=""
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="..\imageMAGICK.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\imageMAGICK.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\MagickCore.cpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
Loading…
Add table
Add a link
Reference in a new issue