mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00
[alloctor]: add flags for alloctor
Each of the different alloctor has different alloctor modes, such as allocating physical continuous memory, secure memory, etc. Change-Id: Ib032689f0cfd36b494843dcc176a22c6c9587b6a Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
This commit is contained in:
@@ -70,7 +70,8 @@ public:
|
||||
|
||||
RK_U32 MppRuntimeService::get_allocator_valid(MppBufferType type)
|
||||
{
|
||||
return (type < MPP_BUFFER_TYPE_BUTT) ? allocator_valid[type] : (0);
|
||||
MppBufferType buffer_type = (MppBufferType)(type & MPP_BUFFER_TYPE_MASK);
|
||||
return (buffer_type < MPP_BUFFER_TYPE_BUTT) ? allocator_valid[buffer_type] : (0);
|
||||
};
|
||||
|
||||
MppRuntimeService::MppRuntimeService()
|
||||
|
Reference in New Issue
Block a user