27 মার্চ, 2025 থেকে, আমরা AOSP তৈরি করতে এবং অবদান রাখতে aosp-main
এর পরিবর্তে android-latest-release
ব্যবহার করার পরামর্শ দিচ্ছি। আরও তথ্যের জন্য, AOSP-তে পরিবর্তনগুলি দেখুন।
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
camera_module_callbacks স্ট্রাকট রেফারেন্স
#include < camera_common.h >
ক্যামেরা সাবসিস্টেমের পরিবর্তনের ফ্রেমওয়ার্ক জানাতে ক্যামেরা HAL মডিউল ব্যবহার করার জন্য কলব্যাক ফাংশন।
সংস্করণ তথ্য (camera_module_t.common.module_api_version এর উপর ভিত্তি করে):
প্রতিটি কলব্যাক শুধুমাত্র HAL মডিউল দ্বারা নির্দেশিত সংস্করণ বা HAL মডিউল API ইন্টারফেসের উচ্চতর প্রয়োগ করে।
CAMERA_MODULE_API_VERSION_2_1: camera_device_status_change()
CAMERA_MODULE_API_VERSION_2_4: torch_mode_status_change()
ফাইল camera_common.h এর 594 লাইনে সংজ্ঞা।
ক্যামেরা_ডিভাইস_স্ট্যাটাস_পরিবর্তন:
একটি নির্দিষ্ট ক্যামেরা ডিভাইসের অবস্থা পরিবর্তিত হয়েছে তা নির্দেশ করতে ফ্রেমওয়ার্কে কলব্যাক করুন। মডিউল লোডের সময়, ফ্রেমওয়ার্ক সমস্ত ক্যামেরা ডিভাইস CAMERA_DEVICE_STATUS_PRESENT অবস্থায় আছে বলে ধরে নেবে৷ HAL-কে অবশ্যই এই পদ্ধতিতে কল করতে হবে যে কোনো প্রাথমিকভাবে NOT_PRESENT ডিভাইসের ফ্রেমওয়ার্ক জানাতে।
এই কলব্যাকটি CAMERA_MODULE_API_VERSION_2_1 এর জন্য যোগ করা হয়েছে৷
camera_module_callbacks : camera_module_callbacks_t এর উদাহরণ সেট_কলব্যাক সহ মডিউলে পাস করা হয়েছে।
camera_id: ক্যামেরা ডিভাইসের আইডি যার একটি নতুন স্ট্যাটাস আছে।
new_status: নতুন স্ট্যাটাস কোড, camera_device_status_t enums এর একটি, অথবা একটি প্ল্যাটফর্ম-নির্দিষ্ট স্থিতি।
ফাইল camera_common.h এর 616 লাইনে সংজ্ঞা।
টর্চ_মোড_স্ট্যাটাস_পরিবর্তন:
একটি নির্দিষ্ট ক্যামেরা ডিভাইসের সাথে যুক্ত ফ্ল্যাশ ইউনিটের টর্চ মোডের অবস্থা পরিবর্তিত হয়েছে তা নির্দেশ করতে ফ্রেমওয়ার্কে কলব্যাক করুন। মডিউল লোডের সময়, ফ্রেমওয়ার্ক ধরে নেবে টর্চ মোডগুলি TORCH_MODE_STATUS_AVAILABLE_OFF অবস্থায় আছে যদি get_camera_info() কলের মাধ্যমে android.flash.info.available কে সত্য হিসাবে রিপোর্ট করা হয়।
এই কলব্যাকটি CAMERA_MODULE_API_VERSION_2_4 এর জন্য যোগ করা হয়েছে৷
camera_module_callbacks : camera_module_callbacks_t এর উদাহরণ সেট_কলব্যাক সহ মডিউলে পাস করা হয়েছে।
camera_id: ক্যামেরা ডিভাইসের ID যার ফ্ল্যাশ ইউনিটে একটি নতুন টর্চ মোড স্ট্যাটাস রয়েছে।
new_status: নতুন স্ট্যাটাস কোড, torch_mode_status_t enums এর একটি।
ফাইল camera_common.h এর 639 লাইনে সংজ্ঞা।
এই কাঠামোর জন্য ডকুমেন্টেশন নিম্নলিখিত ফাইল থেকে তৈরি করা হয়েছিল:
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি 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: camera_module_callbacks Struct Reference\n\ncamera_module_callbacks Struct Reference\n========================================\n\n[Data Fields](#pub-attribs) \ncamera_module_callbacks Struct Reference \n\n`\n#include \u003c\n`[camera_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h)`\n\u003e\n`\n\n|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| void(\\* | [camera_device_status_change](/reference/hal/structcamera__module__callbacks#a79f12aab43e5c0ca75b127718f3144cf) )(const struct [camera_module_callbacks](/reference/hal/structcamera__module__callbacks) \\*, int camera_id, int new_status) |\n| ||\n| void(\\* | [torch_mode_status_change](/reference/hal/structcamera__module__callbacks#a70479d8b007a3a6b441437a3e584b2af) )(const struct [camera_module_callbacks](/reference/hal/structcamera__module__callbacks) \\*, const char \\*camera_id, int new_status) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nCallback functions for the camera HAL module to use to inform the framework of changes to the camera subsystem.\n\n\nVersion information (based on camera_module_t.common.module_api_version):\n\n\nEach callback is called only by HAL modules implementing the indicated version or higher of the HAL module API interface.\n\n\nCAMERA_MODULE_API_VERSION_2_1:\n[camera_device_status_change()](/reference/hal/structcamera__module__callbacks#a79f12aab43e5c0ca75b127718f3144cf)\n\n\nCAMERA_MODULE_API_VERSION_2_4:\n[torch_mode_status_change()](/reference/hal/structcamera__module__callbacks#a70479d8b007a3a6b441437a3e584b2af)\n\n\nDefinition at line\n[594](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h)\nof file\n[camera_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h)\n.\n\nField Documentation\n-------------------\n\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| void(\\* camera_device_status_change)(const struct [camera_module_callbacks](/reference/hal/structcamera__module__callbacks) \\*, int camera_id, int new_status) |\n\n\ncamera_device_status_change:\n\n\nCallback to the framework to indicate that the state of a specific camera device has changed. At module load time, the framework will assume all camera devices are in the CAMERA_DEVICE_STATUS_PRESENT state. The HAL must call this method to inform the framework of any initially NOT_PRESENT devices.\n\n\nThis callback is added for CAMERA_MODULE_API_VERSION_2_1.\n\n\n[camera_module_callbacks](/reference/hal/structcamera__module__callbacks)\n: The instance of camera_module_callbacks_t passed to the module with set_callbacks.\n\n\ncamera_id: The ID of the camera device that has a new status.\n\n\nnew_status: The new status code, one of the camera_device_status_t enums, or a platform-specific status.\n\n\nDefinition at line\n[616](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h)\nof file\n[camera_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| void(\\* torch_mode_status_change)(const struct [camera_module_callbacks](/reference/hal/structcamera__module__callbacks) \\*, const char \\*camera_id, int new_status) |\n\n\ntorch_mode_status_change:\n\n\nCallback to the framework to indicate that the state of the torch mode of the flash unit associated with a specific camera device has changed. At module load time, the framework will assume the torch modes are in the TORCH_MODE_STATUS_AVAILABLE_OFF state if android.flash.info.available is reported as true via get_camera_info() call.\n\n\nThis callback is added for CAMERA_MODULE_API_VERSION_2_4.\n\n\n[camera_module_callbacks](/reference/hal/structcamera__module__callbacks)\n: The instance of camera_module_callbacks_t passed to the module with set_callbacks.\n\n\ncamera_id: The ID of camera device whose flash unit has a new torch mode status.\n\n\nnew_status: The new status code, one of the torch_mode_status_t enums.\n\n\nDefinition at line\n[639](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h)\nof file\n[camera_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [camera_common.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera_common.h)"]]