自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
camera2_stream_in_ops 結構參考資料
#include <
camera2.h
>
輸入重新處理串流佇列管理。在 allocate_reprocess_stream() 中,會將這些方法的組合提供給 HAL 裝置,用於與重新處理串流的輸入 gralloc 緩衝區佇列互動。
定義位於檔案
camera2.h
的第
160
行。
取得下一個圖片資料緩衝區,以便重新處理。緩衝區的寬度、高度和格式會在 allocate_reprocess_stream() 中固定,並視需要從平台 gralloc 模組查詢步幅和其他詳細資料。緩衝區已鎖定,可供使用。
定義位於檔案
camera2.h
的
167
行。
這個結構體的說明文件是由下列檔案產生:
-
hardware/libhardware/include/hardware/
camera2.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: camera2_stream_in_ops Struct Reference\n\ncamera2_stream_in_ops Struct Reference\n======================================\n\n[Data Fields](#pub-attribs) \ncamera2_stream_in_ops Struct Reference \n\n`\n#include \u003c\n`[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)`\n\u003e\n`\n\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| int(\\* | [acquire_buffer](/reference/hal/structcamera2__stream__in__ops#ad1cbdf6fe238b117ad8a4d9db141b1cb) )(const struct [camera2_stream_in_ops](/reference/hal/structcamera2__stream__in__ops) \\*w, buffer_handle_t \\*\\*buffer) |\n| ||\n| int(\\* | [release_buffer](/reference/hal/structcamera2__stream__in__ops#aa6a176542d2ed5e9c65240dbec41b38b) )(const struct [camera2_stream_in_ops](/reference/hal/structcamera2__stream__in__ops) \\*w, buffer_handle_t \\*buffer) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nInput reprocess stream queue management. A set of these methods is provided to the HAL device in allocate_reprocess_stream(); they are used to interact with the reprocess stream's input gralloc buffer queue.\n\n\nDefinition at line\n[160](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* acquire_buffer)(const struct [camera2_stream_in_ops](/reference/hal/structcamera2__stream__in__ops) \\*w, buffer_handle_t \\*\\*buffer) |\n\n\nGet the next buffer of image data to reprocess. The width, height, and format of the buffer is fixed in allocate_reprocess_stream(), and the stride and other details should be queried from the platform gralloc module as needed. The buffer will already be locked for use.\n\n\nDefinition at line\n[167](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* release_buffer)(const struct [camera2_stream_in_ops](/reference/hal/structcamera2__stream__in__ops) \\*w, buffer_handle_t \\*buffer) |\n\n\nReturn a used buffer to the buffer queue for reuse.\n\n\nDefinition at line\n[172](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)"]]