-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CAF tag: LA.BR.1.2.4-04410 * Remove unneded CameraWrapper * Remove prebuilt camera HAL Change-Id: I6bfd6c4d00d0ea171aab1d6969f9f4314646e15e
- Loading branch information
1 parent
b8b4f15
commit f0ce063
Showing
181 changed files
with
128,055 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_C_INCLUDES := \ | ||
system/media/camera/include | ||
|
||
LOCAL_SRC_FILES := \ | ||
CameraWrapper.cpp | ||
|
||
LOCAL_SHARED_LIBRARIES := \ | ||
libhardware liblog libgui libutils | ||
|
||
LOCAL_MODULE_RELATIVE_PATH := hw | ||
LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM) | ||
LOCAL_MODULE_TAGS := optional | ||
|
||
include $(BUILD_SHARED_LIBRARY) | ||
MM_V4L2_DRIVER_LIST += msm8960 | ||
MM_V4L2_DRIVER_LIST += msm8974 | ||
MM_V4L2_DRIVER_LIST += msm8226 | ||
MM_V4L2_DRIVER_LIST += msm8610 | ||
MM_V4L2_DRIVER_LIST += msm_bronze | ||
MM_V4L2_DRIVER_LIST += msm8916 | ||
MM_V4L2_DRIVER_LIST += msm8909 | ||
LOCAL_32_BIT_ONLY := true | ||
ifeq ($(call is-board-platform-in-list,$(MM_V4L2_DRIVER_LIST)),true) | ||
ifneq ($(BUILD_TINY_ANDROID),true) | ||
include $(call all-subdir-makefiles) | ||
endif | ||
endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright (C) 2007 The Android Open Source Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# If you don't need to do a full clean build but would like to touch | ||
# a file or delete some intermediate files, add a clean step to the end | ||
# of the list. These steps will only be run once, if they haven't been | ||
# run before. | ||
# | ||
# E.g.: | ||
# $(call add-clean-step, touch -c external/sqlite/sqlite3.h) | ||
# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) | ||
# | ||
# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with | ||
# files that are missing or have been moved. | ||
# | ||
# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. | ||
# Use $(OUT_DIR) to refer to the "out" directory. | ||
# | ||
# If you need to re-do something that's already mentioned, just copy | ||
# the command and add it to the bottom of the list. E.g., if a change | ||
# that you made last week required touching a file and a change you | ||
# made today requires touching the same file, just copy the old | ||
# touch step and add it to the end of the list. | ||
# | ||
# ************************************************ | ||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST | ||
# ************************************************ | ||
|
||
# For example: | ||
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) | ||
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) | ||
#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) | ||
#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) | ||
|
||
$(call add-clean-step, find $(OUT_DIR) -name "camera.msm8960*" -print0 | xargs -0 rm -rf) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),arm arm64)) | ||
# include $(call all-subdir-makefiles) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
LOCAL_PATH:= $(call my-dir) | ||
include $(LOCAL_PATH)/core/Android.mk | ||
#include $(LOCAL_PATH)/test/Android.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
OLD_LOCAL_PATH := $(LOCAL_PATH) | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
DLOPEN_LIBMMCAMERA:=0 | ||
|
||
LOCAL_CFLAGS:= -DDLOPEN_LIBMMCAMERA=$(DLOPEN_LIBMMCAMERA) | ||
|
||
ifeq ($(strip $(TARGET_USES_ION)),true) | ||
LOCAL_CFLAGS += -DUSE_ION | ||
endif | ||
|
||
LOCAL_CFLAGS += -DCAMERA_ION_HEAP_ID=ION_CP_MM_HEAP_ID # 8660=SMI, Rest=EBI | ||
LOCAL_CFLAGS += -DCAMERA_ZSL_ION_HEAP_ID=ION_CP_MM_HEAP_ID | ||
|
||
LOCAL_CFLAGS+= -DHW_ENCODE | ||
LOCAL_CFLAGS+= -DUSE_NEON_CONVERSION | ||
|
||
ifeq ($(call is-board-platform,msm8974),true) | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_HEAP_ID=GRALLOC_USAGE_PRIVATE_MM_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_FALLBACK_HEAP_ID=GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_ZSL_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_CACHING_ID=0 | ||
LOCAL_CFLAGS += -DNUM_RECORDING_BUFFERS=9 | ||
else ifeq ($(call is-board-platform,msm8226),true) | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_HEAP_ID=GRALLOC_USAGE_PRIVATE_MM_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_FALLBACK_HEAP_ID=GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_ZSL_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_CACHING_ID=0 | ||
LOCAL_CFLAGS += -DNUM_RECORDING_BUFFERS=9 | ||
else ifeq ($(call is-board-platform,msm8916),true) | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_HEAP_ID=GRALLOC_USAGE_PRIVATE_MM_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_FALLBACK_HEAP_ID=GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_ZSL_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_CACHING_ID=0 | ||
LOCAL_CFLAGS += -DNUM_RECORDING_BUFFERS=9 | ||
else ifeq ($(call is-board-platform,msm8610),true) | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_HEAP_ID=GRALLOC_USAGE_PRIVATE_MM_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_FALLBACK_HEAP_ID=GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_ZSL_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_CACHING_ID=0 | ||
LOCAL_CFLAGS += -DNUM_RECORDING_BUFFERS=9 | ||
else ifeq ($(call is-board-platform,msm8960),true) | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_HEAP_ID=GRALLOC_USAGE_PRIVATE_MM_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_FALLBACK_HEAP_ID=GRALLOC_USAGE_PRIVATE_IOMMU_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_ZSL_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_CACHING_ID=0 | ||
LOCAL_CFLAGS += -DNUM_RECORDING_BUFFERS=5 | ||
else ifeq ($(call is-chipset-prefix-in-board-platform,msm8660),true) | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_HEAP_ID=GRALLOC_USAGE_PRIVATE_CAMERA_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_FALLBACK_HEAP_ID=GRALLOC_USAGE_PRIVATE_IOMMU_HEAP # Don't Care | ||
LOCAL_CFLAGS += -DCAMERA_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID # EBI | ||
LOCAL_CFLAGS += -DCAMERA_ZSL_ION_FALLBACK_HEAP_ID=ION_IOMMU_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_CACHING_ID=0 | ||
LOCAL_CFLAGS += -DNUM_RECORDING_BUFFERS=5 | ||
else | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_HEAP_ID=GRALLOC_USAGE_PRIVATE_CAMERA_HEAP | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_FALLBACK_HEAP_ID=GRALLOC_USAGE_PRIVATE_CAMERA_HEAP # Don't Care | ||
LOCAL_CFLAGS += -DCAMERA_GRALLOC_CACHING_ID=GRALLOC_USAGE_PRIVATE_UNCACHED #uncached | ||
LOCAL_CFLAGS += -DCAMERA_ION_FALLBACK_HEAP_ID=ION_CAMERA_HEAP_ID | ||
LOCAL_CFLAGS += -DCAMERA_ZSL_ION_FALLBACK_HEAP_ID=ION_CAMERA_HEAP_ID | ||
LOCAL_CFLAGS += -DNUM_RECORDING_BUFFERS=5 | ||
endif | ||
|
||
LOCAL_HAL_FILES := \ | ||
src/QCameraHAL.cpp \ | ||
src/QCameraHWI_Parm.cpp \ | ||
src/QCameraHWI.cpp \ | ||
src/QCameraHWI_Preview.cpp \ | ||
src/QCameraHWI_Record.cpp \ | ||
src/QCameraHWI_Still.cpp \ | ||
src/QCameraHWI_Rdi.cpp \ | ||
src/QCameraHWI_Mem.cpp \ | ||
src/QCameraParameters.cpp\ | ||
src/QCameraStream.cpp\ | ||
../usbcamcore/src/QualcommUsbCamera.cpp\ | ||
../usbcamcore/src/QCameraMjpegDecode.cpp\ | ||
../usbcamcore/src/QCameraUsbParm.cpp | ||
|
||
LOCAL_HAL_WRAPPER_FILES := ../wrapper/QualcommCamera.cpp | ||
|
||
LOCAL_C_INCLUDES := \ | ||
$(LOCAL_PATH)/../wrapper \ | ||
$(LOCAL_PATH)/inc \ | ||
$(LOCAL_PATH)/../usbcamcore/inc\ | ||
$(LOCAL_PATH)/../../stack/mm-camera-interface/inc \ | ||
$(LOCAL_PATH)/../../stack/mm-jpeg-interface/inc \ | ||
$(LOCAL_PATH)/../../../ \ | ||
$(TARGET_OUT_INTERMEDIATES)/include/mm-camera-interface \ | ||
# $(TARGET_OUT_INTERMEDIATES)/include/mm-jpeg-interface\ | ||
# may need remove this includes | ||
LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-camera | ||
#LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-still | ||
LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-still/jpeg | ||
#end | ||
|
||
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include | ||
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/media | ||
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr | ||
|
||
LOCAL_C_INCLUDES += hardware/qcom/display/libgralloc \ | ||
hardware/qcom/display/libgenlock \ | ||
hardware/qcom/media/libstagefrighthw | ||
|
||
# if debug service layer and up , use stub camera! | ||
LOCAL_C_INCLUDES += \ | ||
frameworks/base/services/camera/libcameraservice | ||
|
||
LOCAL_SRC_FILES := \ | ||
$(LOCAL_HAL_WRAPPER_FILES) \ | ||
$(LOCAL_HAL_FILES) | ||
|
||
LOCAL_SHARED_LIBRARIES := libutils libui libcamera_client liblog libcutils libmmjpeg | ||
LOCAL_SHARED_LIBRARIES += libmmcamera_interface | ||
LOCAL_SHARED_LIBRARIES += libgenlock libbinder libmmjpeg_interface libhardware | ||
|
||
LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/socket.h | ||
|
||
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw | ||
LOCAL_MODULE:= camera.$(TARGET_BOARD_PLATFORM) | ||
LOCAL_32_BIT_ONLY := true | ||
LOCAL_MODULE_TAGS := optional | ||
include $(BUILD_SHARED_LIBRARY) | ||
|
||
LOCAL_PATH := $(OLD_LOCAL_PATH) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
** Copyright (c) 2011-2012 The Linux Foundation. All rights reserved. | ||
** | ||
** Not a Contribution, Apache license notifications and license are retained | ||
** for attribution purposes only. | ||
** | ||
** Licensed under the Apache License, Version 2.0 (the "License"); | ||
** you may not use this file except in compliance with the License. | ||
** You may obtain a copy of the License at | ||
** | ||
** http://www.apache.org/licenses/LICENSE-2.0 | ||
** | ||
** Unless required by applicable law or agreed to in writing, software | ||
** distributed under the License is distributed on an "AS IS" BASIS, | ||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
** See the License for the specific language governing permissions and | ||
** limitations under the License. | ||
*/ | ||
|
||
#ifndef ANDROID_HARDWARE_QCAMERA_HAL_H | ||
#define ANDROID_HARDWARE_QCAMERA_HAL_H | ||
|
||
|
||
#include "QCameraHWI.h" | ||
|
||
extern "C" { | ||
#include <mm_camera_interface.h> | ||
} | ||
namespace android { | ||
|
||
/* HAL should return NULL if it fails to open camera hardware. */ | ||
extern "C" void * | ||
QCameraHAL_openCameraHardware(int cameraId, int mode); | ||
extern "C" int HAL_getNumberOfCameras(); | ||
extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo); | ||
|
||
}; // namespace android | ||
|
||
#endif | ||
|
Oops, something went wrong.