การอ้างอิงโครงสร้าง gralloc_module_t

การอ้างอิงโครงสร้าง gralloc_module_t

#include < gralloc.h >

ฟิลด์ข้อมูล

struct hw_module_t   common
 
int(*  registerBuffer )(struct gralloc_module_t const *module, buffer_handle_t handle)
 
int(*  unregisterBuffer )(struct gralloc_module_t const *module, buffer_handle_t handle)
 
int(*  lock )(struct gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void **vaddr)
 
int(*  unlock )(struct gralloc_module_t const *module, buffer_handle_t handle)
 
int(*  perform )(struct gralloc_module_t const *module, int operation,...)
 
int(*  lock_ycbcr )(struct gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr)
 
int(*  lockAsync )(struct gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void **vaddr, int fenceFd)
 
int(*  unlockAsync )(struct gralloc_module_t const *module, buffer_handle_t handle, int *fenceFd)
 
int(*  lockAsync_ycbcr )(struct gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr, int fenceFd)
 
void *  reserved_proc [3]
 

คำอธิบายโดยละเอียด

โมดูลฮาร์ดแวร์ทุกโมดูลต้องมีโครงสร้างข้อมูลที่ชื่อ HAL_MODULE_INFO_SYM และช่องของโครงสร้างข้อมูลนี้ต้องขึ้นต้นด้วย hw_module_t ตามด้วยข้อมูลเฉพาะของโมดูล

คําจํากัดความที่บรรทัด 155 ของไฟล์ gralloc.h

เอกสารประกอบในสนาม

struct hw_module_t common

คําจํากัดความที่บรรทัด 156 ของไฟล์ gralloc.h .

int(* lock)(struct gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void **vaddr)

คําจํากัดความที่บรรทัด 226 ของไฟล์ gralloc.h .

int(* lock_ycbcr)(struct gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr)

คําจํากัดความที่บรรทัด 265 ของไฟล์ gralloc.h .

int(* lockAsync)(struct gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void **vaddr, int fenceFd)

คําจํากัดความที่บรรทัด 280 ของไฟล์ gralloc.h .

int(* lockAsync_ycbcr)(struct gralloc_module_t const *module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr, int fenceFd)

คําจํากัดความที่บรรทัด 310 ของไฟล์ gralloc.h .

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

คําจํากัดความที่บรรทัด 242 ของไฟล์ gralloc.h .

int(* registerBuffer)(struct gralloc_module_t const *module, buffer_handle_t handle)

คําจํากัดความที่บรรทัด 173 ของไฟล์ gralloc.h .

void* reserved_proc[3]

คําจํากัดความที่บรรทัด 316 ของไฟล์ gralloc.h .

int(* unlock)(struct gralloc_module_t const *module, buffer_handle_t handle)

คําจํากัดความที่บรรทัด 237 ของไฟล์ gralloc.h .

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

คําจํากัดความที่บรรทัด 296 ของไฟล์ gralloc.h .

int(* unregisterBuffer)(struct gralloc_module_t const *module, buffer_handle_t handle)

คําจํากัดความที่บรรทัด 188 ของไฟล์ gralloc.h .


เอกสารประกอบสำหรับโครงสร้างนี้สร้างขึ้นจากไฟล์ต่อไปนี้