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:
authorPeter Schlaile <peter@schlaile.de>2006-02-05 22:23:34 +0300
committerPeter Schlaile <peter@schlaile.de>2006-02-05 22:23:34 +0300
commit334b05741f0ed51f192c17328b62c7540970d1bf (patch)
treed6c80eef057a39f567f5aff3c91fdc67a8e5abda /source/blender/imbuf/IMB_imbuf_types.h
parent38c4a3a209aa920d2d851c4250425bbfd66b508b (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_types.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf_types.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h
index ef1aa631fc6..fe82b852eaa 100644
--- a/source/blender/imbuf/IMB_imbuf_types.h
+++ b/source/blender/imbuf/IMB_imbuf_types.h
@@ -94,7 +94,11 @@ typedef struct ImBuf{
unsigned char *encodedbuffer; /**< Compressed image only used with png currently */
unsigned int encodedsize; /**< Size of data written to encodedbuffer */
unsigned int encodedbuffersize; /**< Size of encodedbuffer */
+
float *rect_float; /**< floating point Rect equivilant */
+
+ struct MEM_CacheLimiterHandle_s * c_handle; /**< handle for cache limiter */
+ int refcounter; /**< Refcounter for multiple users */
} ImBuf;
/* Moved from BKE_bmfont_types.h because it is a userflag bit mask. */
@@ -133,8 +137,8 @@ typedef enum {
#define IB_zbuf (1 << 13)
#define IB_mem (1 << 14)
-#define IB_rectfloat (1 << 15)
-#define IB_zbuffloat (1 << 16)
+#define IB_rectfloat (1 << 15)
+#define IB_zbuffloat (1 << 16)
/*
* The bit flag is stored in the ImBuf.ftype variable.