gralloc_module_t 结构参考

gralloc_module_t 结构参考

#include < gralloc.h >

数据字段

结构hw_module_t常见的
整数(* registerBuffer )(struct gralloc_module_t const *module, buffer_handle_t 句柄)
整数(* unregisterBuffer )(struct gralloc_module_t const *module, buffer_handle_t 句柄)
整数(* lock )(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, void **vaddr)
整数(* unlock )(struct gralloc_module_t const *module, buffer_handle_t 句柄)
整数(* perform )(struct gralloc_module_t const *module, int operation,...)
整数(* lock_ycbcr )(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, struct android_ycbcr *ycbcr)
整数(* lockAsync )(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, void **vaddr, int fenceFd)
整数(* unlockAsync )(struct gralloc_module_t const *module, buffer_handle_t 句柄, int *fenceFd)
整数(* lockAsync_ycbcr )(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, struct android_ycbcr *ycbcr, int fenceFd)
空白 * reserved_proc [3]

详细说明

每个硬件模块都必须有一个名为 HAL_MODULE_INFO_SYM 的数据结构,并且该数据结构的字段必须以hw_module_t开头,后跟模块特定信息。

文件gralloc.h155行的定义。

现场文件

结构hw_module_t通用

文件gralloc.h156行的定义。

int(* lock)(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, void **vaddr)

文件gralloc.h226行的定义。

int(* lock_ycbcr)(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, struct android_ycbcr *ycbcr)

文件gralloc.h265行的定义。

int(* lockAsync)(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, void **vaddr, int fenceFd)

文件gralloc.h280行的定义。

int(* lockAsync_ycbcr)(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 使用, int l, int t, int w, int h, struct android_ycbcr *ycbcr, int fenceFd)

文件gralloc.h310行的定义。

int(* perform)(struct gralloc_module_t const *module, int operation,...)

文件gralloc.h242行的定义。

int(* registerBuffer)(struct gralloc_module_t const *module, buffer_handle_t 句柄)

文件gralloc.h173行的定义。

无效* reserved_proc[3]

文件gralloc.h316行的定义。

int(* unlock)(struct gralloc_module_t const *module, buffer_handle_t 句柄)

文件gralloc.h237行的定义。

int(* unlockAsync)(struct gralloc_module_t const *module, buffer_handle_t 句柄, int *fenceFd)

文件gralloc.h296行的定义。

int(* unregisterBuffer)(struct gralloc_module_t const *module, buffer_handle_t 句柄)

文件gralloc.h188行的定义。


此结构的文档是从以下文件生成的: