Blender  V2.93
SEQ_proxy.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 Depsgraph;
31 struct GSet;
32 struct ListBase;
33 struct ListBase;
34 struct Main;
35 struct Scene;
37 struct Sequence;
38 struct SeqRenderData;
39 
41  struct Depsgraph *depsgraph,
42  struct Scene *scene,
43  struct Sequence *seq,
44  struct GSet *file_list,
45  struct ListBase *queue);
47  short *stop,
48  short *do_update,
49  float *progress);
51 void SEQ_proxy_set(struct Sequence *seq, bool value);
52 bool SEQ_can_use_proxy(const struct SeqRenderData *context, struct Sequence *seq, int psize);
53 int SEQ_rendersize_to_proxysize(int render_size);
55 
56 typedef struct ProxyBuildJob {
57  struct Main *main;
59  struct Scene *scene;
60  struct ListBase queue;
61  int stop;
63 
64 struct wmJob *ED_seq_proxy_wm_job_get(const struct bContext *C);
65 ProxyJob *ED_seq_proxy_job_get(const struct bContext *C, struct wmJob *wm_job);
66 
67 #ifdef __cplusplus
68 }
69 #endif
struct GSet GSet
Definition: BLI_ghash.h:189
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
#define C
Definition: RandGen.cpp:39
void SEQ_proxy_rebuild(struct SeqIndexBuildContext *context, short *stop, short *do_update, float *progress)
Definition: proxy.c:490
void SEQ_proxy_set(struct Sequence *seq, bool value)
Definition: proxy.c:584
struct ProxyBuildJob ProxyJob
ProxyJob * ED_seq_proxy_job_get(const struct bContext *C, struct wmJob *wm_job)
int SEQ_rendersize_to_proxysize(int render_size)
Definition: proxy.c:84
struct wmJob * ED_seq_proxy_wm_job_get(const struct bContext *C)
double SEQ_rendersize_to_scale_factor(int size)
Definition: proxy.c:99
bool SEQ_can_use_proxy(const struct SeqRenderData *context, struct Sequence *seq, int psize)
Definition: proxy.c:203
void SEQ_proxy_rebuild_finish(struct SeqIndexBuildContext *context, bool stop)
Definition: proxy.c:563
bool SEQ_proxy_rebuild_context(struct Main *bmain, struct Depsgraph *depsgraph, struct Scene *scene, struct Sequence *seq, struct GSet *file_list, struct ListBase *queue)
Definition: proxy.c:410
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
Scene scene
const Depsgraph * depsgraph
ThreadQueue * queue
all scheduled work for the cpu
struct SELECTID_Context context
Definition: select_engine.c:47
Definition: BKE_main.h:116
Scene * scene
Definition: clip_ops.c:1182
struct ListBase queue
Definition: SEQ_proxy.h:60
struct Main * main
Definition: clip_ops.c:1183
struct Depsgraph * depsgraph
Definition: SEQ_proxy.h:58
struct Main * bmain
Definition: SEQ_render.h:41
Definition: wm_jobs.c:73