自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
camera3_stream_configuration 結構參考
#include <
camera3.h
>
camera3_stream_configuration_t:
由 configure_streams() 使用的串流定義結構。這個結構定義了目前相機用途的所有輸出串流和重新處理輸入串流。
定義位於檔案
camera3.h
的
1688
行。
架構要求的串流總數。包括輸入和輸出串流。串流數量至少為 1,且至少會有一個可輸出的串流。
定義位於檔案
camera3.h
的
1694
行。
>= CAMERA_DEVICE_API_VERSION_3_3:
此設定中串流的作業模式,為 camera3_stream_configuration_mode_t 中定義的其中一個值。HAL 可使用這個模式做為指標,適當設定串流屬性 (例如 camera3_stream->max_buffers)。舉例來說,如果設定為 CAMERA3_STREAM_CONFIGURATION_CONSTRAINED_HIGH_SPEED_MODE,HAL 可能會為批次模式作業預留更多緩衝區 (請參閱 android.control.availableHighSpeedVideoConfigurations 瞭解批次模式定義)。
定義位於檔案
camera3.h
的
1722
行。
相機串流指標陣列,定義相機 HAL 裝置的輸入/輸出設定。
在單一設定中,最多只能定義一個可輸入的串流 (INPUT 或 BIDIRECTIONAL)。
至少必須定義一個可輸出的串流 (OUTPUT 或 BIDIRECTIONAL)。
定義位於檔案
camera3.h
的
1706
行。
這個結構體的說明文件是由下列檔案產生:
-
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_configuration Struct Reference\n\ncamera3_stream_configuration Struct Reference\n=============================================\n\n[Data Fields](#pub-attribs) \ncamera3_stream_configuration 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| uint32_t | [num_streams](/reference/hal/structcamera3__stream__configuration#aec9fa4026952cffde2a6a584c6ee7211) |\n| ||\n| [camera3_stream_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\*\\* | [streams](/reference/hal/structcamera3__stream__configuration#a6e271886774457a087d6281ba73372a8) |\n| ||\n| uint32_t | [operation_mode](/reference/hal/structcamera3__stream__configuration#abd277ba18dafdaa2c11151e19a78d029) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\ncamera3_stream_configuration_t:\n\n\nA structure of stream definitions, used by configure_streams(). This structure defines all the output streams and the reprocessing input stream for the current camera use case.\n\n\nDefinition at line\n[1688](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| uint32_t num_streams |\n\n\nThe total number of streams requested by the framework. This includes both input and output streams. The number of streams will be at least 1, and there will be at least one output-capable stream.\n\n\nDefinition at line\n[1694](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 operation_mode |\n\n\n\\\u003e= CAMERA_DEVICE_API_VERSION_3_3:\n\n\nThe operation mode of streams in this configuration, one of the value defined in camera3_stream_configuration_mode_t. The HAL can use this mode as an indicator to set the stream property (e.g., camera3_stream-\\\u003emax_buffers) appropriately. For example, if the configuration is CAMERA3_STREAM_CONFIGURATION_CONSTRAINED_HIGH_SPEED_MODE, the HAL may want to set aside more buffers for batch mode operation (see android.control.availableHighSpeedVideoConfigurations for batch mode definition).\n\n\nDefinition at line\n[1722](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) \\*\\* streams |\n\n\nAn array of camera stream pointers, defining the input/output configuration for the camera HAL device.\n\n\nAt most one input-capable stream may be defined (INPUT or BIDIRECTIONAL) in a single configuration.\n\n\nAt least one output-capable stream must be defined (OUTPUT or BIDIRECTIONAL).\n\n\nDefinition at line\n[1706](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)"]]