From f28c16adfa9b6d3237ab275f312589e4992aa9e5 Mon Sep 17 00:00:00 2001 From: Mattijs Korpershoek <mkorpershoek@baylibre.com> Date: Mon, 25 Nov 2024 10:43:40 +0100 Subject: [PATCH] TI: v4l2_codec2: encoder: use DMABUF_CARVEOUT custom allocator See: 64021a2ec150 ("TI: add DMABUF_CARVEOUT custom allocator support for decoder") Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Signed-off-by: Guillaume La Roque <glaroque@baylibre.com> --- components/EncodeInterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/EncodeInterface.cpp b/components/EncodeInterface.cpp index 12152e6..c04e431 100644 --- a/components/EncodeInterface.cpp +++ b/components/EncodeInterface.cpp @@ -6,6 +6,7 @@ #define LOG_TAG "V4L2EncodeInterface" #include <v4l2_codec2/components/EncodeInterface.h> +#include <v4l2_codec2/plugin_store/V4L2AllocatorId.h> #include <inttypes.h> #include <algorithm> @@ -29,8 +30,8 @@ namespace { // Use basic linear block pool/allocator as default. constexpr C2BlockPool::local_id_t kDefaultOutputBlockPool = C2BlockPool::BASIC_LINEAR; // Default input and output allocators. -constexpr C2Allocator::id_t kDefaultInputAllocator = C2PlatformAllocatorStore::GRALLOC; -constexpr C2Allocator::id_t kDefaultOutputAllocator = C2PlatformAllocatorStore::BLOB; +constexpr C2Allocator::id_t kDefaultInputAllocator = V4L2AllocatorId::DMABUF_CARVEOUT; +constexpr C2Allocator::id_t kDefaultOutputAllocator = V4L2AllocatorId::DMABUF_CARVEOUT; // The default output framerate in frames per second. // TODO: increase to 60 fps in the future. -- GitLab