1 /* 2 ** Copyright (c) 2011-2012 The Linux Foundation. All rights reserved. 3 ** 4 ** Not a Contribution, Apache license notifications and license are retained 5 ** for attribution purposes only. 6 ** 7 ** Licensed under the Apache License, Version 2.0 (the "License"); 8 ** you may not use this file except in compliance with the License. 9 ** You may obtain a copy of the License at 10 ** 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** 13 ** Unless required by applicable law or agreed to in writing, software 14 ** distributed under the License is distributed on an "AS IS" BASIS, 15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 ** See the License for the specific language governing permissions and 17 ** limitations under the License. 18 */ 19 20 #ifndef ANDROID_HARDWARE_QCAMERA_HAL_H 21 #define ANDROID_HARDWARE_QCAMERA_HAL_H 22 23 24 #include "QCameraHWI.h" 25 26 extern "C" { 27 #include <mm_camera_interface.h> 28 } 29 namespace android { 30 31 /* HAL should return NULL if it fails to open camera hardware. */ 32 extern "C" void * 33 QCameraHAL_openCameraHardware(int cameraId, int mode); 34 extern "C" int HAL_getNumberOfCameras(); 35 extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo); 36 37 }; // namespace android 38 39 #endif 40 41