mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 09:06:50 +08:00

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>