Skip to content
Snippets Groups Projects
Commit c3bbae37 authored by Mattijs Korpershoek's avatar Mattijs Korpershoek Committed by Vishal Mahaveer
Browse files

TI: v4l2_codec2: encoder: use DMABUF_CARVEOUT custom allocator


See: 64021a2e ("TI: add DMABUF_CARVEOUT custom allocator support for decoder")

Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
parent cece890e
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#define LOG_TAG "V4L2EncodeInterface" #define LOG_TAG "V4L2EncodeInterface"
#include <v4l2_codec2/components/V4L2EncodeInterface.h> #include <v4l2_codec2/components/V4L2EncodeInterface.h>
#include <v4l2_codec2/plugin_store/V4L2AllocatorId.h>
#include <inttypes.h> #include <inttypes.h>
#include <algorithm> #include <algorithm>
...@@ -29,8 +30,8 @@ namespace { ...@@ -29,8 +30,8 @@ namespace {
// Use basic linear block pool/allocator as default. // Use basic linear block pool/allocator as default.
constexpr C2BlockPool::local_id_t kDefaultOutputBlockPool = C2BlockPool::BASIC_LINEAR; constexpr C2BlockPool::local_id_t kDefaultOutputBlockPool = C2BlockPool::BASIC_LINEAR;
// Default input and output allocators. // Default input and output allocators.
constexpr C2Allocator::id_t kDefaultInputAllocator = C2PlatformAllocatorStore::GRALLOC; constexpr C2Allocator::id_t kDefaultInputAllocator = V4L2AllocatorId::DMABUF_CARVEOUT;
constexpr C2Allocator::id_t kDefaultOutputAllocator = C2PlatformAllocatorStore::BLOB; constexpr C2Allocator::id_t kDefaultOutputAllocator = V4L2AllocatorId::DMABUF_CARVEOUT;
// The default output framerate in frames per second. // The default output framerate in frames per second.
// TODO: increase to 60 fps in the future. // TODO: increase to 60 fps in the future.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment