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