Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Referensi Struct camera2_device
#include <
camera2.h
>
Definisi di baris
830
file
camera2.h
.
common.version harus sama dengan CAMERA_DEVICE_API_VERSION_2_0 untuk mengidentifikasi perangkat ini sebagai menerapkan HAL perangkat kamera versi 2.0.
Definisi di baris
835
dari file
camera2.h
.
Dokumentasi untuk struct ini dibuat dari file berikut:
-
hardware/libhardware/include/hardware/
camera2.h
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Android Hardware Abstraction Layer: camera2_device Struct Reference\n\ncamera2_device Struct Reference\n===============================\n\n[Data Fields](#pub-attribs) \ncamera2_device Struct Reference \n\n`\n#include \u003c\n`[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| [hw_device_t](/reference/hal/structhw__device__t) | [common](/reference/hal/structcamera2__device#a75bb16f553e7a3642d7d16e229a1d90d) |\n| ||\n| [camera2_device_ops_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h) \\* | [ops](/reference/hal/structcamera2__device#a5cc1a28c1a90eadb1b9a023ed928139b) |\n| ||\n| void \\* | [priv](/reference/hal/structcamera2__device#a8b6505c37d4ff95854b8b00527e4d9fa) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[830](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\nField Documentation\n-------------------\n\n\n|----------------------------------------------------------|\n| [hw_device_t](/reference/hal/structhw__device__t) common |\n\n\ncommon.version must equal CAMERA_DEVICE_API_VERSION_2_0 to identify this device as implementing version 2.0 of the camera device HAL.\n\n\nDefinition at line\n[835](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| [camera2_device_ops_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h) \\* ops |\n\n\nDefinition at line\n[836](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n|-------------|\n| void\\* priv |\n\n\nDefinition at line\n[837](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\nof file\n[camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [camera2.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera2.h)"]]