2
* Cineon image file format library routines.
4
* Copyright 2006 Joseph Eagar (joeedh@gmail.com)
6
* This program is free software; you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the Free
8
* Software Foundation; either version 2 of the License, or (at your option)
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
* Contributor(s): Julien Enche.
1
24
/** \file blender/imbuf/intern/cineon/logmemfile.h
2
25
* \ingroup imbcineon
5
* Cineon image file format library routines.
7
* Copyright 2006 Joseph Eagar (joeedh@gmail.com)
9
* This program is free software; you can redistribute it and/or modify it
10
* under the terms of the GNU General Public License as published by the Free
11
* Software Foundation; either version 2 of the License, or (at your option)
14
* This program is distributed in the hope that it will be useful, but
15
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
29
#ifndef __LOGMEMFILE_H__
26
30
#define __LOGMEMFILE_H__
28
int logimage_fseek(void* logfile, intptr_t offsett, int origin);
29
int logimage_fwrite(void *buffer, unsigned int size, unsigned int count, void *logfile);
30
int logimage_fread(void *buffer, unsigned int size, unsigned int count, void *logfile);
32
#endif /* __LOGMEMFILE_H__ */
32
#include "logImageCore.h"
36
int logimage_fseek(LogImageFile *logFile, intptr_t offset, int origin);
37
int logimage_fwrite(void *buffer, size_t size, unsigned int count, LogImageFile *logFile);
38
int logimage_fread(void *buffer, size_t size, unsigned int count, LogImageFile *logFile);
39
int logimage_read_uchar(unsigned char *x, LogImageFile *logFile);
40
int logimage_read_ushort(unsigned short *x, LogImageFile *logFile);
41
int logimage_read_uint(unsigned int *x, LogImageFile *logFile);
43
#endif /* __LOGMEMFILE_H__ */