You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
954 B
28 lines
954 B
/*
|
|
* 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_ */
|