• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2012 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 a class EmulatedQemuCamera2 that encapsulates
19  * functionality of a host webcam with further processing to simulate the
20  * capabilities of a v2 camera device.
21  */
22 
23 #define LOG_NDEBUG 0
24 #define LOG_TAG "EmulatedCamera_QemuCamera2"
25 #include "EmulatedQemuCamera2.h"
26 #include <log/log.h>
27 #include <cutils/properties.h>
28 #include "EmulatedCameraFactory.h"
29 
30 namespace android {
31 
EmulatedQemuCamera2(int cameraId,bool facingBack,struct hw_module_t * module)32 EmulatedQemuCamera2::EmulatedQemuCamera2(int cameraId, bool facingBack,
33                                          struct hw_module_t* module)
34     : EmulatedCamera2(cameraId, module), mFacingBack(facingBack) {
35   ALOGD("Constructing emulated qemu camera 2 facing %s",
36         facingBack ? "back" : "front");
37 }
38 
~EmulatedQemuCamera2()39 EmulatedQemuCamera2::~EmulatedQemuCamera2() {}
40 
41 /****************************************************************************
42  * Public API overrides
43  ***************************************************************************/
44 
Initialize()45 status_t EmulatedQemuCamera2::Initialize() { return NO_ERROR; }
46 
47 }; /* namespace android */
48