diff options
author | wm4 <wm4@nowhere> | 2012-12-12 23:55:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 17:39:32 +0100 |
commit | 1568161aadf24ee3a6d982612b7380f8b1dc4a58 (patch) | |
tree | 8f101603359615835d0994bf244c97496f615003 /Makefile | |
parent | 881f82dd33fe8d13e731bfe04077d3abcd149fa3 (diff) | |
download | mpv-1568161aadf24ee3a6d982612b7380f8b1dc4a58.tar.bz2 mpv-1568161aadf24ee3a6d982612b7380f8b1dc4a58.tar.xz |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 \ |