自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
camera3_device 結構體參考資料
#include <
camera3.h
>
定義位於檔案
camera3.h
的第
3088
行。
common.version 必須等於 CAMERA_DEVICE_API_VERSION_3_0,才能將這部裝置識別為實作相機裝置 HAL 3.0 版的裝置。
效能需求:
相機開啟 (common.module->common.methods->open) 應在 200 毫秒內傳回,且必須在 500 毫秒內傳回。相機關閉 (common.close) 應在 200 毫秒內傳回,且必須在 500 毫秒內傳回。
定義位於檔案
camera3.h 的
3100
行。
這個結構體的說明文件是由下列檔案產生:
-
hardware/libhardware/include/hardware/
camera3.h
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Android Hardware Abstraction Layer: camera3_device Struct Reference\n\ncamera3_device Struct Reference\n===============================\n\n[Data Fields](#pub-attribs) \ncamera3_device Struct Reference \n\n`\n#include \u003c\n`[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| [hw_device_t](/reference/hal/structhw__device__t) | [common](/reference/hal/structcamera3__device#a75bb16f553e7a3642d7d16e229a1d90d) |\n| ||\n| [camera3_device_ops_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\* | [ops](/reference/hal/structcamera3__device#a208e64b07023aef813a0905a9061e706) |\n| ||\n| void \\* | [priv](/reference/hal/structcamera3__device#a8b6505c37d4ff95854b8b00527e4d9fa) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[3088](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\nof file\n[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\n.\n\nField Documentation\n-------------------\n\n\n|----------------------------------------------------------|\n| [hw_device_t](/reference/hal/structhw__device__t) common |\n\n\ncommon.version must equal CAMERA_DEVICE_API_VERSION_3_0 to identify this device as implementing version 3.0 of the camera device HAL.\n\n\nPerformance requirements:\n\n\nCamera open (common.module-\\\u003ecommon.methods-\\\u003eopen) should return in 200ms, and must return in 500ms. Camera close (common.close) should return in 200ms, and must return in 500ms.\n\n\nDefinition at line\n[3100](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\nof file\n[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\n.\n\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| [camera3_device_ops_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\* ops |\n\n\nDefinition at line\n[3101](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\nof file\n[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\n.\n\n|-------------|\n| void\\* priv |\n\n\nDefinition at line\n[3102](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\nof file\n[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)"]]