blob: 8a6f77bd9b0d18f2219910e648cbb7724694af41 [file] [log] [blame]
Chih-Wei Huang0d92eda2012-02-07 16:55:49 +08001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * Contains implementation of the camera HAL layer in the system running
19 * under the emulator.
20 *
21 * This file contains only required HAL header, which directs all the API calls
22 * to the EmulatedCameraFactory class implementation, wich is responsible for
23 * managing emulated cameras.
24 */
25
26#include "CameraFactory.h"
27
28/*
29 * Required HAL header.
30 */
31camera_module_t HAL_MODULE_INFO_SYM = {
Chih-Wei Huang3277dcd2019-02-26 18:08:29 +080032 .common = {
33 .tag = HARDWARE_MODULE_TAG,
34 .version_major = 1,
35 .version_minor = 0,
36 .id = CAMERA_HARDWARE_MODULE_ID,
37 .name = "Camera Module",
38 .author = "The Android Open Source Project",
39 .methods = &android::CameraFactory::mCameraModuleMethods,
40 .dso = NULL,
41 .reserved = {0},
Chih-Wei Huang0d92eda2012-02-07 16:55:49 +080042 },
Chih-Wei Huang3277dcd2019-02-26 18:08:29 +080043 .get_number_of_cameras = android::CameraFactory::get_number_of_cameras,
44 .get_camera_info = android::CameraFactory::get_camera_info,
Chih-Wei Huang0d92eda2012-02-07 16:55:49 +080045};