Blender V2.61 - r43446
|
00001 00004 /* 00005 * DPX image file format library definitions. 00006 * 00007 * Copyright 1999 - 2002 David Hodson <hodsond@acm.org> 00008 * 00009 * This program is free software; you can redistribute it and/or modify it 00010 * under the terms of the GNU General Public License as published by the Free 00011 * Software Foundation; either version 2 of the License, or (at your option) 00012 * any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00016 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00017 * for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 * 00023 */ 00024 00025 #ifndef _DPX_LIB_H_ 00026 #define _DPX_LIB_H_ 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 #include "logImageCore.h" 00033 00034 typedef struct _Log_Image_File_t_ DpxFile; 00035 00036 /* int functions return 0 for OK */ 00037 00038 void dpxSetVerbose(int); 00039 00040 DpxFile* dpxOpen(const char* filename); 00041 DpxFile* dpxCreate(const char* filename, int xsize, int ysize, int channels); 00042 DpxFile* dpxOpenFromMem(unsigned char *buffer, unsigned int size); 00043 int dpxIsMemFileCineon(void *buffer); 00044 00045 /* get/set scanline of converted bytes */ 00046 int dpxGetRowBytes(DpxFile* dpx, unsigned short* row, int y); 00047 int dpxSetRowBytes(DpxFile* dpx, const unsigned short* row, int y); 00048 00049 /* closes file and deletes data */ 00050 void dpxClose(DpxFile* dpx); 00051 00052 /* dumps file to stdout */ 00053 void dpxDump(const char* filename); 00054 00055 #ifdef __cplusplus 00056 } 00057 #endif 00058 00059 #endif /* _DPX_LIB_H_ */