Skip to content
Snippets Groups Projects
Commit 22d1a260 authored by Mattijs Korpershoek's avatar Mattijs Korpershoek Committed by Guillaume LA ROQUE
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>
Signed-off-by: default avatarGuillaume La Roque <glaroque@baylibre.com>
parent 8d9daac6
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
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