हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
camera2_stream_in_ops स्ट्रक्चर का रेफ़रंस
#include <
camera2.h
>
स्ट्रीम की सूची को फिर से प्रोसेस करने की सुविधा मैनेज करने के लिए इनपुट. इन तरीकों का एक सेट, allocate_reprocess_stream() में HAL डिवाइस को दिया जाता है. इनका इस्तेमाल, रीप्रोसेस स्ट्रीम के इनपुट gralloc बफ़र क्यू के साथ इंटरैक्ट करने के लिए किया जाता है.
परिभाषा,
camera2.h
की फ़ाइल के
160
पंक्ति पर दी गई है.
फिर से प्रोसेस करने के लिए, इमेज डेटा का अगला बफ़र पाएं. बफ़र की चौड़ाई, ऊंचाई, और फ़ॉर्मैट, allocate_reprocess_stream() में तय होता है. साथ ही, स्ट्राइड और अन्य जानकारी के लिए, ज़रूरत के हिसाब से प्लैटफ़ॉर्म के gralloc मॉड्यूल से क्वेरी की जानी चाहिए. बफ़र का इस्तेमाल करने के लिए, उसे पहले से ही लॉक कर दिया जाएगा.
परिभाषा,
camera2.h
फ़ाइल की लाइन
167
पर दी गई है
.
इस्तेमाल किए गए बफ़र को फिर से इस्तेमाल करने के लिए, बफ़र की सूची में वापस लाएं.
परिभाषा,
camera2.h
फ़ाइल की लाइन
172
पर दी गई है
.
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
-
hardware/libhardware/include/hardware/
camera2.h
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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 (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)"]]