From 1568161aadf24ee3a6d982612b7380f8b1dc4a58 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 12 Dec 2012 23:55:34 +0100 Subject: mp_image_pool: add pool to avoid frequent image reallocations 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. --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b731b84d80..0ba142d698 100644 --- a/Makefile +++ b/Makefile @@ -227,6 +227,7 @@ SOURCES = talloc.c \ video/image_writer.c \ video/img_format.c \ video/mp_image.c \ + video/mp_image_pool.c \ video/sws_utils.c \ video/decode/dec_video.c \ video/decode/lavc_dr1.c \ -- cgit v1.2.3