summaryrefslogtreecommitdiffstats
path: root/video/mp_image_pool.c
Commit message (Collapse)AuthorAgeFilesLines
* mp_image_pool: add pool to avoid frequent image reallocationswm42013-01-131-0/+133
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.