summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/vss
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-12-16 11:07:44 -0800
committerGlenn Kasten <gkasten@google.com>2011-12-16 11:40:27 -0800
commit7bdbbc7e45fca8e50df91ef2e8b39d1608841c9d (patch)
tree84b091a5632d4f47a724042ea5cfc1cc757dc2f2 /libvideoeditor/vss
parent467a3f3ea4830b4f4d9cb5b68f2f6ee638648801 (diff)
downloadframeworks_av-7bdbbc7e45fca8e50df91ef2e8b39d1608841c9d.zip
frameworks_av-7bdbbc7e45fca8e50df91ef2e8b39d1608841c9d.tar.gz
frameworks_av-7bdbbc7e45fca8e50df91ef2e8b39d1608841c9d.tar.bz2
ditherAndClamp from libaudioutils not AudioMixer
Change-Id: I1e8a00c81efefd956fe9e4d9b58557373320e322
Diffstat (limited to 'libvideoeditor/vss')
-rwxr-xr-xlibvideoeditor/vss/src/Android.mk3
-rwxr-xr-xlibvideoeditor/vss/src/VideoEditorResampler.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/libvideoeditor/vss/src/Android.mk b/libvideoeditor/vss/src/Android.mk
index 2001f0d..14f8f80 100755
--- a/libvideoeditor/vss/src/Android.mk
+++ b/libvideoeditor/vss/src/Android.mk
@@ -52,7 +52,7 @@ LOCAL_SRC_FILES:= \
LOCAL_MODULE_TAGS := optional
-LOCAL_SHARED_LIBRARIES := libcutils libutils
+LOCAL_SHARED_LIBRARIES := libcutils libutils libaudioutils
LOCAL_STATIC_LIBRARIES := \
libvideoeditor_osal \
@@ -62,6 +62,7 @@ LOCAL_STATIC_LIBRARIES := \
libvideoeditor_stagefrightshells
LOCAL_C_INCLUDES += \
+ $(TOP)/system/media/audio_utils/include \
$(TOP)/frameworks/base/include \
$(TOP)/frameworks/media/libvideoeditor/osal/inc \
$(TOP)/frameworks/media/libvideoeditor/vss/inc \
diff --git a/libvideoeditor/vss/src/VideoEditorResampler.cpp b/libvideoeditor/vss/src/VideoEditorResampler.cpp
index 6064baf..768cbd8 100755
--- a/libvideoeditor/vss/src/VideoEditorResampler.cpp
+++ b/libvideoeditor/vss/src/VideoEditorResampler.cpp
@@ -15,6 +15,7 @@
*/
#define LOG_NDEBUG 1
+#include <audio_utils/primitives.h>
#include <utils/Log.h>
#include "AudioMixer.h"
#include "VideoEditorResampler.h"
@@ -161,7 +162,7 @@ void LVAudioresample_LowQuality(M4OSA_Int16* out, M4OSA_Int16* input,
context->mResampler->resample((int32_t *)pTmpBuffer,
(size_t)outFrameCount, (VideoEditorResampler *)resamplerContext);
// Convert back to 16 bits
- AudioMixer::ditherAndClamp((int32_t*)out, pTmpBuffer, outFrameCount);
+ ditherAndClamp((int32_t*)out, pTmpBuffer, outFrameCount);
free(pTmpBuffer);
pTmpBuffer = NULL;
}