X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_jpeg%2Fmptr_jpeg.cpp;h=1f448c2b90f4d2b624247ecb965be5e1329cd095;hb=e704e6dbd6bd7607e0e484685b8f6997dd9d1286;hp=651ffee00c5bc895409fd807faaa6cd201d44163;hpb=16b3beced25134bef064705568ecb893a6be4e79;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp b/synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp index 651ffee..1f448c2 100644 --- a/synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_jpeg/mptr_jpeg.cpp @@ -1,18 +1,19 @@ /*! ======================================================================== -** Sinfg +** Synfig ** ppm Target Module ** $Id: mptr_jpeg.cpp,v 1.1.1.1 2005/01/04 01:23:11 darco Exp $ ** -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package 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 GNU +** General Public License for more details. ** ** === N O T E S =========================================================== ** @@ -34,9 +35,9 @@ #endif #include "mptr_jpeg.h" -#include -#include -#include +#include +#include +#include #include @@ -46,7 +47,7 @@ /* === M A C R O S ========================================================= */ -using namespace sinfg; +using namespace synfig; using namespace std; using namespace etl; @@ -54,11 +55,11 @@ using namespace etl; /* === G L O B A L S ======================================================= */ -SINFG_IMPORTER_INIT(jpeg_mptr); -SINFG_IMPORTER_SET_NAME(jpeg_mptr,"jpeg_mptr"); -SINFG_IMPORTER_SET_EXT(jpeg_mptr,"jpg"); -SINFG_IMPORTER_SET_VERSION(jpeg_mptr,"0.1"); -SINFG_IMPORTER_SET_CVS_ID(jpeg_mptr,"$Id: mptr_jpeg.cpp,v 1.1.1.1 2005/01/04 01:23:11 darco Exp $"); +SYNFIG_IMPORTER_INIT(jpeg_mptr); +SYNFIG_IMPORTER_SET_NAME(jpeg_mptr,"jpeg_mptr"); +SYNFIG_IMPORTER_SET_EXT(jpeg_mptr,"jpg"); +SYNFIG_IMPORTER_SET_VERSION(jpeg_mptr,"0.1"); +SYNFIG_IMPORTER_SET_CVS_ID(jpeg_mptr,"$Id: mptr_jpeg.cpp,v 1.1.1.1 2005/01/04 01:23:11 darco Exp $"); /* === M E T H O D S ======================================================= */ @@ -157,7 +158,7 @@ jpeg_mptr::jpeg_mptr(const char *file_name) if(!buffer) { - sinfg::error("jpeg_mptr: error: alloc of \"buffer\" failed (bug?)"); + synfig::error("jpeg_mptr: error: alloc of \"buffer\" failed (bug?)"); throw String("alloc of \"buffer\" failed (bug?)"); } @@ -214,7 +215,7 @@ jpeg_mptr::jpeg_mptr(const char *file_name) break; default: - sinfg::error("jpeg_mptr: error: Unsupported color type"); + synfig::error("jpeg_mptr: error: Unsupported color type"); //! \todo THROW SOMETHING throw String("error on importer construction, *WRITEME*6"); return; @@ -245,7 +246,7 @@ jpeg_mptr::~jpeg_mptr() } bool -jpeg_mptr::get_frame(sinfg::Surface &surface,Time, sinfg::ProgressCallback *cb) +jpeg_mptr::get_frame(synfig::Surface &surface,Time, synfig::ProgressCallback *cb) { surface.mirror(surface_buffer); return true;