Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tham chiếu cấu trúc camera3_stream_configuration
#include <
camera3.h
>
camera3_stream_configuration_t:
Cấu trúc định nghĩa luồng, được configure_streams() sử dụng. Cấu trúc này xác định tất cả luồng đầu ra và luồng đầu vào xử lý lại cho trường hợp sử dụng máy ảnh hiện tại.
Định nghĩa tại dòng
1688
của tệp
camera3.h
.
Tổng số luồng mà khung yêu cầu. Điều này bao gồm cả luồng đầu vào và đầu ra. Số luồng sẽ ít nhất là 1 và sẽ có ít nhất một luồng có khả năng xuất.
Định nghĩa tại dòng
1694
của tệp
camera3.h
.
>= CAMERA_DEVICE_API_VERSION_3_3:
Chế độ hoạt động của các luồng trong cấu hình này, một trong các giá trị được xác định trong camera3_stream_configuration_mode_t. HAL có thể sử dụng chế độ này làm chỉ báo để đặt thuộc tính luồng (ví dụ: camera3_stream->max_buffers) cho phù hợp. Ví dụ: nếu cấu hình là CAMERA3_STREAM_CONFIGURATION_CONSTRAINED_HIGH_SPEED_MODE, thì HAL có thể muốn dành nhiều bộ đệm hơn cho hoạt động ở chế độ hàng loạt (xem android.control.availableHighSpeedVideoConfigurations để biết định nghĩa về chế độ hàng loạt).
Định nghĩa tại dòng
1722
của tệp
camera3.h
.
Một mảng con trỏ luồng máy ảnh, xác định cấu hình đầu vào/đầu ra cho thiết bị HAL máy ảnh.
Bạn chỉ có thể xác định tối đa một luồng có khả năng nhập (INPUT hoặc BIDIRECTIONAL) trong một cấu hình.
Bạn phải xác định ít nhất một luồng có khả năng đầu ra (OUTPUT hoặc BIDIRECTIONAL).
Định nghĩa tại dòng
1706
của tệp
camera3.h
.
Tài liệu cho cấu trúc này được tạo từ tệp sau:
-
hardware/libhardware/include/hardware/
camera3.h
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],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)"]]