mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 16:52:40 +08:00
[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:
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user