Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mp_image_pool: make reference counting thread-safe | wm4 | 2013-07-28 | 1 | -7/+1 |
| | | | | | | | | See previous commits. Also simplify this thing: 2 flags per pool image are enough to avoid a weird central refcount and an associated shared object keeping the refcount. We could even just store these two flags in the mp_image itself (like in mp_image.flags or mp_image.priv), but let's not for the sake of readability. | ||||
* | mp_image_pool: add pool to avoid frequent image reallocations | wm4 | 2013-01-13 | 1 | -0/+22 |
Refcounting will conceptually allocate and free images all the time when using the filter chain. Add a pool that makes these reallocations cheap. This only affects the image data, not mp_image structs and similar small allocations. Small allocations are always fast with reasonable memory managers, while large image data will trigger mmap/munmap calls each time. |