blob: 40a724c9f423e881e5dd5d455f0b712560b69e14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2005 Blender Foundation. All rights reserved. */
/** \file
* \ingroup openexr
*/
#pragma once
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
void imb_initopenexr(void);
void imb_exitopenexr(void);
/**
* Test presence of OpenEXR file.
* \param mem: pointer to loaded OpenEXR bit-stream.
*/
bool imb_is_a_openexr(const unsigned char *mem, size_t size);
bool imb_save_openexr(struct ImBuf *ibuf, const char *name, int flags);
struct ImBuf *imb_load_openexr(const unsigned char *mem, size_t size, int flags, char *colorspace);
struct ImBuf *imb_load_filepath_thumbnail_openexr(const char *filepath,
int flags,
size_t max_thumb_size,
char colorspace[],
size_t *r_width,
size_t *r_height);
#ifdef __cplusplus
}
#endif
|