Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu tham khảo về cấu trúc vehicle_camera_module_t
#include <
vehicle_camera.h
>
Mỗi mô-đun phần cứng phải có một cấu trúc dữ liệu có tên là HAL_MODULE_INFO_SYM và các trường của cấu trúc dữ liệu này phải bắt đầu bằng
hw_module_t
, theo sau là thông tin cụ thể về mô-đun.
Định nghĩa tại dòng
92
của tệp
vehicle_camera.h
.
const uint32_t*(* get_camera_device_list)(uint32_t *num_cameras)
|
Truy vấn phần cứng cho các camera được lắp đặt trên xe
-
Tham số
-
số_máy_ảnh
|
– số lượng thiết bị máy ảnh có sẵn. Nếu giá trị trả về là 0, tức là đã xảy ra lỗi và con trỏ trả về sẽ là NULL.
|
-
Giá trị trả về
-
con trỏ đến một mảng vehicle_camera_type_t để biểu thị những máy ảnh được cài đặt. Con trỏ này chỉ hợp lệ khi tải vehicle hal. Nếu con trỏ là NULL, thì đã xảy ra lỗi và num_cameras sẽ bằng 0.
Định nghĩa tại dòng
105
của tệp
vehicle_camera.h
.
Tài liệu cho cấu trúc này được tạo từ tệp sau:
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],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)"]]