diff options
author | Peter Schlaile <peter@schlaile.de> | 2011-04-17 14:05:27 +0400 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2011-04-17 14:05:27 +0400 |
commit | 163dbded30efc0eea40086cd5f9b8bafdad90790 (patch) | |
tree | 599bddc53c3e0df583dedeb539181b591886dcf9 /source/blender/blenkernel/BKE_sequencer.h | |
parent | 69f9104ea79e629119821ad6526c8e4293ac1f66 (diff) |
== Sequencer ==
Fixes Fix for [#25713] VSE shows and renders wrong straight alpha gradient even after convert to pr
(see revision: 34540, fix by Janne)
By not breaking the seqcache interface API.
Added comments to header file, so that it is easier to understand, how the
cache API is supposed to work.
Diffstat (limited to 'source/blender/blenkernel/BKE_sequencer.h')
-rw-r--r-- | source/blender/blenkernel/BKE_sequencer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_sequencer.h b/source/blender/blenkernel/BKE_sequencer.h index 33bff1cd6a7..42786e1c9be 100644 --- a/source/blender/blenkernel/BKE_sequencer.h +++ b/source/blender/blenkernel/BKE_sequencer.h @@ -217,9 +217,16 @@ void seq_stripelem_cache_destruct(void); void seq_stripelem_cache_cleanup(void); +/* returned ImBuf is properly refed and has to be freed */ struct ImBuf * seq_stripelem_cache_get( SeqRenderData context, struct Sequence * seq, float cfra, seq_stripelem_ibuf_t type); + +/* passed ImBuf is properly refed, so ownership is *not* + transfered to the cache. + you can pass the same ImBuf multiple times to the cache without problems. +*/ + void seq_stripelem_cache_put( SeqRenderData context, struct Sequence * seq, float cfra, seq_stripelem_ibuf_t type, struct ImBuf * nval); |