[hal_jpege]: Add dma heap options for JPEG encode.

use cachable dma buffer to reduce copy time.

Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
Change-Id: I7fcc0fa5942ea5aa4e247b5f10677843d006ff28
This commit is contained in:
xueman.ruan
2023-02-14 10:03:23 +08:00
committed by Herman Chen
parent 59f7ccc6ed
commit 062c175265
12 changed files with 68 additions and 11 deletions

View File

@@ -189,3 +189,10 @@ MPP_RET mpp_allocator_put(MppAllocator *allocator)
return MPP_OK;
}
MppBufferType get_real_allocator_type(const MppAllocator allocator)
{
MppAllocatorImpl *p = (MppAllocatorImpl *)allocator;
MppBufferType type = allocator ? p->os_api.type : MPP_BUFFER_TYPE_BUTT;
return type;
}