27 মার্চ, 2025 থেকে, আমরা AOSP তৈরি করতে এবং অবদান রাখতে aosp-main
এর পরিবর্তে android-latest-release
ব্যবহার করার পরামর্শ দিচ্ছি। আরও তথ্যের জন্য, AOSP-তে পরিবর্তনগুলি দেখুন।
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
camera3_capture_request স্ট্রাকট রেফারেন্স
#include < camera3.h >
camera3_capture_request_t:
ইমেজ ক্যাপচার/বাফার রিপ্রসেসিংয়ের জন্য একটি একক অনুরোধ, প্রসেস_ক্যাপচার_রিকোয়েস্ট() এর ফ্রেমওয়ার্ক দ্বারা ক্যামেরা HAL ডিভাইসে পাঠানো হয়েছে।
অনুরোধটিতে এই ক্যাপচারের জন্য ব্যবহার করা সেটিংস এবং ফলাফল চিত্র ডেটা লেখার জন্য আউটপুট বাফারগুলির সেট রয়েছে৷ এতে ঐচ্ছিকভাবে একটি ইনপুট বাফার থাকতে পারে, এই ক্ষেত্রে অনুরোধটি একটি নতুন ক্যাপচার করার পরিবর্তে সেই ইনপুট বাফারটিকে পুনরায় প্রক্রিয়া করার জন্য অনুরোধ করা হয়। ক্যামেরা সেন্সর সহ চিত্র। ফ্রেম_নম্বর দ্বারা ক্যাপচার শনাক্ত করা হয়।
প্রতিক্রিয়া হিসাবে, ক্যামেরা HAL ডিভাইসটিকে অবশ্যই একটি camera3_capture_result কাঠামোকে ফ্রেমওয়ার্কে অ্যাসিঙ্ক্রোনাস পাঠাতে হবে, process_capture_result() কলব্যাক ব্যবহার করে।
ফাইল camera3.h এর 2135 লাইনে সংজ্ঞা।
ফ্রেম নম্বর হল একটি ক্রমবর্ধমান পূর্ণসংখ্যা যা এই ক্যাপচারটিকে অনন্যভাবে সনাক্ত করতে ফ্রেমওয়ার্ক দ্বারা সেট করা হয়। ফলাফল কলে এটি ফেরত দিতে হবে, এবং ক্যামেরা3_callback_ops_t.notify() এ পাঠানো অ্যাসিঙ্ক্রোনাস বিজ্ঞপ্তিতে অনুরোধ শনাক্ত করতেও ব্যবহার করা হয়।
ফাইল camera3.h এর 2142 লাইনে সংজ্ঞা।
এই অনুরোধের জন্য ব্যবহার করার জন্য ইনপুট স্ট্রিম বাফার, যদি থাকে।
যদি input_buffer NULL হয়, তাহলে ইমেজার থেকে একটি নতুন ক্যাপচারের জন্য অনুরোধ করা হবে। যদি input_buffer বৈধ হয়, অনুরোধটি হল input_buffer-এ থাকা চিত্রটিকে পুনরায় প্রক্রিয়া করার জন্য৷
পরবর্তী ক্ষেত্রে, HAL-কে অবশ্যই input_buffer-এর release_fence একটি বৈধ সিঙ্ক বেড়াতে সেট করতে হবে, অথবা যদি HAL সিঙ্ক সমর্থন না করে, তাহলে process_capture_request() রিটার্ন করার আগে।
এইচএএলকে ইনপুট বাফারের অ্যাকোয়ায়ার সিঙ্ক বেড়াতে এটি অ্যাক্সেস করার আগে অপেক্ষা করতে হবে।
<= CAMERA_DEVICE_API_VERSION_3_1:
এখানে অন্তর্ভুক্ত যেকোনো ইনপুট বাফার একটি অনুরোধে অন্তর্ভুক্ত করার আগে register_stream_buffers() এর মাধ্যমে HAL এর সাথে নিবন্ধিত হবে।
>= CAMERA_DEVICE_API_VERSION_3_2:
বাফারগুলি HAL-এর সাথে প্রাক-নিবন্ধিত করা হবে না। পরবর্তী অনুরোধগুলি বাফারগুলি পুনরায় ব্যবহার করতে পারে, বা সম্পূর্ণ নতুন বাফার প্রদান করতে পারে।
ফাইল camera3.h এর 2177 লাইনে সংজ্ঞা।
uint32_t num_output_buffers |
এই ক্যাপচার অনুরোধের জন্য আউটপুট বাফারের সংখ্যা। কমপক্ষে 1 হতে হবে।
ফাইল camera3.h এর 2183 লাইনে সংজ্ঞা।
num_output_buffers স্ট্রিম বাফারের একটি অ্যারে, এই ক্যাপচার/পুনঃপ্রক্রিয়া থেকে ইমেজ ডেটা দিয়ে পূর্ণ করা হবে। HAL তাদের লেখার আগে প্রতিটি স্ট্রিম বাফারের অধিগ্রহণের বেড়ার জন্য অপেক্ষা করতে হবে।
HAL আউটপুট_বাফারে প্রকৃত বাফার_হ্যান্ডেল_টি এন্ট্রিগুলির মালিকানা নেয়; ফ্রেমওয়ার্ক তাদের অ্যাক্সেস করে না যতক্ষণ না সেগুলি ক্যামেরা3_ক্যাপচার_রেজাল্ট_টি এ ফিরে আসে।
<= CAMERA_DEVICE_API_VERSION_3_1:
এখানে অন্তর্ভুক্ত সমস্ত বাফার একটি অনুরোধে অন্তর্ভুক্ত করার আগে register_stream_buffers() এর মাধ্যমে HAL-এর সাথে নিবন্ধিত হবে।
>= CAMERA_DEVICE_API_VERSION_3_2:
এখানে অন্তর্ভুক্ত যেকোন বা সমস্ত বাফার এই অনুরোধে একেবারে নতুন হতে পারে (এইচএএল এর আগে কখনও দেখেনি)।
ফাইল camera3.h এর 2204 লাইনে সংজ্ঞা।
সেটিংস বাফারে অনুরোধের জন্য ক্যাপচার এবং প্রক্রিয়াকরণ পরামিতি রয়েছে। একটি বিশেষ ক্ষেত্রে, একটি NULL সেটিংস বাফার নির্দেশ করে যে সেটিংসগুলি সাম্প্রতিক জমা দেওয়া ক্যাপচার অনুরোধের সাথে অভিন্ন৷ configure_streams() কলের পরে প্রথম জমা দেওয়া অনুরোধ হিসাবে একটি NULL বাফার ব্যবহার করা যাবে না।
ফাইল camera3.h এর 2151 লাইনে সংজ্ঞা।
এই কাঠামোর জন্য ডকুমেন্টেশন নিম্নলিখিত ফাইল থেকে তৈরি করা হয়েছিল:
- hardware/libhardware/include/hardware/ camera3.h
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 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-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Android Hardware Abstraction Layer: camera3_capture_request Struct Reference\n\ncamera3_capture_request Struct Reference\n========================================\n\n[Data Fields](#pub-attribs) \ncamera3_capture_request 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 | [frame_number](/reference/hal/structcamera3__capture__request#a57cc7f4d579276167efca6cf047839b2) |\n| ||\n| const [camera_metadata_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h) \\* | [settings](/reference/hal/structcamera3__capture__request#adccd8702a549b9f5fb98afa0c4b44a62) |\n| ||\n| [camera3_stream_buffer_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\* | [input_buffer](/reference/hal/structcamera3__capture__request#ac1c94bbde71f06911c6abe85f3a44593) |\n| ||\n| uint32_t | [num_output_buffers](/reference/hal/structcamera3__capture__request#a70d2093ddb1078b68c6688b6cf923380) |\n| ||\n| const [camera3_stream_buffer_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\* | [output_buffers](/reference/hal/structcamera3__capture__request#ab1d50229b27a7cf28ff1374be6650fb6) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\ncamera3_capture_request_t:\n\n\nA single request for image capture/buffer reprocessing, sent to the Camera HAL device by the framework in process_capture_request().\n\n\nThe request contains the settings to be used for this capture, and the set of output buffers to write the resulting image data in. It may optionally contain an input buffer, in which case the request is for reprocessing that input buffer instead of capturing a new image with the camera sensor. The capture is identified by the frame_number.\n\n\nIn response, the camera HAL device must send a\n[camera3_capture_result](/reference/hal/structcamera3__capture__result)\nstructure asynchronously to the framework, using the process_capture_result() callback.\n\n\nDefinition at line\n[2135](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 frame_number |\n\n\nThe frame number is an incrementing integer set by the framework to uniquely identify this capture. It needs to be returned in the result call, and is also used to identify the request in asynchronous notifications sent to\n[camera3_callback_ops_t.notify()](/reference/hal/structcamera3__callback__ops#a6d702d6e962f95105b984b17462619b3)\n.\n\n\nDefinition at line\n[2142](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_buffer_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\* input_buffer |\n\n\nThe input stream buffer to use for this request, if any.\n\n\nIf input_buffer is NULL, then the request is for a new capture from the imager. If input_buffer is valid, the request is for reprocessing the image contained in input_buffer.\n\n\nIn the latter case, the HAL must set the release_fence of the input_buffer to a valid sync fence, or to -1 if the HAL does not support sync, before process_capture_request() returns.\n\n\nThe HAL is required to wait on the acquire sync fence of the input buffer before accessing it.\n\n\n\\\u003c= CAMERA_DEVICE_API_VERSION_3_1:\n\n\nAny input buffer included here will have been registered with the HAL through register_stream_buffers() before its inclusion in a request.\n\n\n\\\u003e= CAMERA_DEVICE_API_VERSION_3_2:\n\n\nThe buffers will not have been pre-registered with the HAL. Subsequent requests may reuse buffers, or provide entirely new buffers.\n\n\nDefinition at line\n[2177](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_output_buffers |\n\n\nThe number of output buffers for this capture request. Must be at least 1.\n\n\nDefinition at line\n[2183](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| const [camera3_stream_buffer_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\* output_buffers |\n\n\nAn array of num_output_buffers stream buffers, to be filled with image data from this capture/reprocess. The HAL must wait on the acquire fences of each stream buffer before writing to them.\n\n\nThe HAL takes ownership of the actual buffer_handle_t entries in output_buffers; the framework does not access them until they are returned in a camera3_capture_result_t.\n\n\n\\\u003c= CAMERA_DEVICE_API_VERSION_3_1:\n\n\nAll the buffers included here will have been registered with the HAL through register_stream_buffers() before their inclusion in a request.\n\n\n\\\u003e= CAMERA_DEVICE_API_VERSION_3_2:\n\n\nAny or all of the buffers included here may be brand new in this request (having never before seen by the HAL).\n\n\nDefinition at line\n[2204](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| const [camera_metadata_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h) \\* settings |\n\n\nThe settings buffer contains the capture and processing parameters for the request. As a special case, a NULL settings buffer indicates that the settings are identical to the most-recently submitted capture request. A NULL buffer cannot be used as the first submitted request after a configure_streams() call.\n\n\nDefinition at line\n[2151](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)"]]