自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
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 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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)"]]