2 * Copyright (C) 2012 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
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.
24 #define LOG_TAG "EmulatedCamera_QemuCamera2"
25 #include <cutils/log.h>
26 #include <cutils/properties.h>
27 #include "EmulatedQemuCamera2.h"
28 #include "EmulatedCameraFactory.h"
32 EmulatedQemuCamera2::EmulatedQemuCamera2(int cameraId,
34 struct hw_module_t* module)
35 : EmulatedCamera2(cameraId,module),
36 mFacingBack(facingBack)
38 ALOGD("Constructing emulated qemu camera 2 facing %s",
39 facingBack ? "back" : "front");
42 EmulatedQemuCamera2::~EmulatedQemuCamera2()
46 /****************************************************************************
47 * Public API overrides
48 ***************************************************************************/
50 status_t EmulatedQemuCamera2::Initialize()
55 }; /* namespace android */