Home
last modified time | relevance | path

Searched refs:frameCount (Results 1 – 15 of 15) sorted by relevance

/system/media/audio_utils/tests/
Dfifo_tests.cpp34 size_t frameCount = 0; in main() local
46 frameCount = atoi(&arg[2]); in main()
65 if (frameCount == 0) { in main()
66 frameCount = 256; in main()
69 maxFramesPerRead = frameCount; in main()
72 maxFramesPerWrite = frameCount; in main()
112 std::unique_ptr<int16_t[]> fifoBuffer(new int16_t[frameCount * sfinfoin.channels]); in main()
113 audio_utils_fifo fifo(frameCount, frameSize, fifoBuffer.get(), readerThrottlesWriter); in main()
138 if (actualWritten < min((int) frameCount - fifoFillLevel, (int) framesToWrite)) { in main()
140 (int) actualWritten, (int) frameCount - fifoFillLevel, (int) framesToWrite); in main()
[all …]
Dbiquad_filter_tests.cpp56 static void populateBuffer(const S *singleChannelBuffer, size_t frameCount, in populateBuffer() argument
59 for (size_t i = 0; i < frameCount; ++i) { in populateBuffer()
71 static void randomBuffer(D *buffer, size_t frameCount, size_t channelCount) { in randomBuffer() argument
75 for (size_t i = 0; i < frameCount * channelCount; ++i) { in randomBuffer()
/system/media/audio_utils/include/audio_utils/
DChannelMix.h27 bool sparseChannelMatrixMultiply(const float *src, float *dst, size_t frameCount);
590 const float *src, float *dst, size_t frameCount, bool accumulate) const = 0;
604 virtual bool process(const float *src, float *dst, size_t frameCount, bool accumulate,
655 bool process(const float *src, float *dst, size_t frameCount, in process() argument
657 return accumulate ? processSwitch<true>(src, dst, frameCount) in process()
658 : processSwitch<false>(src, dst, frameCount); in process()
661 bool process(const float *src, float *dst, size_t frameCount, in process() argument
663 return setInputChannelMask(inputChannelMask) && process(src, dst, frameCount, accumulate); in process()
698 bool processSwitch(const float *src, float *dst, size_t frameCount) const { in processSwitch() argument
706 OUTPUT_CHANNEL_MASK, ACCUMULATE>(src, dst, frameCount); in processSwitch()
[all …]
Dfifo.h73 audio_utils_fifo_base(uint32_t frameCount, audio_utils_fifo_index& writerRear,
167 audio_utils_fifo(uint32_t frameCount, uint32_t frameSize, void *buffer,
184 audio_utils_fifo(uint32_t frameCount, uint32_t frameSize, void *buffer,
413 void resize(uint32_t frameCount);
/system/media/audio_utils/
Dfifo.cpp33 audio_utils_fifo_base::audio_utils_fifo_base(uint32_t frameCount, in audio_utils_fifo_base() argument
37 mFrameCount(frameCount), mFrameCountP2(roundup(frameCount)), in audio_utils_fifo_base()
45 LOG_ALWAYS_FATAL_IF(frameCount == 0 || frameCount > ((uint32_t) INT32_MAX)); in audio_utils_fifo_base()
131 audio_utils_fifo::audio_utils_fifo(uint32_t frameCount, uint32_t frameSize, void *buffer, in audio_utils_fifo() argument
134 audio_utils_fifo_base(frameCount, writerRear, throttleFront, AUDIO_UTILS_FIFO_SYNC_SHARED), in audio_utils_fifo()
139 LOG_ALWAYS_FATAL_IF(frameCount == 0 || frameSize == 0 || buffer == NULL || in audio_utils_fifo()
140 frameCount > ((uint32_t) INT32_MAX) / frameSize); in audio_utils_fifo()
143 audio_utils_fifo::audio_utils_fifo(uint32_t frameCount, uint32_t frameSize, void *buffer, in audio_utils_fifo() argument
145 audio_utils_fifo(frameCount, frameSize, buffer, mSingleProcessSharedRear, in audio_utils_fifo()
379 void audio_utils_fifo_writer::resize(uint32_t frameCount) in resize() argument
[all …]
DChannelMix.cpp75 bool sparseChannelMatrixMultiply(const float *src, float *dst, size_t frameCount) { in sparseChannelMatrixMultiply() argument
80 for (;frameCount > 0; --frameCount) { in sparseChannelMatrixMultiply()
111 const float *src, float *dst, size_t frameCount); \
114 const float *src, float *dst, size_t frameCount); \
/system/media/audio_utils/benchmarks/
Dchannelmix_benchmark.cpp183 constexpr size_t frameCount = 1024; in BenchmarkChannelMix() local
185 std::vector<float> input(inChannels * frameCount); in BenchmarkChannelMix()
186 std::vector<float> output(outChannels * frameCount); in BenchmarkChannelMix()
200 channelMix.process(input.data(), output.data(), frameCount, false /* accumulate */); in BenchmarkChannelMix()
Daudio_power_benchmark.cpp259 constexpr size_t frameCount = 1024; in BenchmarkPower() local
260 std::vector<float> input(channels * frameCount); in BenchmarkPower()
266 std::vector<uint8_t> buffer(channels * frameCount * audio_bytes_per_sample(FORMAT)); in BenchmarkPower()
/system/hardware/interfaces/media/aidl_api/android.media.audio.common.types/1/android/media/audio/common/
DAudioConfig.aidl40 long frameCount;
/system/hardware/interfaces/media/aidl_api/android.media.audio.common.types/current/android/media/audio/common/
DAudioConfig.aidl40 long frameCount;
/system/hardware/interfaces/media/aidl_api/android.media.audio.common.types/3/android/media/audio/common/
DAudioConfig.aidl40 long frameCount;
/system/hardware/interfaces/media/aidl_api/android.media.audio.common.types/2/android/media/audio/common/
DAudioConfig.aidl40 long frameCount;
/system/hardware/interfaces/media/aidl/android/media/audio/common/
DAudioConfig.aidl33 long frameCount;
/system/media/audio/include/system/
Daudio_effect.h444 size_t frameCount; // number of frames in buffer member
/system/media/camera/tests/
Dcamera_metadata_tests.cpp1126 int32_t frameCount = 12; in TEST() local
1129 &frameCount, 1); in TEST()
1146 EXPECT_EQ(frameCount, *e.data.i32); in TEST()
1187 frameCount = 1001; in TEST()
1190 &frameCount, 1); in TEST()
1209 EXPECT_EQ(frameCount, *e.data.i32); in TEST()
1364 int32_t frameCount = 1001; in TEST() local
1367 &frameCount, 1); in TEST()
1386 EXPECT_EQ(frameCount, *e.data.i32); in TEST()