Blender  V3.3
IMB_allocimbuf.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct ImBuf;
15 
16 void imb_refcounter_lock_init(void);
17 void imb_refcounter_lock_exit(void);
18 
19 #ifndef WIN32
20 void imb_mmap_lock_init(void);
21 void imb_mmap_lock_exit(void);
22 void imb_mmap_lock(void);
23 void imb_mmap_unlock(void);
24 #else
25 # define imb_mmap_lock_init()
26 # define imb_mmap_lock_exit()
27 # define imb_mmap_lock()
28 # define imb_mmap_unlock()
29 #endif
30 
31 bool imb_addencodedbufferImBuf(struct ImBuf *ibuf);
32 bool imb_enlargeencodedbufferImBuf(struct ImBuf *ibuf);
33 
34 #ifdef __cplusplus
35 }
36 #endif
bool imb_addencodedbufferImBuf(struct ImBuf *ibuf)
Definition: allocimbuf.c:287
void imb_mmap_lock(void)
Definition: allocimbuf.c:53
void imb_mmap_unlock(void)
Definition: allocimbuf.c:58
void imb_refcounter_lock_init(void)
Definition: allocimbuf.c:30
void imb_mmap_lock_exit(void)
Definition: allocimbuf.c:48
bool imb_enlargeencodedbufferImBuf(struct ImBuf *ibuf)
Definition: allocimbuf.c:310
void imb_refcounter_lock_exit(void)
Definition: allocimbuf.c:35
void imb_mmap_lock_init(void)
Definition: allocimbuf.c:43