forked from LineageOS/android_hardware_qcom_media
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I8fab90e0696562b21b22143d3357d518cad6d8cc Signed-off-by: Iliyan Malchev <[email protected]>
- Loading branch information
Iliyan Malchev
committed
Jun 21, 2012
1 parent
bac9307
commit 826ecec
Showing
96 changed files
with
42,751 additions
and
3,790 deletions.
There are no files selected for viewing
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
Empty file.
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,30 @@ | ||
/* | ||
* Copyright (C) 2011 The Code Aurora Forum. All rights reserved. | ||
* Copyright (c) 2011 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. | ||
*/ | ||
#include <system/window.h> | ||
|
||
namespace android { | ||
|
||
typedef enum { | ||
kMetadataBufferTypeCameraSource = 0, | ||
kMetadataBufferTypeGrallocSource = 1, | ||
} MetadataBufferType; | ||
|
||
typedef struct encoder_media_buffer_type { | ||
MetadataBufferType buffer_type; | ||
buffer_handle_t meta_handle; | ||
} encoder_media_buffer_type; | ||
} |
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
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
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,38 +1,96 @@ | ||
#-------------------------------------------------------------------------- | ||
#Copyright (c) 2009, Code Aurora Forum. All rights reserved. | ||
|
||
#Redistribution and use in source and binary forms, with or without | ||
#modification, are permitted provided that the following conditions are met: | ||
# * Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# * Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# * Neither the name of Code Aurora nor | ||
# the names of its contributors may be used to endorse or promote | ||
# products derived from this software without specific prior written | ||
# permission. | ||
|
||
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
#AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
#IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
#NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
#CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
#EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
#PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
#OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
#WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
#OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
#ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
#-------------------------------------------------------------------------- | ||
|
||
OMX_CORE_PATH := $(call my-dir) | ||
ifneq ($(BUILD_TINY_ANDROID),true) | ||
|
||
LOCAL_PATH:= $(call my-dir) | ||
include $(CLEAR_VARS) | ||
|
||
ifneq ($(BUILD_TINY_ANDROID),true) | ||
OMXCORE_CFLAGS += -D_ANDROID_ | ||
OMXCORE_CFLAGS += -U_ENABLE_QC_MSG_LOG_ | ||
|
||
ifeq ($(TARGET_BOARD_PLATFORM),msm7x30) | ||
include $(OMX_CORE_PATH)/omxcore/Android.mk | ||
#=============================================================================== | ||
# Figure out the targets | ||
#=============================================================================== | ||
|
||
ifeq ($(TARGET_BOARD_PLATFORM),msm7627a) | ||
MM_CORE_TARGET = 7627A | ||
else ifeq ($(TARGET_BOARD_PLATFORM),msm8660) | ||
MM_CORE_TARGET = 8660 | ||
#Comment out following line to disable drm.play component | ||
OMXCORE_CFLAGS += -DENABLE_DRMPLAY | ||
else ifeq ($(TARGET_BOARD_PLATFORM),msm8960) | ||
MM_CORE_TARGET = 8960 | ||
else ifeq ($(TARGET_BOARD_PLATFORM),msm8974) | ||
MM_CORE_TARGET = 8974 | ||
else | ||
MM_CORE_TARGET = default | ||
endif | ||
|
||
#=============================================================================== | ||
# Deploy the headers that can be exposed | ||
#=============================================================================== | ||
|
||
LOCAL_COPY_HEADERS_TO := mm-core/omxcore | ||
LOCAL_COPY_HEADERS := inc/OMX_Audio.h | ||
LOCAL_COPY_HEADERS += inc/OMX_Component.h | ||
LOCAL_COPY_HEADERS += inc/OMX_ContentPipe.h | ||
LOCAL_COPY_HEADERS += inc/OMX_Core.h | ||
LOCAL_COPY_HEADERS += inc/OMX_Image.h | ||
LOCAL_COPY_HEADERS += inc/OMX_Index.h | ||
LOCAL_COPY_HEADERS += inc/OMX_IVCommon.h | ||
LOCAL_COPY_HEADERS += inc/OMX_Other.h | ||
LOCAL_COPY_HEADERS += inc/OMX_QCOMExtns.h | ||
LOCAL_COPY_HEADERS += inc/OMX_Types.h | ||
LOCAL_COPY_HEADERS += inc/OMX_Video.h | ||
LOCAL_COPY_HEADERS += inc/qc_omx_common.h | ||
LOCAL_COPY_HEADERS += inc/qc_omx_component.h | ||
LOCAL_COPY_HEADERS += inc/qc_omx_msg.h | ||
LOCAL_COPY_HEADERS += inc/QOMX_AudioExtensions.h | ||
LOCAL_COPY_HEADERS += inc/QOMX_AudioIndexExtensions.h | ||
LOCAL_COPY_HEADERS += inc/OMX_CoreExt.h | ||
LOCAL_COPY_HEADERS += inc/QOMX_CoreExtensions.h | ||
LOCAL_COPY_HEADERS += inc/QOMX_FileFormatExtensions.h | ||
LOCAL_COPY_HEADERS += inc/QOMX_IVCommonExtensions.h | ||
LOCAL_COPY_HEADERS += inc/QOMX_SourceExtensions.h | ||
LOCAL_COPY_HEADERS += inc/QOMX_VideoExtensions.h | ||
LOCAL_COPY_HEADERS += inc/OMX_IndexExt.h | ||
LOCAL_COPY_HEADERS += inc/QOMX_StreamingExtensions.h | ||
|
||
|
||
#=============================================================================== | ||
# LIBRARY for Android apps | ||
#=============================================================================== | ||
|
||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc | ||
LOCAL_PRELINK_MODULE := false | ||
LOCAL_MODULE := libOmxCore | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_SHARED_LIBRARIES := liblog libdl | ||
LOCAL_CFLAGS := $(OMXCORE_CFLAGS) | ||
|
||
LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp | ||
LOCAL_SRC_FILES += src/common/qc_omx_core.c | ||
LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table_android.c | ||
|
||
include $(BUILD_SHARED_LIBRARY) | ||
|
||
#=============================================================================== | ||
# LIBRARY for command line test apps | ||
#=============================================================================== | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/common | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/inc | ||
LOCAL_PRELINK_MODULE := false | ||
LOCAL_MODULE := libmm-omxcore | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_SHARED_LIBRARIES := liblog libdl | ||
LOCAL_CFLAGS := $(OMXCORE_CFLAGS) | ||
|
||
LOCAL_SRC_FILES := src/common/omx_core_cmp.cpp | ||
LOCAL_SRC_FILES += src/common/qc_omx_core.c | ||
LOCAL_SRC_FILES += src/$(MM_CORE_TARGET)/qc_registry_table.c | ||
|
||
include $(BUILD_SHARED_LIBRARY) | ||
|
||
endif #BUILD_TINY_ANDROID |
Oops, something went wrong.