Blender  V2.93
image_cache.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2004 Blender Foundation.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct ImBuf;
31 struct Main;
32 struct Scene;
33 struct SeqRenderData;
34 struct Sequence;
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 struct ImBuf *seq_cache_get(const struct SeqRenderData *context,
41  struct Sequence *seq,
42  float timeline_frame,
43  int type);
44 void seq_cache_put(const struct SeqRenderData *context,
45  struct Sequence *seq,
46  float timeline_frame,
47  int type,
48  struct ImBuf *i);
50  struct Sequence *seq,
51  float timeline_frame,
52  int type,
53  struct ImBuf *nval);
54 bool seq_cache_recycle_item(struct Scene *scene);
55 void seq_cache_free_temp_cache(struct Scene *scene, short id, int timeline_frame);
56 void seq_cache_destruct(struct Scene *scene);
57 void seq_cache_cleanup_all(struct Main *bmain);
59  struct Sequence *seq,
60  struct Sequence *seq_changed,
61  int invalidate_types,
62  bool force_seq_changed_range);
63 bool seq_cache_is_full(void);
64 
65 #ifdef __cplusplus
66 }
67 #endif
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Scene scene
void seq_cache_cleanup_sequence(struct Scene *scene, struct Sequence *seq, struct Sequence *seq_changed, int invalidate_types, bool force_seq_changed_range)
Definition: image_cache.c:1274
struct ImBuf * seq_cache_get(const struct SeqRenderData *context, struct Sequence *seq, float timeline_frame, int type)
void seq_cache_put(const struct SeqRenderData *context, struct Sequence *seq, float timeline_frame, int type, struct ImBuf *i)
void seq_cache_cleanup_all(struct Main *bmain)
Definition: image_cache.c:1245
bool seq_cache_is_full(void)
Definition: image_cache.c:1504
bool seq_cache_put_if_possible(const struct SeqRenderData *context, struct Sequence *seq, float timeline_frame, int type, struct ImBuf *nval)
void seq_cache_destruct(struct Scene *scene)
Definition: image_cache.c:1223
void seq_cache_free_temp_cache(struct Scene *scene, short id, int timeline_frame)
Definition: image_cache.c:1195
bool seq_cache_recycle_item(struct Scene *scene)
Definition: image_cache.c:1074
struct SELECTID_Context context
Definition: select_engine.c:47
Definition: BKE_main.h:116