Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-08-08 20:46:45 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-08-08 20:46:45 +0400
commit7483429e62ed5fb17f74e85d24471c879acf9ed1 (patch)
treeee1c27f396459ce76d6ad0cecda16192e38a721f /source/blender/blenkernel/BKE_sequencer.h
parentac2b6e23eb5479151385bc9b5366b56172e406bf (diff)
Sequencer: initial implementation of multithreaded effects
Added a framework to run effects in several threads. Port most of effects to this new framework. Still some work to be done here (some effects are not so easy to port)
Diffstat (limited to 'source/blender/blenkernel/BKE_sequencer.h')
-rw-r--r--source/blender/blenkernel/BKE_sequencer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_sequencer.h b/source/blender/blenkernel/BKE_sequencer.h
index 8a051e5de2d..78e65fe3ea6 100644
--- a/source/blender/blenkernel/BKE_sequencer.h
+++ b/source/blender/blenkernel/BKE_sequencer.h
@@ -110,6 +110,8 @@ enum {
};
struct SeqEffectHandle {
+ int multithreaded;
+
/* constructors & destructor */
/* init is _only_ called on first creation */
void (*init)(struct Sequence *seq);
@@ -147,6 +149,12 @@ struct SeqEffectHandle {
struct ImBuf * (*execute)(SeqRenderData context, struct Sequence *seq, float cfra, float facf0, float facf1,
struct ImBuf *ibuf1, struct ImBuf *ibuf2, struct ImBuf *ibuf3);
+
+ struct ImBuf * (*init_execution)(SeqRenderData context, struct ImBuf *ibuf1, struct ImBuf *ibuf2, struct ImBuf *ibuf3);
+
+ void (*execute_slice)(SeqRenderData context, struct Sequence *seq, float cfra, float facf0, float facf1,
+ struct ImBuf *ibuf1, struct ImBuf *ibuf2, struct ImBuf *ibuf3,
+ int start_line, int total_lines, struct ImBuf *out);
};
/* ********************* prototypes *************** */