зеркало из https://github.com/mozilla/gecko-dev.git
Bug 926838 - [Part 6] Unbitrot the build system bits. r=gps
This commit is contained in:
Родитель
2889bc140a
Коммит
aa50589ab8
|
@ -37,7 +37,7 @@ if CONFIG['MOZ_VPX'] and not CONFIG['MOZ_NATIVE_LIBVPX']:
|
|||
if not CONFIG['MOZ_NATIVE_PNG']:
|
||||
external_dirs += ['media/libpng']
|
||||
|
||||
if CONFIG['ARM_ARCHITECTURE']:
|
||||
if CONFIG['CPU_ARCH'] == 'arm':
|
||||
external_dirs += ['media/openmax_dl']
|
||||
|
||||
external_dirs += [
|
||||
|
|
|
@ -255,7 +255,7 @@ AnalyserNode::FFTAnalysis()
|
|||
if (mWriteIndex == 0) {
|
||||
inputBuffer = mBuffer.Elements();
|
||||
} else {
|
||||
if (tmpBuffer.SetLength(FftSize())) {
|
||||
if (!tmpBuffer.SetLength(FftSize())) {
|
||||
return false;
|
||||
}
|
||||
inputBuffer = tmpBuffer.Elements();
|
||||
|
@ -301,13 +301,13 @@ AnalyserNode::AllocateBuffer()
|
|||
{
|
||||
bool result = true;
|
||||
if (mBuffer.Length() != FftSize()) {
|
||||
if (mBuffer.SetLength(FftSize())) {
|
||||
if (!mBuffer.SetLength(FftSize())) {
|
||||
return false;
|
||||
}
|
||||
memset(mBuffer.Elements(), 0, sizeof(float) * FftSize());
|
||||
mWriteIndex = 0;
|
||||
|
||||
if (mOutputBuffer.SetLength(FrequencyBinCount())) {
|
||||
if (!mOutputBuffer.SetLength(FrequencyBinCount())) {
|
||||
return false;
|
||||
}
|
||||
memset(mOutputBuffer.Elements(), 0, sizeof(float) * FrequencyBinCount());
|
||||
|
|
|
@ -108,6 +108,9 @@ UNIFIED_SOURCES += [
|
|||
if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
|
||||
SOURCES += ['AudioNodeEngineNEON.cpp']
|
||||
SOURCES['AudioNodeEngineNEON.cpp'].flags += ['-mfpu=neon']
|
||||
LOCAL_INCLUDES += [
|
||||
'/media/openmax_dl/dl/api/'
|
||||
]
|
||||
|
||||
FAIL_ON_WARNINGS = True
|
||||
|
||||
|
@ -117,3 +120,4 @@ FINAL_LIBRARY = 'xul'
|
|||
LOCAL_INCLUDES += [
|
||||
'..'
|
||||
]
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
|
||||
MODULE = 'openmax_dl'
|
||||
Library('openmax_dl')
|
||||
|
||||
EXPORTS.dl.api += [
|
||||
'api/armCOMM_s.h',
|
||||
|
@ -75,10 +75,11 @@ if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
|
|||
'sp/src/omxSP_FFTInv_CToC_SC32_Sfs_s.S',
|
||||
]
|
||||
|
||||
LIBRARY_NAME = 'openmax_dl'
|
||||
|
||||
LOCAL_INCLUDES += [
|
||||
'..'
|
||||
'..',
|
||||
'api'
|
||||
]
|
||||
|
||||
DEFINES['BIG_FFT_TABLE'] = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
Загрузка…
Ссылка в новой задаче