1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
#
# This file was modified by Dolby Laboratories, Inc. The portions of the
# code that are surrounded by "DOLBY..." are copyrighted and
# licensed separately, as follows:
#
# (C) 2012-2013 Dolby Laboratories, Inc.
#
# 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.
#
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
include frameworks/av/media/libstagefright/codecs/common/Config.mk
LOCAL_SRC_FILES:= \
ACodec.cpp \
AACExtractor.cpp \
AACWriter.cpp \
AMRExtractor.cpp \
AMRWriter.cpp \
AudioPlayer.cpp \
AudioSource.cpp \
AwesomePlayer.cpp \
CameraSource.cpp \
CameraSourceTimeLapse.cpp \
ClockEstimator.cpp \
DataSource.cpp \
DRMExtractor.cpp \
ESDS.cpp \
FileSource.cpp \
FLACExtractor.cpp \
HTTPBase.cpp \
JPEGSource.cpp \
MP3Extractor.cpp \
MPEG2TSWriter.cpp \
MPEG4Extractor.cpp \
MPEG4Writer.cpp \
MediaAdapter.cpp \
MediaBuffer.cpp \
MediaBufferGroup.cpp \
MediaCodec.cpp \
MediaCodecList.cpp \
MediaDefs.cpp \
MediaExtractor.cpp \
MediaMuxer.cpp \
MediaSource.cpp \
MetaData.cpp \
NuCachedSource2.cpp \
NuMediaExtractor.cpp \
OMXClient.cpp \
OMXCodec.cpp \
OggExtractor.cpp \
SampleIterator.cpp \
SampleTable.cpp \
SkipCutBuffer.cpp \
StagefrightMediaScanner.cpp \
StagefrightMetadataRetriever.cpp \
SurfaceMediaSource.cpp \
ThrottledSource.cpp \
TimeSource.cpp \
TimedEventQueue.cpp \
Utils.cpp \
VBRISeeker.cpp \
WAVExtractor.cpp \
WAVEWriter.cpp \
WVMExtractor.cpp \
XINGSeeker.cpp \
avc_utils.cpp \
mp4/FragmentedMP4Parser.cpp \
mp4/TrackFragment.cpp \
APE.cpp \
LOCAL_C_INCLUDES:= \
$(TOP)/frameworks/av/include/media/stagefright/timedtext \
$(TOP)/frameworks/native/include/media/hardware \
$(TOP)/frameworks/native/services/connectivitymanager \
$(TOP)/external/flac/include \
$(TOP)/external/tremolo \
$(TOP)/external/openssl/include \
ifneq ($(TI_CUSTOM_DOMX_PATH),)
LOCAL_C_INCLUDES += $(TI_CUSTOM_DOMX_PATH)/omx_core/inc
LOCAL_CPPFLAGS += -DUSE_TI_CUSTOM_DOMX
else
LOCAL_C_INCLUDES += $(TOP)/frameworks/native/include/media/openmax
endif
ifneq ($(filter caf bfam,$(TARGET_QCOM_AUDIO_VARIANT)),)
ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true)
ifeq ($(call is-chipset-in-board-platform,msm8960),true)
LOCAL_SRC_FILES += LPAPlayerALSA.cpp TunnelPlayer.cpp
LOCAL_CFLAGS += -DUSE_TUNNEL_MODE
LOCAL_CFLAGS += -DTUNNEL_MODE_SUPPORTS_AMRWB
endif
ifeq ($(call is-chipset-in-board-platform,msm8974),true)
# If you are using legacy mode on 8974, you will not
# go to space today. Also, it probably is broken.
LOCAL_SRC_FILES += LPAPlayerALSA.cpp TunnelPlayer.cpp
LOCAL_CFLAGS += -DUSE_TUNNEL_MODE
endif
ifneq ($(filter msm8660 msm7x30 msm7x27a,$(TARGET_BOARD_PLATFORM)),)
LOCAL_SRC_FILES += LPAPlayer.cpp
LOCAL_CFLAGS += -DLEGACY_LPA
endif
ifeq ($(NO_TUNNEL_MODE_FOR_MULTICHANNEL),true)
LOCAL_CFLAGS += -DNO_TUNNEL_MODE_FOR_MULTICHANNEL
endif
LOCAL_SHARED_LIBRARIES += libstagefright_mp3dec
endif
endif
LOCAL_C_INCLUDES += \
$(call project-path-for,qcom-media)/mm-core/inc
ifneq ($(TARGET_QCOM_MEDIA_VARIANT),caf-new)
LOCAL_CFLAGS += -DLEGACY_MEDIA
endif
LOCAL_SHARED_LIBRARIES := \
libbinder \
libcamera_client \
libconnectivitymanager \
libcutils \
libdl \
libdrmframework \
libexpat \
libgui \
libicui18n \
libicuuc \
liblog \
libmedia \
libsonivox \
libssl \
libstagefright_omx \
libstagefright_yuv \
libsync \
libui \
libutils \
libvorbisidec \
libz \
libpowermanager
LOCAL_STATIC_LIBRARIES := \
libstagefright_color_conversion \
libstagefright_aacenc \
libstagefright_matroska \
libstagefright_timedtext \
libvpx \
libwebm \
libstagefright_mpeg2ts \
libstagefright_id3 \
libFLAC \
libmedia_helper
LOCAL_SRC_FILES += ExtendedCodec.cpp ExtendedExtractor.cpp ExtendedUtils.cpp
ifeq ($(TARGET_ENABLE_QC_AV_ENHANCEMENTS),true)
LOCAL_CFLAGS += -DENABLE_AV_ENHANCEMENTS
LOCAL_SRC_FILES += ExtendedMediaDefs.cpp ExtendedPrefetchSource.cpp ExtendedWriter.cpp
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_C_INCLUDES += \
$(call project-path-for,qcom-media)/mm-core/inc
else #TARGET_ENABLE_AV_ENHANCEMENTS
ifeq ($(TARGET_ENABLE_OFFLOAD_ENHANCEMENTS),true)
LOCAL_CFLAGS += -DENABLE_OFFLOAD_ENHANCEMENTS
endif
endif
LOCAL_SRC_FILES += \
chromium_http_stub.cpp
LOCAL_CPPFLAGS += -DCHROMIUM_AVAILABLE=1
LOCAL_SHARED_LIBRARIES += libstlport
include external/stlport/libstlport.mk
LOCAL_SHARED_LIBRARIES += \
libstagefright_enc_common \
libstagefright_avc_common \
libstagefright_foundation \
libdl
LOCAL_CFLAGS += -Wno-multichar
ifeq ($(BOARD_USE_SAMSUNG_COLORFORMAT), true)
LOCAL_CFLAGS += -DUSE_SAMSUNG_COLORFORMAT
endif
# Include native color format header path
LOCAL_C_INCLUDES += \
$(TOP)/hardware/samsung/exynos4/hal/include \
$(TOP)/hardware/samsung/exynos4/include
ifeq ($(BOARD_USE_TI_DUCATI_H264_PROFILE), true)
LOCAL_CFLAGS += -DUSE_TI_DUCATI_H264_PROFILE
endif
ifdef DOLBY_UDC
LOCAL_CFLAGS += -DDOLBY_UDC
endif #DOLBY_UDC
ifdef DOLBY_UDC_MULTICHANNEL
LOCAL_CFLAGS += -DDOLBY_UDC_MULTICHANNEL
endif #DOLBY_UDC_MULTICHANNEL
LOCAL_MODULE:= libstagefright
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
include $(call all-makefiles-under,$(LOCAL_PATH))
|