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.
Tài liệu tham khảo về cấu trúc camera2_stream_in_ops
#include <
camera2.h
>
Quản lý hàng đợi luồng xử lý lại đầu vào. Một nhóm các phương thức này được cung cấp cho thiết bị HAL trong allocate_reprocess_stream(); các phương thức này được dùng để tương tác với hàng đợi bộ đệm gralloc đầu vào của luồng xử lý lại.
Định nghĩa tại dòng
160
của tệp
camera2.h
.
Lấy vùng đệm dữ liệu hình ảnh tiếp theo để xử lý lại. Chiều rộng, chiều cao và định dạng của vùng đệm được cố định trong allocate_reprocess_stream(), đồng thời bước và các thông tin chi tiết khác phải được truy vấn từ mô-đun gralloc của nền tảng nếu cần. Vùng đệm sẽ được khoá để sử dụng.
Định nghĩa tại dòng
167
của tệp
camera2.h
.
Trả về vùng đệm đã sử dụng vào hàng đợi vùng đệm để sử dụng lại.
Định nghĩa tại dòng
172
của tệp
camera2.h
.
Tài liệu cho cấu trúc này được tạo từ tệp sau:
-
hardware/libhardware/include/hardware/
camera2.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: 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)"]]