- 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
40
Gem/plugins/imageJPEG/Makefile.am
Normal file
40
Gem/plugins/imageJPEG/Makefile.am
Normal file
|
@ -0,0 +1,40 @@
|
|||
|
||||
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src @GEM_EXTERNAL_CPPFLAGS@
|
||||
|
||||
EXTRA_DIST =
|
||||
EXTRA_DIST += win-vs2003/imageJPEG.sln win-vs2003/imageJPEG.vcproj
|
||||
EXTRA_DIST += win-vs2008/imageJPEG.sln win-vs2008/imageJPEG.vcproj
|
||||
EXTRA_DIST += win-vs2008/JPEG.vsprops
|
||||
|
||||
pkglib_LTLIBRARIES=
|
||||
if HAVE_LIB_JPEG
|
||||
pkglib_LTLIBRARIES+= gem_imageJPEG.la
|
||||
endif
|
||||
|
||||
gem_imageJPEG_la_CXXFLAGS =
|
||||
gem_imageJPEG_la_LDFLAGS = -module -avoid-version -shared
|
||||
if WINDOWS
|
||||
gem_imageJPEG_la_LDFLAGS += -no-undefined
|
||||
endif
|
||||
gem_imageJPEG_la_LIBADD =
|
||||
|
||||
# RTE
|
||||
gem_imageJPEG_la_CXXFLAGS += @GEM_RTE_CFLAGS@ @GEM_ARCH_CXXFLAGS@
|
||||
gem_imageJPEG_la_LDFLAGS += @GEM_RTE_LIBS@ @GEM_ARCH_LDFLAGS@
|
||||
# flags for building Gem externals
|
||||
gem_imageJPEG_la_CXXFLAGS += @GEM_EXTERNAL_CFLAGS@
|
||||
gem_imageJPEG_la_LIBADD += -L$(top_builddir) @GEM_EXTERNAL_LIBS@
|
||||
# gem_imageJPEG_la @MOREFLAGS@
|
||||
|
||||
# Dependencies
|
||||
gem_imageJPEG_la_CXXFLAGS += @GEM_LIB_JPEG_CFLAGS@
|
||||
gem_imageJPEG_la_LIBADD += @GEM_LIB_JPEG_LIBS@
|
||||
|
||||
# convenience symlinks
|
||||
include $(srcdir)/../symlink_ltlib.mk
|
||||
|
||||
|
||||
### SOURCES
|
||||
gem_imageJPEG_la_SOURCES= imageJPEG.cpp imageJPEG.h
|
||||
|
324
Gem/plugins/imageJPEG/imageJPEG.cpp
Normal file
324
Gem/plugins/imageJPEG/imageJPEG.cpp
Normal file
|
@ -0,0 +1,324 @@
|
|||
////////////////////////////////////////////////////////
|
||||
//
|
||||
// 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_LIBJPEG
|
||||
#include <string.h>
|
||||
#include "imageJPEG.h"
|
||||
#include "plugins/PluginFactory.h"
|
||||
|
||||
#include "Gem/RTE.h"
|
||||
|
||||
|
||||
extern "C"
|
||||
{
|
||||
# ifdef _WIN32
|
||||
# undef FAR
|
||||
# endif
|
||||
# undef EXTERN
|
||||
|
||||
#if (defined _WIN32) && (defined __MINGW32__)
|
||||
# define HAVE_BOOLEAN
|
||||
#endif
|
||||
|
||||
# include "jpeglib.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
}
|
||||
|
||||
using namespace gem::plugins;
|
||||
|
||||
REGISTER_IMAGELOADERFACTORY("jpeg", imageJPEG);
|
||||
REGISTER_IMAGESAVERFACTORY("jpeg", imageJPEG);
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
//
|
||||
// imageJPEG
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
// Constructor
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
/***************************************************************************
|
||||
*
|
||||
* We have to do some funky error handling to keep the jpeg library
|
||||
* from exiting on us.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/*****************************
|
||||
*
|
||||
* Here is the error handler
|
||||
*
|
||||
*****************************/
|
||||
struct my_error_mgr
|
||||
{
|
||||
struct jpeg_error_mgr pub; // "public" fields
|
||||
jmp_buf setjmp_buffer; // for return to caller
|
||||
};
|
||||
|
||||
typedef struct my_error_mgr * my_error_ptr;
|
||||
|
||||
/*
|
||||
* Here's the routine that will replace the standard error_exit method:
|
||||
*/
|
||||
METHODDEF(void) my_error_exit (j_common_ptr cinfo)
|
||||
{
|
||||
// cinfo->err really points to a my_error_mgr struct, so coerce pointer
|
||||
my_error_ptr myerr = reinterpret_cast<my_error_ptr> (cinfo->err);
|
||||
|
||||
// Always display the message.
|
||||
// We could postpone this until after returning, if we chose.
|
||||
// (*cinfo->err->output_message) (cinfo);
|
||||
|
||||
// Return control to the setjmp point
|
||||
longjmp(myerr->setjmp_buffer, 1);
|
||||
}
|
||||
|
||||
imageJPEG :: imageJPEG(void)
|
||||
{
|
||||
//post("imageJPEG");
|
||||
}
|
||||
imageJPEG :: ~imageJPEG(void)
|
||||
{
|
||||
//post("~imageJPEG");
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
// really open the file ! (OS dependent)
|
||||
//
|
||||
/////////////////////////////////////////////////////////
|
||||
bool imageJPEG :: load(std::string filename, imageStruct&result, gem::Properties&props)
|
||||
{
|
||||
// open up the file
|
||||
FILE * infile;
|
||||
::verbose(2, "reading '%s' with libJPEG", filename.c_str());
|
||||
if ((infile = fopen(filename.c_str(), "rb")) == NULL) {
|
||||
//verbose(2, "GemImageLoad(JPEG): Unable to open image file: %s", filename.c_str());
|
||||
return(false);
|
||||
}
|
||||
|
||||
// create the jpeg structures
|
||||
jpeg_decompress_struct cinfo;
|
||||
my_error_mgr jerr;
|
||||
|
||||
// We set up the normal JPEG error routines, then override error_exit
|
||||
cinfo.err = jpeg_std_error(&jerr.pub);
|
||||
jerr.pub.error_exit = my_error_exit;
|
||||
|
||||
// Establish the setjmp return context for my_error_exit to use.
|
||||
if ( setjmp(jerr.setjmp_buffer) ) {
|
||||
// If we get here, the JPEG code has signaled an error.
|
||||
// We need to clean up the JPEG object, close the input file, and return.
|
||||
jpeg_destroy_decompress(&cinfo);
|
||||
fclose(infile);
|
||||
return(false);
|
||||
}
|
||||
|
||||
// create the decompression structure
|
||||
jpeg_create_decompress(&cinfo);
|
||||
|
||||
// associate the decompress struct with the file
|
||||
jpeg_stdio_src(&cinfo, infile);
|
||||
|
||||
// read in the file info
|
||||
jpeg_read_header(&cinfo, TRUE);
|
||||
|
||||
|
||||
// do we have an RGB image?
|
||||
if (cinfo.jpeg_color_space == JCS_RGB) {
|
||||
result.setCsizeByFormat(GL_RGBA);
|
||||
} else if (cinfo.jpeg_color_space == JCS_GRAYSCALE) {
|
||||
// do we have a gray8 image?
|
||||
result.setCsizeByFormat(GL_LUMINANCE);
|
||||
} else {
|
||||
// something else, so decompress as RGB
|
||||
result.setCsizeByFormat(GL_RGBA);
|
||||
cinfo.out_color_space = JCS_RGB;
|
||||
}
|
||||
|
||||
// start the decompression
|
||||
jpeg_start_decompress(&cinfo);
|
||||
int xSize = cinfo.output_width;
|
||||
int ySize = cinfo.output_height;
|
||||
int cSize = result.csize;
|
||||
result.upsidedown=true;
|
||||
result.xsize = xSize;
|
||||
result.ysize = ySize;
|
||||
result.reallocate();
|
||||
|
||||
// cycle through the scan lines
|
||||
unsigned char *srcLine = new unsigned char[xSize * cSize];
|
||||
unsigned char *dstLine = result.data;
|
||||
int yStride = xSize * cSize;
|
||||
int lines = ySize;
|
||||
int pixes = xSize;
|
||||
|
||||
// do RGBA/RGB data
|
||||
if (cSize == 4) {
|
||||
while (lines--) {
|
||||
unsigned char *src = srcLine;
|
||||
unsigned char *dst = dstLine;
|
||||
jpeg_read_scanlines(&cinfo, &src, 1);
|
||||
pixes = xSize;
|
||||
while (pixes--) {
|
||||
dst[chRed] = src[0];
|
||||
dst[chGreen] = src[1];
|
||||
dst[chBlue] = src[2];
|
||||
dst[chAlpha] = 255;
|
||||
dst += 4;
|
||||
src += 3;
|
||||
}
|
||||
dstLine += yStride;
|
||||
}
|
||||
} else {
|
||||
// do grayscale data
|
||||
while (lines--) {
|
||||
unsigned char *src = srcLine;
|
||||
unsigned char *dst = dstLine;
|
||||
jpeg_read_scanlines(&cinfo, &src, 1);
|
||||
pixes = xSize;
|
||||
while (pixes--) {
|
||||
*dst++ = *src++;
|
||||
}
|
||||
dstLine += yStride;
|
||||
}
|
||||
}
|
||||
|
||||
// finish the decompression
|
||||
jpeg_finish_decompress(&cinfo);
|
||||
|
||||
// cleanup
|
||||
jpeg_destroy_decompress(&cinfo);
|
||||
fclose(infile);
|
||||
delete [] srcLine;
|
||||
|
||||
return true;
|
||||
}
|
||||
bool imageJPEG::save(const imageStruct&constimage, const std::string&filename, const std::string&mimetype, const gem::Properties&props) {
|
||||
struct jpeg_compress_struct cinfo;
|
||||
|
||||
/* More stuff */
|
||||
FILE * outfile=NULL; /* target file */
|
||||
JSAMPROW row_pointer; /* pointer to JSAMPLE row[s] */
|
||||
int row_stride; /* physical row width in image buffer */
|
||||
|
||||
// We set up the normal JPEG error routines, then override error_exit
|
||||
my_error_mgr jerr;
|
||||
cinfo.err = jpeg_std_error(&jerr.pub);
|
||||
jerr.pub.error_exit = my_error_exit;
|
||||
|
||||
// Establish the setjmp return context for my_error_exit to use.
|
||||
if ( setjmp(jerr.setjmp_buffer) ) {
|
||||
// If we get here, the JPEG code has signaled an error.
|
||||
// We need to clean up the JPEG object, close the input file, and return.
|
||||
jpeg_destroy_compress(&cinfo);
|
||||
if(outfile)
|
||||
fclose(outfile);
|
||||
return(false);
|
||||
}
|
||||
|
||||
double fquality=100;
|
||||
props.get("quality", fquality);
|
||||
int quality=fquality;
|
||||
|
||||
if(GL_YUV422_GEM==constimage.format) {
|
||||
error("don't know how to write YUV-images with libJPEG");
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Now we can initialize the JPEG compression object. */
|
||||
jpeg_create_compress(&cinfo);
|
||||
|
||||
if ((outfile = fopen(filename.c_str(), "wb")) == NULL) {
|
||||
error("can't open %s\n", filename.c_str());
|
||||
return (false);
|
||||
}
|
||||
jpeg_stdio_dest(&cinfo, outfile);
|
||||
|
||||
imageStruct image;
|
||||
constimage.convertTo(&image, GL_RGB);
|
||||
// image.fixUpDown();
|
||||
JSAMPLE *image_buffer = image.data;
|
||||
|
||||
cinfo.image_width = image.xsize; /* image width and height, in pixels */
|
||||
cinfo.image_height = image.ysize;
|
||||
cinfo.input_components = 3; /* # of color components per pixel */
|
||||
cinfo.in_color_space = JCS_RGB; /* colorspace of input image */
|
||||
|
||||
jpeg_set_defaults(&cinfo);
|
||||
jpeg_set_quality(&cinfo, quality, TRUE /* limit to baseline-JPEG values */);
|
||||
jpeg_start_compress(&cinfo, TRUE);
|
||||
|
||||
row_stride = image.xsize * image.csize; /* JSAMPLEs per row in image_buffer */
|
||||
|
||||
while (cinfo.next_scanline < cinfo.image_height) {
|
||||
/* jpeg_write_scanlines expects an array of pointers to scanlines.
|
||||
* Here the array is only one element long, but you could pass
|
||||
* more than one scanline at a time if that's more convenient.
|
||||
*/
|
||||
int rowindex=cinfo.next_scanline;
|
||||
if(!image.upsidedown)
|
||||
rowindex=(cinfo.image_height-cinfo.next_scanline-1);
|
||||
row_pointer = & image_buffer[rowindex * row_stride];
|
||||
|
||||
if(jpeg_write_scanlines(&cinfo, &row_pointer, 1) < 0){
|
||||
error("GEM: could not write line %d to image %s", cinfo.next_scanline, filename.c_str());
|
||||
jpeg_finish_compress(&cinfo);
|
||||
fclose(outfile);
|
||||
jpeg_destroy_compress(&cinfo);
|
||||
return(false);
|
||||
}
|
||||
}
|
||||
|
||||
jpeg_finish_compress(&cinfo);
|
||||
fclose(outfile);
|
||||
jpeg_destroy_compress(&cinfo);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
float imageJPEG::estimateSave(const imageStruct&img, const std::string&filename, const std::string&mimetype, const gem::Properties&props) {
|
||||
float result=0.;
|
||||
if(mimetype == "image/jpeg")// || mimetype == "image/pjpeg")
|
||||
result += 100.;
|
||||
|
||||
// LATER check some properties....
|
||||
if(gem::Properties::UNSET != props.type("quality"))
|
||||
result += 1.;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void imageJPEG::getWriteCapabilities(std::vector<std::string>&mimetypes, gem::Properties&props) {
|
||||
mimetypes.clear();
|
||||
props.clear();
|
||||
|
||||
mimetypes.push_back("image/jpeg");
|
||||
mimetypes.push_back("image/pjpeg");
|
||||
|
||||
gem::any value;
|
||||
|
||||
value=100.f;
|
||||
props.set("quality", value);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
62
Gem/plugins/imageJPEG/imageJPEG.h
Normal file
62
Gem/plugins/imageJPEG/imageJPEG.h
Normal file
|
@ -0,0 +1,62 @@
|
|||
/*-----------------------------------------------------------------
|
||||
|
||||
GEM - Graphics Environment for Multimedia
|
||||
|
||||
Load a picture (using libjpeg)
|
||||
|
||||
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__IMAGEJPEG_IMAGEJPEG_H_
|
||||
#define _INCLUDE_GEMPLUGIN__IMAGEJPEG_IMAGEJPEG_H_
|
||||
#include "plugins/imageloader.h"
|
||||
#include "plugins/imagesaver.h"
|
||||
#include <stdio.h>
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
-------------------------------------------------------------------
|
||||
CLASS
|
||||
imageJPEG
|
||||
|
||||
Loads in a picture
|
||||
|
||||
KEYWORDS
|
||||
pix
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
-----------------------------------------------------------------*/
|
||||
namespace gem { namespace plugins {
|
||||
class GEM_EXPORT imageJPEG : public gem::plugins::imageloader, public gem::plugins::imagesaver {
|
||||
public:
|
||||
|
||||
//////////
|
||||
// Constructor
|
||||
imageJPEG(void);
|
||||
virtual ~imageJPEG(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;}
|
||||
};
|
||||
};};
|
||||
|
||||
#endif // for header file
|
21
Gem/plugins/imageJPEG/win-vs2003/imageJPEG.sln
Normal file
21
Gem/plugins/imageJPEG/win-vs2003/imageJPEG.sln
Normal file
|
@ -0,0 +1,21 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "imageJPEG", "imageJPEG.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/imageJPEG/win-vs2003/imageJPEG.vcproj
Normal file
146
Gem/plugins/imageJPEG/win-vs2003/imageJPEG.vcproj
Normal file
|
@ -0,0 +1,146 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="imageJPEG"
|
||||
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";"$(ProjectDir)\..\..\..\..\GemLibs\Jpeg""
|
||||
PreprocessorDefinitions="NT;WIN32;_WINDOWS;__WIN32__;_LANGUAGE_C_PLUS_PLUS;WIN32_LEAN_AND_MEAN;HAVE_LIBJPEG"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
EnableEnhancedInstructionSet="0"
|
||||
DefaultCharIsUnsigned="FALSE"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalDependencies="Gem.lib libjpeg.lib pd.lib"
|
||||
OutputFile="$(OutDir)/gem_$(ProjectName).dll"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories=""$(SolutionDir)";"$(ProjectDir)\..\..\..\build\win-vs2003";"$(ProjectDir)\..\..\..\..\pd\bin";"$(ProgramFiles)\pd\bin";"$(ProjectDir)\..\..\..\..\GemLibs\Jpeg""
|
||||
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="..\imageJPEG.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\imageJPEG.h">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
17
Gem/plugins/imageJPEG/win-vs2008/JPEG.vsprops
Normal file
17
Gem/plugins/imageJPEG/win-vs2008/JPEG.vsprops
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioPropertySheet
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="JPEG"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="$(ProjectDir)\..\..\..\..\GemLibs\Jpeg"
|
||||
PreprocessorDefinitions="HAVE_LIBJPEG"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="libjpeg.lib"
|
||||
AdditionalLibraryDirectories="$(ProjectDir)\..\..\..\..\GemLibs\Jpeg"
|
||||
/>
|
||||
</VisualStudioPropertySheet>
|
21
Gem/plugins/imageJPEG/win-vs2008/imageJPEG.sln
Normal file
21
Gem/plugins/imageJPEG/win-vs2008/imageJPEG.sln
Normal file
|
@ -0,0 +1,21 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "imageJPEG", "imageJPEG.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
|
171
Gem/plugins/imageJPEG/win-vs2008/imageJPEG.vcproj
Normal file
171
Gem/plugins/imageJPEG/win-vs2008/imageJPEG.vcproj
Normal file
|
@ -0,0 +1,171 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Name="imageJPEG"
|
||||
ProjectGUID="{94CA04E7-CCF9-4733-A1BD-F3283C21288A}"
|
||||
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;.\JPEG.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>
|
||||
<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="..\imageJPEG.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\imageJPEG.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
Loading…
Add table
Add a link
Reference in a new issue