/* * Copyright (c) Hisilicon Technologies Co., Ltd.. 2018-2019. All rights reserved. * Description: Gralloc * Author: Hisilicon * Created: 2019.11.07 */ #ifndef GRALLOC_ATTRIBUTE_H_ #define GRALLOC_ATTRIBUTE_H_ #include "gralloc_internal_priv.h" #define ATTR_REGION_SIZE (4 * 1024) #define ATTR_MEDIA_PRIVATE_BUFFER_SIZE (8 * 1024) #define ATTR_BUFFER_SIZE (ATTR_REGION_SIZE + ATTR_MEDIA_PRIVATE_BUFFER_SIZE) int gralloc_buffer_attr_allocate(const private_module_t *m, struct private_internal_handle_t *handle); int gralloc_buffer_attr_free(const private_module_t *m, struct private_internal_handle_t *handle); int gralloc_buffer_attr_map(const private_module_t *m, struct private_internal_handle_t *handle); int gralloc_buffer_attr_unmap(const private_module_t *m, struct private_internal_handle_t *handle); int gralloc_init_attribute_buffer(const private_module_t *m, private_internal_handle_t *handle); #endif /* GRALLOC_ATTRIBUTE_H_ */