提供意見
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.h 第155 行的定義。
int(* lock)(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, void **vaddr)
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)
int(* lockAsync)(struct gralloc_module_t const *module, buffer_handle_t 句柄, int 用法, int l, int t, int w, int h, void **vaddr, int fenceFd)
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)
int(* registerBuffer)(struct gralloc_module_t const *module, buffer_handle_t 句柄)
int(* unlockAsync)(struct gralloc_module_t const *module, buffer_handle_t 句柄, int *fenceFd)
int(* unregisterBuffer)(struct gralloc_module_t const *module, buffer_handle_t 句柄)
此結構的文檔是從以下文件生成的:
提供意見
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
想進一步說明嗎?