mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[ion]: file descriptor for the external buffer
The imported buffer may be released from its origin allocator, I would suggest to use the new file descriptor from new ion handle. The ion only has map_user() to export buffer to userspace, There is no unmap_user() because the mapping is represented as a file descriptor in user space. The closing of that file descriptor will cause the memory to be unmapped from the calling process. Change-Id: Ief855aab11793238b40b73da92af853ca3b58349 Signed-off-by: Randy Li <randy.li@rock-chips.com> Signed-off-by: ayaka <ayaka@soulik.info>
This commit is contained in:
@@ -18,8 +18,10 @@
|
||||
#include "mpp_log.h"
|
||||
|
||||
#include "allocator_std.h"
|
||||
#include "allocator_drm.h"
|
||||
#include "allocator_ion.h"
|
||||
#ifdef HAVE_DRM
|
||||
#include "allocator_drm.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Linux only support MPP_BUFFER_TYPE_NORMAL so far
|
||||
|
Reference in New Issue
Block a user