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 camera3_stream_configuration
#include <
camera3.h
>
camera3_stream_configuration_t:
Struktur definisi streaming, yang digunakan oleh configure_streams(). Struktur ini menentukan semua streaming output dan streaming input pemrosesan ulang untuk kasus penggunaan kamera saat ini.
Definisi di baris
1688
file
camera3.h
.
Jumlah total streaming yang diminta oleh framework. Hal ini mencakup aliran input dan output. Jumlah streaming akan minimal 1, dan akan ada minimal satu streaming yang mampu menghasilkan output.
Definisi pada baris
1694
dari file
camera3.h
.
>= CAMERA_DEVICE_API_VERSION_3_3:
Mode operasi streaming dalam konfigurasi ini, salah satu nilai yang ditentukan dalam camera3_stream_configuration_mode_t. HAL dapat menggunakan mode ini sebagai indikator untuk menetapkan properti streaming (misalnya, camera3_stream->max_buffers) dengan tepat. Misalnya, jika konfigurasinya adalah CAMERA3_STREAM_CONFIGURATION_CONSTRAINED_HIGH_SPEED_MODE, HAL mungkin ingin menyisihkan lebih banyak buffering untuk operasi mode batch (lihat android.control.availableHighSpeedVideoConfigurations untuk definisi mode batch).
Definisi di baris
1722
dari file
camera3.h
.
Array pointer streaming kamera, yang menentukan konfigurasi input/output untuk perangkat HAL kamera.
Maksimal satu aliran yang dapat menerima input dapat ditentukan (INPUT atau BIDIRECTIONAL) dalam satu konfigurasi.
Setidaknya satu aliran yang mampu menghasilkan output harus ditentukan (OUTPUT atau BIDIRECTIONAL).
Definisi di baris
1706
dari file
camera3.h
.
Dokumentasi untuk struct ini dibuat dari file berikut:
-
hardware/libhardware/include/hardware/
camera3.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: camera3_stream_configuration Struct Reference\n\ncamera3_stream_configuration Struct Reference\n=============================================\n\n[Data Fields](#pub-attribs) \ncamera3_stream_configuration Struct Reference \n\n`\n#include \u003c\n`[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)`\n\u003e\n`\n\n|-----------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| uint32_t | [num_streams](/reference/hal/structcamera3__stream__configuration#aec9fa4026952cffde2a6a584c6ee7211) |\n| ||\n| [camera3_stream_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\*\\* | [streams](/reference/hal/structcamera3__stream__configuration#a6e271886774457a087d6281ba73372a8) |\n| ||\n| uint32_t | [operation_mode](/reference/hal/structcamera3__stream__configuration#abd277ba18dafdaa2c11151e19a78d029) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\ncamera3_stream_configuration_t:\n\n\nA structure of stream definitions, used by configure_streams(). This structure defines all the output streams and the reprocessing input stream for the current camera use case.\n\n\nDefinition at line\n[1688](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\nof file\n[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\n.\n\nField Documentation\n-------------------\n\n\n|----------------------|\n| uint32_t num_streams |\n\n\nThe total number of streams requested by the framework. This includes both input and output streams. The number of streams will be at least 1, and there will be at least one output-capable stream.\n\n\nDefinition at line\n[1694](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\nof file\n[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\n.\n\n|-------------------------|\n| uint32_t operation_mode |\n\n\n\\\u003e= CAMERA_DEVICE_API_VERSION_3_3:\n\n\nThe operation mode of streams in this configuration, one of the value defined in camera3_stream_configuration_mode_t. The HAL can use this mode as an indicator to set the stream property (e.g., camera3_stream-\\\u003emax_buffers) appropriately. For example, if the configuration is CAMERA3_STREAM_CONFIGURATION_CONSTRAINED_HIGH_SPEED_MODE, the HAL may want to set aside more buffers for batch mode operation (see android.control.availableHighSpeedVideoConfigurations for batch mode definition).\n\n\nDefinition at line\n[1722](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\nof file\n[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\n.\n\n|-------------------------------------------------------------------------------------------------------------------------------------|\n| [camera3_stream_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h) \\*\\* streams |\n\n\nAn array of camera stream pointers, defining the input/output configuration for the camera HAL device.\n\n\nAt most one input-capable stream may be defined (INPUT or BIDIRECTIONAL) in a single configuration.\n\n\nAt least one output-capable stream must be defined (OUTPUT or BIDIRECTIONAL).\n\n\nDefinition at line\n[1706](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\nof file\n[camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [camera3.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/camera3.h)"]]