Od 27 marca 2025 r. zalecamy używanie android-latest-release
zamiast aosp-main
do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Struktura camera2_stream_in_ops – odniesienie
#include <
camera2.h
>
Zarządzanie kolejką przetwarzania ponownie strumieniowego. Zestaw tych metod jest udostępniany urządzeniu HAL w funkcji allocate_reprocess_stream(); są one używane do interakcji z koleją bufora gralloc dla wejścia strumienia ponownego przetwarzania.
Definicja w wierszu
160
pliku
camera2.h
.
Pobierz kolejny bufor danych obrazu, który ma zostać przetworzony. Szerokość, wysokość i format bufora są ustalone w allocate_reprocess_stream(), a stride i inne szczegóły należy zapytać z modułu gralloc platformy w razie potrzeby. Bufor będzie już zablokowany do użycia.
Definicja w wierszu
167
pliku
camera2.h
.
zwracanie wykorzystanego bufora do kolejki buforów w celu ponownego użycia;
Definicja w wierszu
172
pliku
camera2.h
.
Dokumentacja tego typu danych została wygenerowana z tego pliku:
-
hardware/libhardware/include/hardware/
camera2.h
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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)"]]