Home
last modified time | relevance | path

Searched refs:waveform (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/libmedia/
DVisualizer.cpp259 status_t Visualizer::getWaveForm(uint8_t *waveform) in getWaveForm() argument
261 if (waveform == NULL) { in getWaveForm()
271 status = command(VISUALIZER_CMD_CAPTURE, 0, NULL, &replySize, waveform); in getWaveForm()
278 memset(waveform, 0x80, mCaptureSize); in getWaveForm()
305 status_t Visualizer::doFft(uint8_t *fft, uint8_t *waveform) in doFft() argument
312 ((waveform[i] ^ 0x80) << 24) | ((waveform[i + 1] ^ 0x80) << 8); in doFft()
341 uint8_t waveform[mCaptureSize]; in periodicCapture() local
342 status_t status = getWaveForm(waveform); in periodicCapture()
348 status = doFft(fft, waveform); in periodicCapture()
358 wavePtr = waveform; in periodicCapture()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DVisualizerTest.java148 … public void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate) {
150 if (waveform.length > 0) {
151 … Log.d(TAG, "onWaveFormDataCapture(): "+waveform[0]+" smp rate: "+samplingRate/1000);
152 displayVal(R.id.waveformMin, waveform[0]);
153 displayVal(R.id.waveformMax, waveform[waveform.length - 1]);
154 displayVal(R.id.waveformCenter, waveform[waveform.length/2]);
/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java433 public int getWaveForm(byte[] waveform) in getWaveForm() argument
439 return native_getWaveForm(waveform); in getWaveForm()
555 void onWaveFormDataCapture(Visualizer visualizer, byte[] waveform, int samplingRate); in onWaveFormDataCapture() argument
583 int rate, boolean waveform, boolean fft) { in setDataCaptureListener() argument
589 waveform = false; in setDataCaptureListener()
592 int status = native_setPeriodicCapture(rate, waveform, fft); in setDataCaptureListener()
746 private native final int native_getWaveForm(byte[] waveform); in native_getWaveForm() argument
/frameworks/av/include/media/
DVisualizer.h91 uint8_t *waveform,
129 status_t getWaveForm(uint8_t *waveform);
160 status_t doFft(uint8_t *fft, uint8_t *waveform);
/frameworks/base/media/jni/audioeffect/
Dandroid_media_Visualizer.cpp163 uint8_t *waveform, in captureCallback() argument
183 if (waveformSize != 0 && waveform != NULL) { in captureCallback()
191 memcpy(nArray, waveform, waveformSize); in captureCallback()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaVisualizerTest.java584 Visualizer visualizer, byte[] waveform, int samplingRate) { in createListenerLooper()
588 mWaveform = waveform; in createListenerLooper()
/frameworks/wilhelm/include/SLES/
DOpenSLES.h2523 const SLuint8 waveform[],