diff options
author | Peter Schlaile <peter@schlaile.de> | 2006-02-05 22:23:34 +0300 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2006-02-05 22:23:34 +0300 |
commit | 334b05741f0ed51f192c17328b62c7540970d1bf (patch) | |
tree | d6c80eef057a39f567f5aff3c91fdc67a8e5abda /source/blender/imbuf/IMB_imbuf.h | |
parent | 38c4a3a209aa920d2d851c4250425bbfd66b508b (diff) |
* Add memcache limitor-support to imbufs
* Add ffmpeg-read support in anim.c and util.c
* Makes ImBufs refcountable. You can now increase an internal refcounter
in ImBufs (using IMB_refImBuf) which is decreased by freeImBuf.
This makes it possible to simply pass ImBuf pointers around in the
sequencer saving a few memcopies.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index ae7a7f527f1..e78ee5901e9 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -176,6 +176,28 @@ struct ImBuf *IMB_allocImBuf(short x, short y, /** * + * Increase reference count to imbuf + * (to delete an imbuf you have to call freeImBuf as many times as it + * is referenced) + * + * @attention Defined in allocimbuf.c + */ + +void IMB_refImBuf(struct ImBuf * ibuf); + +/** + * + * @attention Defined in allocimbuf.c + */ +void IMB_cache_limiter_insert(struct ImBuf * i); +void IMB_cache_limiter_unmanage(struct ImBuf * i); +void IMB_cache_limiter_touch(struct ImBuf * i); +void IMB_cache_limiter_ref(struct ImBuf * i); +void IMB_cache_limiter_unref(struct ImBuf * i); +int IMB_cache_limiter_get_refcount(struct ImBuf * i); + +/** + * * @attention Defined in allocimbuf.c */ struct ImBuf *IMB_dupImBuf(struct ImBuf *ibuf1); |