Home
last modified time | relevance | path

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

12

/device/google/marlin/camera/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);
/device/google/marlin/camera/QCamera2/
DQCamera2Factory.cpp185 int QCamera2Factory::get_camera_info(int camera_id, struct camera_info *info) in get_camera_info() argument
190 rc = gQCameraMuxer->get_camera_info(camera_id, info); in get_camera_info()
192 rc = gQCamera2Factory->getCameraInfo(camera_id, info); in get_camera_info()
229 int QCamera2Factory::is_stream_combination_supported(int camera_id, in is_stream_combination_supported() argument
232 return gQCamera2Factory->isStreamCombinationSupported(camera_id, streams); in is_stream_combination_supported()
248 int QCamera2Factory::isStreamCombinationSupported(int camera_id, in isStreamCombinationSupported() argument
251 if (!mNumOfCameras || camera_id >= mNumOfCameras || !streams || in isStreamCombinationSupported()
252 (camera_id < 0)) { in isStreamCombinationSupported()
255 mNumOfCameras, camera_id, streams); in isStreamCombinationSupported()
259 return QCamera3HardwareInterface::isStreamCombinationSupported(camera_id, streams); in isStreamCombinationSupported()
[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);
/device/google/cuttlefish_common/guest/hals/camera/
DEmulatedCameraFactory.cpp155 int EmulatedCameraFactory::cameraDeviceOpen(int camera_id, in cameraDeviceOpen() argument
157 ALOGV("%s: id = %d", __FUNCTION__, camera_id); in cameraDeviceOpen()
161 EmulatedBaseCamera* camera = getOrCreateFakeCamera(camera_id); in cameraDeviceOpen()
167 int EmulatedCameraFactory::getCameraInfo(int camera_id, in getCameraInfo() argument
169 ALOGV("%s: id = %d", __FUNCTION__, camera_id); in getCameraInfo()
171 EmulatedBaseCamera* camera = getOrCreateFakeCamera(camera_id); in getCameraInfo()
194 int EmulatedCameraFactory::setTorchMode(const char* camera_id, bool enabled) { in setTorchMode() argument
195 ALOGV("%s: camera_id = %s, enabled =%d", __FUNCTION__, camera_id, enabled); in setTorchMode()
197 EmulatedBaseCamera* camera = getOrCreateFakeCamera(atoi(camera_id)); in setTorchMode()
231 int EmulatedCameraFactory::get_camera_info(int camera_id, in get_camera_info() argument
[all …]
DEmulatedCameraFactory.h79 int cameraDeviceOpen(int camera_id, hw_device_t** device);
85 int getCameraInfo(int camera_id, struct camera_info* info);
101 int setTorchMode(const char* camera_id, bool enabled);
112 static int get_camera_info(int camera_id, struct camera_info* info);
126 static int set_torch_mode(const char* camera_id, bool enabled);
/device/generic/goldfish/camera/
DEmulatedCameraFactory.h81 int cameraDeviceOpen(int camera_id, hw_device_t **device);
89 int getCameraInfo(int camera_id, struct camera_info *info);
120 static int get_camera_info(int camera_id, struct camera_info *info);
DEmulatedCameraFactory.cpp221 int EmulatedCameraFactory::get_camera_info(int camera_id, in get_camera_info() argument
223 return gEmulatedCameraFactory.getCameraInfo(camera_id, info); in get_camera_info()
/device/google/marlin/camera/QCamera2/HAL/
DQCameraMuxer.h144 static int get_camera_info(int camera_id, struct camera_info *info);
255 int cameraDeviceOpen(int camera_id, struct hw_device_t **hw_device);
257 int getCameraInfo(int camera_id, struct camera_info *info,
DQCameraMuxer.cpp219 int QCameraMuxer::get_camera_info(int camera_id, struct camera_info *info) in get_camera_info() argument
224 if ((camera_id < 0) || (camera_id >= gMuxer->getNumberOfCameras())) { in get_camera_info()
225 LOGE("Camera id %d not found!", camera_id); in get_camera_info()
229 rc = gMuxer->getCameraInfo(camera_id, info, &type); in get_camera_info()
1908 int QCameraMuxer::getCameraInfo(int camera_id, in getCameraInfo() argument
1912 LOGH("E, camera_id = %d", camera_id); in getCameraInfo()
1914 if (!m_nLogicalCameras || (camera_id >= m_nLogicalCameras) || in getCameraInfo()
1915 !info || (camera_id < 0)) { in getCameraInfo()
1917 m_nLogicalCameras, camera_id); in getCameraInfo()
1926 m_pLogicalCamera[camera_id].pId[ in getCameraInfo()
[all …]
/device/google/marlin/camera/usbcamcore/inc/
DQualcommUsbCamera.h43 int usbcam_get_camera_info(int camera_id, struct camera_info *info);
/device/google/marlin/camera/QCamera2/HAL/wrapper/
DQualcommCamera.h39 int get_camera_info(int camera_id, struct camera_info *info);
DQualcommCamera.cpp112 extern "C" int get_camera_info(int camera_id, struct camera_info *info) in get_camera_info() argument
118 QCamera2Factory::get_camera_info(camera_id, info); in get_camera_info()
/device/google/marlin/camera/QCamera2/HAL3/
DQCamera3HWI.h164 uint8_t *supported_indexes, uint32_t camera_id);
279 static size_t calcMaxJpegSize(uint32_t camera_id);
280 cam_dimension_t getMaxRawSize(uint32_t camera_id);
/device/google/marlin/camera/QCamera2/stack/common/
Dmm_camera_interface.h935 struct camera_info *get_cam_info(uint32_t camera_id, cam_sync_type_t *pCamType);
937 uint8_t is_yuv_sensor(uint32_t camera_id);
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_interface.c2019 struct camera_info *get_cam_info(uint32_t camera_id, cam_sync_type_t *pCamType) in get_cam_info() argument
2021 *pCamType = g_cam_ctrl.cam_type[camera_id]; in get_cam_info()
2022 return &g_cam_ctrl.info[camera_id]; in get_cam_info()
2025 uint8_t is_yuv_sensor(uint32_t camera_id) in is_yuv_sensor() argument
2027 return g_cam_ctrl.is_yuv[camera_id]; in is_yuv_sensor()
/device/google/bonito/sdm710/kernel-headers/media/
Dmsm_camsensor_sdk.h277 enum msm_sensor_camera_id_t camera_id; member
Dcam_sensor.h112 uint16_t camera_id; member
/device/google/bonito/sdm710/original-kernel-headers/media/
Dcam_sensor.h208 uint16_t camera_id; member
Dmsm_camsensor_sdk.h307 enum msm_sensor_camera_id_t camera_id; member
/device/google/crosshatch/sdm845/original-kernel-headers/media/
Dmsm_camsensor_sdk.h307 enum msm_sensor_camera_id_t camera_id; member
Dcam_sensor.h208 uint16_t camera_id; member
/device/google/crosshatch/sdm845/kernel-headers/media/
Dmsm_camsensor_sdk.h277 enum msm_sensor_camera_id_t camera_id; member
Dcam_sensor.h112 uint16_t camera_id; member
/device/google/marlin/camera/
DQCamera_Intf.h173 int8_t camera_id; member
180 int8_t camera_id; member

12