Home
last modified time | relevance | path

Searched refs:camera_id (Results 1 – 25 of 79) sorted by relevance

1234

/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraFlash.cpp138 int32_t QCameraFlash::initFlash(const int camera_id) in initFlash() argument
145 if (camera_id < 0 || camera_id >= MM_CAMERA_MAX_NUM_SENSORS) { in initFlash()
146 LOGE("Invalid camera id: %d", camera_id); in initFlash()
150 QCamera3HardwareInterface::getFlashInfo(camera_id, in initFlash()
160 camera_id); in initFlash()
162 } else if (m_cameraOpen[camera_id]) { in initFlash()
164 camera_id); in initFlash()
166 } else if (m_flashFds[camera_id] >= 0) { in initFlash()
168 camera_id); in initFlash()
170 m_flashFds[camera_id] = open(flashPath, O_RDWR | O_NONBLOCK); in initFlash()
[all …]
DQCameraFlash.h49 int32_t initFlash(const int camera_id);
50 int32_t setFlashMode(const int camera_id, const bool on);
51 int32_t deinitFlash(const int camera_id);
52 int32_t reserveFlashForCamera(const int camera_id);
53 int32_t releaseFlashFromCamera(const int camera_id);
/hardware/qcom/camera/msm8998/QCamera2/
DQCamera2Factory.cpp207 int QCamera2Factory::get_camera_info(int camera_id, struct camera_info *info) in QCamera2Factory() argument
212 rc = gQCameraMuxer->get_camera_info(camera_id, info); in QCamera2Factory()
215 rc = gQCamera2Factory->getCameraInfo(camera_id, info); in QCamera2Factory()
252 int QCamera2Factory::is_stream_combination_supported(int camera_id, in QCamera2Factory() argument
255 return gQCamera2Factory->isStreamCombinationSupported(camera_id, streams); in QCamera2Factory()
271 int QCamera2Factory::isStreamCombinationSupported(int camera_id, in QCamera2Factory() argument
274 if (!mNumOfCameras || camera_id >= mNumOfCameras || !streams || in QCamera2Factory()
275 (camera_id < 0)) { in QCamera2Factory()
278 mNumOfCameras, camera_id, streams); in QCamera2Factory()
282 return QCamera3HardwareInterface::isStreamCombinationSupported(camera_id, streams); in QCamera2Factory()
[all …]
DQCamera2Factory.h50 static int get_camera_info(int camera_id, struct camera_info *info);
54 static int set_torch_mode(const char* camera_id, bool on);
57 static int is_stream_combination_supported(int camera_id,
63 int getCameraInfo(int camera_id, struct camera_info *info);
64 int isStreamCombinationSupported(int camera_id,
67 int cameraDeviceOpen(int camera_id, struct hw_device_t **hw_device);
72 int setTorchMode(const char* camera_id, bool on);
/hardware/google/camera/common/hal/aidl_service/
Daidl_camera_provider.cc71 [this](std::string camera_id, in Initialize()
91 "/" + kProviderName + "/" + camera_id, in Initialize()
101 [this](std::string camera_id, std::string physical_camera_id, in Initialize()
136 "/" + kProviderName + "/" + camera_id, in Initialize()
146 [this](std::string camera_id, in Initialize()
166 "/" + kProviderName + "/" + camera_id, in Initialize()
287 for (auto& camera_id : combination) { in getConcurrentCameraIds() local
288 aidl_combination[c] = std::to_string(camera_id); in getConcurrentCameraIds()
319 uint32_t camera_id = atoi(config.cameraId.c_str()); in isConcurrentStreamCombinationSupported() local
320 devices_stream_configs[c].camera_id = camera_id; in isConcurrentStreamCombinationSupported()
[all …]
/hardware/google/camera/devices/EmulatedCamera/hwl/
DEmulatedCameraProviderHWLImpl.cpp157 static bool SupportsCapability(const uint32_t camera_id, in SupportsCapability() argument
163 ALOGE("Error getting capabilities for camera id %u", camera_id); in SupportsCapability()
175 uint32_t camera_id) { in SupportsMandatoryConcurrentStreams() argument
176 HalCameraMetadata& static_metadata = *(static_metadata_[camera_id]); in SupportsMandatoryConcurrentStreams()
185 camera_id, static_metadata, in SupportsMandatoryConcurrentStreams()
190 camera_id); in SupportsMandatoryConcurrentStreams()
195 camera_id); in SupportsMandatoryConcurrentStreams()
200 ALOGW("No PRIV output supported by camera id %u", camera_id); in SupportsMandatoryConcurrentStreams()
205 ALOGW("No BLOB output supported by camera id %u", camera_id); in SupportsMandatoryConcurrentStreams()
219 camera_id); in SupportsMandatoryConcurrentStreams()
[all …]
DEmulatedCameraDeviceSessionHWLImpl.cpp53 uint32_t camera_id, const HalCameraMetadata* settings, in GetActiveArrayDimensionToBeUsed() argument
55 auto dim_it = camera_ids_to_dimensions_.find(camera_id); in GetActiveArrayDimensionToBeUsed()
79 uint32_t camera_id, std::unique_ptr<EmulatedCameraDeviceInfo> device_info, in Create() argument
96 status_t res = session->Initialize(camera_id, std::move(device_info)); in Create()
107 uint32_t camera_id, const HalCameraMetadata* metadata) { in GetArrayDimensions() argument
114 __FUNCTION__, (int)camera_id); in GetArrayDimensions()
131 __FUNCTION__, (int)camera_id); in GetArrayDimensions()
143 uint32_t camera_id, std::unique_ptr<EmulatedCameraDeviceInfo> device_info) { in Initialize() argument
144 camera_id_ = camera_id; in Initialize()
164 camera_ids_to_dimensions[camera_id] = in Initialize()
[all …]
DEmulatedTorchState.h33 EmulatedTorchState(uint32_t camera_id, HwlTorchModeStatusChangeFunc torch_cb) in EmulatedTorchState() argument
34 : camera_id_(camera_id), torch_cb_(torch_cb) { in EmulatedTorchState()
DGrallocSensorBuffer.cpp42 result->camera_id = camera_id; in ~GrallocSensorBuffer()
DBase.h53 uint32_t camera_id; member
74 camera_id(0), in SensorBuffer()
/hardware/google/camera/common/hal/google_camera_hal/
Ddual_ir_result_request_processor.cc41 uint32_t camera_id = device_session_hwl->GetCameraId(); in Create() local
43 new DualIrResultRequestProcessor(stream_config, camera_id, in Create()
87 uint32_t camera_id = camera_id_iter->second; in IsFrameworkPhyiscalStream() local
88 if (camera_id == kLogicalCameraId) { in IsFrameworkPhyiscalStream()
93 *physical_camera_id = camera_id; in IsFrameworkPhyiscalStream()
169 for (auto& [camera_id, metadata] : pending_result_metadata.physical_metadata) { in TrySendingResultMetadataLocked()
182 for (auto& [camera_id, metadata] : pending_result_metadata.physical_metadata) { in TrySendingResultMetadataLocked()
184 .physical_camera_id = camera_id, in TrySendingResultMetadataLocked()
271 uint32_t camera_id = block_result.request_id; in ProcessResult() local
277 status_t res = ProcessResultMetadata(result->frame_number, camera_id, in ProcessResult()
[all …]
Dcamera_provider.cc147 [this](uint32_t camera_id, CameraDeviceStatus new_status) { in SetCallback() argument
149 std::to_string(camera_id), new_status); in SetCallback()
154 [this](uint32_t camera_id, uint32_t physical_camera_id, in SetCallback()
157 std::to_string(camera_id), std::to_string(physical_camera_id), in SetCallback()
162 [this](uint32_t camera_id, TorchModeStatus new_status) { in SetCallback() argument
163 provider_callback_->torch_mode_status_change(std::to_string(camera_id), in SetCallback()
248 uint32_t camera_id, std::unique_ptr<CameraDevice>* device) { in CreateCameraDevice() argument
268 if (std::find(camera_ids.begin(), camera_ids.end(), camera_id) == in CreateCameraDevice()
270 ALOGE("%s: camera_id: %u invalid.", __FUNCTION__, camera_id); in CreateCameraDevice()
275 res = camera_provider_hwl_->CreateCameraDeviceHwl(camera_id, in CreateCameraDevice()
Ddual_ir_request_processor.cc124 uint32_t camera_id = stream_physical_camera_ids_[buffer.stream_id]; in ProcessRequest() local
127 auto request_iter = requests.find(camera_id); in ProcessRequest()
129 physical_request = &requests[camera_id]; in ProcessRequest()
142 for (auto& [camera_id, physical_request] : requests) { in ProcessRequest()
144 .request_id = camera_id, in ProcessRequest()
/hardware/google/camera/common/hal/utils/
Dmulticam_realtime_process_block.cc124 for (auto& [camera_id, config] : *camera_stream_config_map) { in GetCameraStreamConfigurationMap()
157 for (auto& [camera_id, config] : camera_stream_configs) { in ConfigureStreams()
160 camera_id, hwl_pipeline_callback_, config, overall_config, &pipeline_id); in ConfigureStreams()
163 camera_id, strerror(-res), res); in ConfigureStreams()
167 __FUNCTION__, camera_id, pipeline_id); in ConfigureStreams()
169 camera_pipeline_ids_[camera_id] = pipeline_id; in ConfigureStreams()
195 for (auto& [camera_id, pipeline_id] : camera_pipeline_ids_) { in GetConfiguredHalStreams()
213 const StreamBuffer& buffer, uint32_t* camera_id) const { in GetBufferPhysicalCameraIdLocked()
214 if (camera_id == nullptr) { in GetBufferPhysicalCameraIdLocked()
232 *camera_id = configure_stream.stream.physical_camera_id; in GetBufferPhysicalCameraIdLocked()
[all …]
Dzoom_ratio_mapper.cc70 camera_id_ = params->camera_id; in Initialize()
75 uint32_t camera_id) const { in GetActiveArrayDimension()
82 camera_id, &metadata, &override_dimension)) { in GetActiveArrayDimension()
92 camera_id); in GetActiveArrayDimension()
98 __FUNCTION__, camera_id); in GetActiveArrayDimension()
102 physical_cam_active_array_dimension_.find(camera_id); in GetActiveArrayDimension()
107 __FUNCTION__, camera_id); in GetActiveArrayDimension()
138 for (auto& [camera_id, metadata] : request->physical_camera_settings) { in UpdateCaptureRequest()
141 GetActiveArrayDimension(*metadata, /*is_physical*/ true, camera_id); in UpdateCaptureRequest()
167 for (auto& [camera_id, metadata] : result->physical_metadata) { in UpdateCaptureResult()
[all …]
Dzoom_ratio_mapper.h36 uint32_t camera_id; member
50 bool is_physical, uint32_t camera_id) const;
/hardware/libhardware/include/hardware/
Dcamera_common.h636 int camera_id,
659 const char* camera_id,
932 int (*get_camera_info)(int camera_id, struct camera_info *info);
1083 int (*set_torch_mode)(const char* camera_id, bool enabled);
1170 int (*is_stream_combination_supported)(int camera_id,
/hardware/libhardware/include_all/hardware/
Dcamera_common.h636 int camera_id,
659 const char* camera_id,
932 int (*get_camera_info)(int camera_id, struct camera_info *info);
1083 int (*set_torch_mode)(const char* camera_id, bool enabled);
1170 int (*is_stream_combination_supported)(int camera_id,
/hardware/google/camera/common/hal/tests/
Dmock_device_session_hwl.cc31 uint32_t camera_id, const std::vector<uint32_t>& physical_camera_ids) in FakeCameraDeviceSessionHwl() argument
32 : kCameraId(camera_id), kPhysicalCameraIds(physical_camera_ids) { in FakeCameraDeviceSessionHwl()
61 uint32_t camera_id, HwlPipelineCallback hwl_pipeline_callback, in ConfigurePipeline() argument
69 if (camera_id != kCameraId && in ConfigurePipeline()
71 camera_id) == kPhysicalCameraIds.end()) { in ConfigurePipeline()
72 ALOGE("%s: Unknown camera ID: %u", __FUNCTION__, camera_id); in ConfigurePipeline()
192 result->camera_id = kCameraId; in SubmitRequests()
299 uint32_t camera_id, const std::vector<uint32_t>& physical_camera_ids) in MockDeviceSessionHwl() argument
300 : fake_session_hwl_(camera_id, physical_camera_ids) { in MockDeviceSessionHwl()
Dmock_device_session_hwl.h35 FakeCameraDeviceSessionHwl(uint32_t camera_id,
47 status_t ConfigurePipeline(uint32_t camera_id,
106 uint32_t camera_id, int option) override;
128 MockDeviceSessionHwl(uint32_t camera_id = 3, // Dummy camera ID
137 status_t(uint32_t camera_id,
201 uint32_t camera_id, int option));
Dtest_utils.cc70 for (auto& camera_id : physical_camera_ids) { in GetPhysicalPreviewStreamConfiguration() local
73 /*is_physical_camera_stream=*/true, camera_id, in GetPhysicalPreviewStreamConfiguration()
Dcamera_device_tests.cc44 uint32_t camera_id = 5; in TEST() local
45 mock_device_hwl->camera_id_ = camera_id; in TEST()
50 EXPECT_EQ(device->GetPublicCameraId(), camera_id); in TEST()
/hardware/interfaces/camera/provider/2.4/default/
DLegacyCameraProviderImpl_2_4.h114 int camera_id,
118 const char* camera_id,
121 void addDeviceNames(int camera_id, CameraDeviceStatus status = CameraDeviceStatus::PRESENT,
123 void removeDeviceNames(int camera_id);
DLegacyCameraProviderImpl_2_4.cpp70 void LegacyCameraProviderImpl_2_4::addDeviceNames(int camera_id, CameraDeviceStatus status, bool ca… in addDeviceNames() argument
73 snprintf(cameraId, sizeof(cameraId), "%d", camera_id); in addDeviceNames()
80 int deviceVersion = mModule->getDeviceVersion(camera_id); in addDeviceNames()
110 void LegacyCameraProviderImpl_2_4::removeDeviceNames(int camera_id) in removeDeviceNames() argument
112 std::string cameraIdStr = std::to_string(camera_id); in removeDeviceNames()
116 int deviceVersion = mModule->getDeviceVersion(camera_id); in removeDeviceNames()
131 mModule->removeCamera(camera_id); in removeDeviceNames()
139 int camera_id, in sCameraDeviceStatusChange() argument
150 snprintf(cameraId, sizeof(cameraId), "%d", camera_id); in sCameraDeviceStatusChange()
173 cp->addDeviceNames(camera_id, status, true); in sCameraDeviceStatusChange()
[all …]
/hardware/libhardware/modules/camera/3_4/
Dv4l2_camera_hal.h43 int getCameraInfo(int camera_id, camera_info_t* info);
50 int setTorchMode(const char* camera_id, bool enabled);

1234