Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
vehicle_camera_module_t Struct Reference
#include <
vehicle_camera.h
>
Every hardware module must have a data structure named HAL_MODULE_INFO_SYM and the fields of this data structure must begin with
hw_module_t
followed by module specific information.
Definition at line
92
of file
vehicle_camera.h
.
const uint32_t*(* get_camera_device_list)(uint32_t *num_cameras)
|
Queries the HW for the cameras installed on the vehicle
-
Parameters
-
num_cameras
|
- number of camera devices available. If 0 is returned, an error has occurred and the return pointer shall be NULL.
|
-
Returns
-
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.
Definition at line
105
of file
vehicle_camera.h
.
The documentation for this struct was generated from the following file:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 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)"]]