genode/repos/libports/ports/libyuv.port
Alexander Boettcher 0d868515a5 libyuv: add support to overwrite default allocator
Internally libyuv uses malloc & free for short time dynamic memory
allocation during image transformation. The converted images are
such large, that the Libc allocator will create and destroy new Genode
dataspace per image.  In time sensitive code paths, the overhead can be
noticeable by the caller of the image transformation.
The patch adds the option to register callbacks in the libyuv library to
implement the image allocation by users of the library. They may implement
caching strategies to avoid the overhead, e.g. as seen with qemu-usb and
the webcam model.
2023-10-04 13:22:06 +02:00

16 lines
511 B
Plaintext

LICENSE := BSD-3-Clause
VERSION := git
DOWNLOADS := libyuv.git
URL(libyuv) := https://chromium.googlesource.com/libyuv/libyuv
DIR(libyuv) := src/lib/libyuv
REV(libyuv) := 8c8d907d29255ae0630f414e0e09ee9cca8f4bfc
DIRS := include include/libyuv
DIR_CONTENT(include) := src/lib/libyuv/include/libyuv.h
DIR_CONTENT(include/libyuv) := src/lib/libyuv/include/libyuv/*.h
PATCHES := src/lib/libyuv/constraints.patch src/lib/libyuv/memory.patch
PATCH_OPT := -d src/lib/libyuv -p1