自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
camera3_stream_buffer_set 結構參考資料
#include <
camera3.h
>
camera3_stream_buffer_set_t:
串流的完整 gralloc 緩衝區組合。這個結構體會傳遞至 register_stream_buffers(),讓相機 HAL 裝置註冊/對應/等新分配的串流緩衝區。
>= CAMERA_DEVICE_API_VERSION_3_2:
已淘汰 (且未使用)。特別是,register_stream_buffers 也已淘汰,且永遠不會叫用。
定義位於檔案
camera3.h
的第
1844
行。
buffer_handle_t** buffers
|
這個串流的 gralloc 緩衝區句柄陣列。如果串流格式設為 HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED,相機 HAL 裝置應檢查傳入的緩衝區,以判斷任何平台專屬的像素格式資訊。
定義位於檔案
camera3.h 的
1862
行。
這個串流中的緩衝區數量。保證至少為 stream->max_buffers。
定義位於檔案
camera3.h
的
1854
行。
這個結構體的說明文件是由下列檔案產生:
-
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_stream_buffer_set Struct Reference\n\ncamera3_stream_buffer_set Struct Reference\n==========================================\n\n[Data Fields](#pub-attribs) \ncamera3_stream_buffer_set 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| [camera3_stream_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\* | [stream](/reference/hal/structcamera3__stream__buffer__set#afaf6c85f165b4180fe63affae0232dad) |\n| ||\n| uint32_t | [num_buffers](/reference/hal/structcamera3__stream__buffer__set#a234ac58df17f88aa6be3bbe395fb7599) |\n| ||\n| buffer_handle_t \\*\\* | [buffers](/reference/hal/structcamera3__stream__buffer__set#a12fbd3e59056095fcd6c61068fae8dfa) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\ncamera3_stream_buffer_set_t:\n\n\nThe complete set of gralloc buffers for a stream. This structure is given to register_stream_buffers() to allow the camera HAL device to register/map/etc newly allocated stream buffers.\n\n\n\\\u003e= CAMERA_DEVICE_API_VERSION_3_2:\n\n\nDeprecated (and not used). In particular, register_stream_buffers is also deprecated and will never be invoked.\n\n\nDefinition at line\n[1844](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| buffer_handle_t\\*\\* buffers |\n\n\nThe array of gralloc buffer handles for this stream. If the stream format is set to HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, the camera HAL device should inspect the passed-in buffers to determine any platform-private pixel format information.\n\n\nDefinition at line\n[1862](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| uint32_t num_buffers |\n\n\nThe number of buffers in this stream. It is guaranteed to be at least stream-\\\u003emax_buffers.\n\n\nDefinition at line\n[1854](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_stream_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\* stream |\n\n\nThe stream handle for the stream these buffers belong to\n\n\nDefinition at line\n[1848](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)"]]