|
Blender V2.27
|
00001 /* 00002 * Cineon image file format library definitions. 00003 * Also handles DPX files (almost) 00004 * 00005 * Copyright 1999,2000,2001 David Hodson <hodsond@acm.org> 00006 * 00007 * This program is free software; you can redistribute it and/or modify it 00008 * under the terms of the GNU General Public License as published by the Free 00009 * Software Foundation; either version 2 of the License, or (at your option) 00010 * any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00014 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00015 * for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00020 * 00021 */ 00022 00023 #ifndef _CINEON_LIB_H_ 00024 #define _CINEON_LIB_H_ 00025 00026 #include "logImageCore.h" 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 /* 00033 * Cineon image structure. You don't care what this is. 00034 */ 00035 00036 typedef struct _Log_Image_File_t_ CineonFile; 00037 00038 /* int functions return 0 for OK */ 00039 00040 void cineonSetVerbose(int); 00041 00042 CineonFile* cineonOpenFromMem(unsigned char *mem, unsigned int size); 00043 00044 CineonFile* cineonOpen(const char* filename); 00045 int cineonGetSize(const CineonFile* cineon, int* xsize, int* ysize, int* channels); 00046 CineonFile* cineonCreate(const char* filename, int xsize, int ysize, int channels); 00047 int cineonIsMemFileCineon(unsigned char *mem); 00048 00049 /* get / set header block NYI */ 00050 int cineonGetHeader(CineonFile*, int*, void**); 00051 int cineonSetHeader(CineonFile*, int, void*); 00052 00053 /* get/set scanline of converted bytes */ 00054 int cineonGetRowBytes(CineonFile* cineon, unsigned short* row, int y); 00055 int cineonSetRowBytes(CineonFile* cineon, const unsigned short* row, int y); 00056 00057 /* get/set scanline of unconverted shorts */ 00058 int cineonGetRow(CineonFile* cineon, unsigned short* row, int y); 00059 int cineonSetRow(CineonFile* cineon, const unsigned short* row, int y); 00060 00061 /* closes file and deletes data */ 00062 void cineonClose(CineonFile* cineon); 00063 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 00068 #endif /* _CINEON_LIB_H_ */
1.7.3