[FFmpeg-devel] [PATCH 0/2] lavc/videotoolbox: use objpool instead of allocating memory each frame
Rick Kern
kernrj at gmail.com
Sat Nov 19 23:35:14 EET 2022
objpool was only being used in fftools, but it's useful in other components to reduce alloation time and memory fragmentation.
This patch set moves objpool to libavutil, so it can be used by lavc/videotoolboxenc for data being passed from input frames to output packets.
Rick Kern (2):
fftools/objpool: move objpool to libavutil
lavc/videotoolboxenc: use objectpool for encoder output information
fftools/Makefile | 1 -
fftools/ffmpeg_mux.c | 2 +-
fftools/sync_queue.c | 2 +-
fftools/thread_queue.c | 2 +-
fftools/thread_queue.h | 2 +-
libavcodec/videotoolboxenc.c | 80 ++++++++++++++++++++++++++++----
libavutil/Makefile | 2 +
{fftools => libavutil}/objpool.c | 0
{fftools => libavutil}/objpool.h | 0
9 files changed, 77 insertions(+), 14 deletions(-)
rename {fftools => libavutil}/objpool.c (100%)
rename {fftools => libavutil}/objpool.h (100%)
--
2.38.1
More information about the ffmpeg-devel
mailing list