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 <cutils/log.h> 26 #include <cutils/properties.h> 27 #include "EmulatedQemuCamera2.h" 28 #include "EmulatedCameraFactory.h" 29 30 namespace android { 31 32 EmulatedQemuCamera2::EmulatedQemuCamera2(int cameraId, 33 bool facingBack, 34 struct hw_module_t* module) 35 : EmulatedCamera2(cameraId,module), 36 mFacingBack(facingBack) 37 { 38 ALOGD("Constructing emulated qemu camera 2 facing %s", 39 facingBack ? "back" : "front"); 40 } 41 42 EmulatedQemuCamera2::~EmulatedQemuCamera2() 43 { 44 } 45 46 /**************************************************************************** 47 * Public API overrides 48 ***************************************************************************/ 49 50 status_t EmulatedQemuCamera2::Initialize() 51 { 52 return NO_ERROR; 53 } 54 55 }; /* namespace android */ 56