/* This file is part of Netpbm Formats, a File Format plugin for Adobe Photoshop Copyright (C) 2004-6 Toby Thain, toby@telegraphics.com.au This program 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. This program 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. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define PBM_FILETYPE '.PBM' #define PGM_FILETYPE '.PGM' #define PPM_FILETYPE '.PPM' #ifndef Rez #ifndef RC_INVOKED #include "world.h" #include "PIAbout.h" #include "PIFormat.h" #include "str.h" #include "file_compat.h" #include "bufio.h" #define F (FILEREF)pb->dataFork enum{ CR = 015, LF = 012, MAXDIGITS=7, PLAINPBM_KEY='1', PBM_KEY='4', PLAINPGM_KEY='2', PGM_KEY='5', PLAINPPM_KEY='3', PPM_KEY='6' }; int space_num(FILEREF f); OSErr readchunk(FormatRecordPtr pb); OSErr read_start(FormatRecordPtr pb); OSErr read_continue(FormatRecordPtr pb); OSErr read_finish(FormatRecordPtr pb); void DoAbout(AboutRecordPtr prec); void nextchunk(FormatRecordPtr pb); OSErr write_start(FormatRecordPtr pb); OSErr write_continue(FormatRecordPtr pb); OSErr write_finish(FormatRecordPtr pb); #endif #endif