از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
مرجع ساختار خودرو_دوربین_مدول_t
#include < vehicle_camera.h >
هر ماژول سخت افزاری باید ساختار داده ای به نام HAL_MODULE_INFO_SYM داشته باشد و فیلدهای این ساختار داده باید با hw_module_t و سپس اطلاعات خاص ماژول شروع شود.
تعریف در خط 92 فایل automjet_camera.h .
const uint32_t*(* get_camera_device_list)(uint32_t *num_cameras) |
HW را برای دوربین های نصب شده بر روی خودرو جستجو می کند
- مولفه های
num_cameras | - تعداد دستگاه های دوربین موجود اگر 0 برگردانده شود، خطایی رخ داده است و نشانگر بازگشتی باید NULL باشد. |
- برمی گرداند
- اشاره گر به آرایه ای از automjet_camera_type_t برای مشخص کردن دوربین هایی که نصب شده اند. این نشانگر فقط زمانی معتبر است که هال وسیله نقلیه بارگیری شده باشد. اگر نشانگر NULL باشد، خطایی رخ داده است و num_cameras باید 0 باشد.
تعریف در خط 105 فایل automjet_camera.h .
مستندات این ساختار از فایل زیر تولید شده است:
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Android Hardware Abstraction Layer: vehicle_camera_module_t Struct Reference\n\nvehicle_camera_module_t Struct Reference\n========================================\n\n[Data Fields](#pub-attribs) \nvehicle_camera_module_t Struct Reference \n\n`\n#include \u003c\n`[vehicle_camera.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/vehicle_camera.h)`\n\u003e\n`\n\n|----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| struct [hw_module_t](/reference/hal/structhw__module__t) | [common](/reference/hal/structvehicle__camera__module__t#a71ea01183b3998cad6a2301a37a42fc7) |\n| ||\n| const uint32_t \\*(\\* | [get_camera_device_list](/reference/hal/structvehicle__camera__module__t#abe4cdad4fc42a1a1fdee2f35eecedbaa) )(uint32_t \\*num_cameras) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nEvery hardware module must have a data structure named HAL_MODULE_INFO_SYM and the fields of this data structure must begin with\n[hw_module_t](/reference/hal/structhw__module__t)\nfollowed by module specific information.\n\n\nDefinition at line\n[92](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/vehicle_camera.h)\nof file\n[vehicle_camera.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/vehicle_camera.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------|\n| struct [hw_module_t](/reference/hal/structhw__module__t) common |\n\n\nDefinition at line\n[93](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/vehicle_camera.h)\nof file\n[vehicle_camera.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/vehicle_camera.h)\n.\n\n|---------------------------------------------------------------------|\n| const uint32_t\\*(\\* get_camera_device_list)(uint32_t \\*num_cameras) |\n\n\nQueries the HW for the cameras installed on the vehicle\n\n\nParameters\n:\n\n |-------------|---------------------------------------------------------------------------------------------------------------------|\n | num_cameras | - number of camera devices available. If 0 is returned, an error has occurred and the return pointer shall be NULL. |\n\n\nReturns\n:\n pointer to an array of vehicle_camera_type_t to denote which cameras are installed. This pointer is only valid while the vehicle hal is loaded. If the pointer is NULL, then an error has occurred and num_cameras shall be 0.\n\n\nDefinition at line\n[105](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/vehicle_camera.h)\nof file\n[vehicle_camera.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/vehicle_camera.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [vehicle_camera.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/vehicle_camera.h)"]]