/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeMuxer.cpp | 77 uint8_t *inputBuffer = (uint8_t *) malloc(fileSize); in Java_com_android_media_benchmark_library_Native_Mux() local 78 if (!inputBuffer) { in Java_com_android_media_benchmark_library_Native_Mux() 93 if (inputBuffer) { in Java_com_android_media_benchmark_library_Native_Mux() 94 free(inputBuffer); in Java_com_android_media_benchmark_library_Native_Mux() 95 inputBuffer = nullptr; in Java_com_android_media_benchmark_library_Native_Mux() 99 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), in Java_com_android_media_benchmark_library_Native_Mux() 112 if (inputBuffer) { in Java_com_android_media_benchmark_library_Native_Mux() 113 free(inputBuffer); in Java_com_android_media_benchmark_library_Native_Mux() 114 inputBuffer = nullptr; in Java_com_android_media_benchmark_library_Native_Mux() 123 if (inputBuffer) { in Java_com_android_media_benchmark_library_Native_Mux() [all …]
|
D | NativeDecoder.cpp | 74 uint8_t *inputBuffer = (uint8_t *) malloc(fileSize); in Java_com_android_media_benchmark_library_Native_Decode() local 75 if (!inputBuffer) { in Java_com_android_media_benchmark_library_Native_Decode() 90 free(inputBuffer); in Java_com_android_media_benchmark_library_Native_Decode() 93 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), info.size); in Java_com_android_media_benchmark_library_Native_Decode() 101 status = decoder->decode(inputBuffer, frameInfo, sCodecName, asyncMode); in Java_com_android_media_benchmark_library_Native_Decode() 104 free(inputBuffer); in Java_com_android_media_benchmark_library_Native_Decode() 117 if (inputBuffer) { in Java_com_android_media_benchmark_library_Native_Decode() 118 free(inputBuffer); in Java_com_android_media_benchmark_library_Native_Decode() 119 inputBuffer = nullptr; in Java_com_android_media_benchmark_library_Native_Decode()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3OutputUtilsTemplated.h | 261 camera_stream_buffer_t inputBuffer; in processOneCaptureResultLockedT() local 262 if (result.inputBuffer.streamId == -1) { in processOneCaptureResultLockedT() 265 if (states.inputStream->getId() != result.inputBuffer.streamId) { in processOneCaptureResultLockedT() 267 result.frameNumber, result.inputBuffer.streamId); in processOneCaptureResultLockedT() 270 inputBuffer.stream = states.inputStream->asHalStream(); in processOneCaptureResultLockedT() 272 res = bufferRecords.popInflightBuffer(result.frameNumber, result.inputBuffer.streamId, in processOneCaptureResultLockedT() 276 __FUNCTION__, result.frameNumber, result.inputBuffer.streamId); in processOneCaptureResultLockedT() 279 inputBuffer.buffer = buffer; in processOneCaptureResultLockedT() 280 inputBuffer.status = mapBufferStatus<BufferStatusType>(result.inputBuffer.status); in processOneCaptureResultLockedT() 281 inputBuffer.acquire_fence = -1; in processOneCaptureResultLockedT() [all …]
|
/frameworks/av/media/libaaudio/src/flowgraph/ |
D | Limiter.cpp | 30 const float *inputBuffer = input.getBuffer(); in onProcess() local 40 if (!isnan(*inputBuffer)) { in onProcess() 41 lastValidOutput = processFloat(*inputBuffer); in onProcess() 43 inputBuffer++; in onProcess()
|
D | MultiToMonoConverter.cpp | 31 const float *inputBuffer = input.getBuffer(); in onProcess() local 36 *outputBuffer++ = *inputBuffer; in onProcess() 37 inputBuffer += channelCount; in onProcess()
|
D | MultiToManyConverter.cpp | 37 const float *inputBuffer = input.getBuffer() + ch; in onProcess() local 41 *outputBuffer++ = *inputBuffer; in onProcess() 42 inputBuffer += channelCount; in onProcess()
|
D | ChannelCountConverter.cpp | 33 const float *inputBuffer = input.getBuffer(); in onProcess() local 43 outputBuffer[outputChannel] = inputBuffer[inputChannel]; in onProcess() 47 inputBuffer += inputChannelCount; in onProcess()
|
D | RampLinear.cpp | 46 const float *inputBuffer = input.getBuffer(); in onProcess() local 67 *outputBuffer++ = *inputBuffer++ * currentLevel; in onProcess() 77 *outputBuffer++ = *inputBuffer++ * mLevelTo; in onProcess()
|
D | MonoToMultiConverter.cpp | 29 const float *inputBuffer = input.getBuffer(); in onProcess() local 34 float sample = *inputBuffer++; in onProcess()
|
D | ClipToRange.cpp | 29 const float *inputBuffer = input.getBuffer(); in onProcess() local 34 *outputBuffer++ = std::min(mMaximum, std::max(mMinimum, *inputBuffer++)); in onProcess()
|
D | MonoBlend.cpp | 31 const float *inputBuffer = input.getBuffer(); in onProcess() local 37 accum += *inputBuffer++; in onProcess()
|
D | ManyToMultiConverter.cpp | 35 const float *inputBuffer = inputs[ch]->getBuffer(); in onProcess() local 40 float sample = *inputBuffer++; in onProcess()
|
D | SampleRateConverter.cpp | 47 const float *inputBuffer = input.getBuffer(); in getNextInputFrame() local 48 return &inputBuffer[mInputCursor++ * input.getSamplesPerFrame()]; in getNextInputFrame()
|
/frameworks/base/core/java/android/util/ |
D | Base64InputStream.java | 35 private byte[] inputBuffer; field in Base64InputStream 65 inputBuffer = new byte[BUFFER_SIZE]; in Base64InputStream() 90 inputBuffer = null; in close() 140 int bytesRead = in.read(inputBuffer); in refill() 146 success = coder.process(inputBuffer, 0, bytesRead, false); in refill()
|
/frameworks/av/media/tests/benchmark/tests/ |
D | C2DecoderTest.cpp | 89 std::unique_ptr<uint8_t[]> inputBuffer(new (std::nothrow) uint8_t[fileSize]); in TEST_P() local 90 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 104 memcpy(inputBuffer.get() + inputBufferOffset, csdBuffer, info.size); in TEST_P() 117 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 131 status = mDecoder->decodeFrames(inputBuffer.get(), frameInfo); in TEST_P()
|
D | DecoderTest.cpp | 61 std::unique_ptr<uint8_t[]> inputBuffer(new (std::nothrow) uint8_t[kMaxBufferSize]); in TEST_P() local 62 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 76 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 84 status = decoder->decode(inputBuffer.get(), frameInfo, codecName, asyncMode); in TEST_P()
|
D | MuxerTest.cpp | 82 std::unique_ptr<uint8_t[]> inputBuffer(new (std::nothrow) uint8_t[kMaxBufferSize]); in TEST_P() local 83 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 98 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 113 status = muxerObj->mux(inputBuffer.get(), frameInfos); in TEST_P()
|
D | C2EncoderTest.cpp | 92 std::unique_ptr<uint8_t[]> inputBuffer(new (std::nothrow) uint8_t[fileSize]); in TEST_P() local 93 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 106 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 118 status = decoder->decode(inputBuffer.get(), frameInfo, decName, in TEST_P()
|
D | EncoderTest.cpp | 65 std::unique_ptr<uint8_t[]> inputBuffer(new (std::nothrow) uint8_t[kMaxBufferSize]); in TEST_P() local 66 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 80 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 92 … status = decoder->decode(inputBuffer.get(), frameInfo, decName, false /*asyncMode */, outFp); in TEST_P()
|
/frameworks/av/media/module/codecs/m4v_h263/fuzzer/ |
D | mpeg4_h263_enc_fuzzer.cpp | 141 uint8_t *inputBuffer = new uint8_t[inputBufferSize]; in encodeFrames() local 150 memcpy(inputBuffer, data, bytesConsumed); in encodeFrames() 152 memset(inputBuffer + bytesConsumed, data[0], inputBufferSize - bytesConsumed); in encodeFrames() 158 videoIn.yChan = inputBuffer; in encodeFrames() 173 delete[] inputBuffer; in encodeFrames()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_resampler.cpp | 66 std::unique_ptr<float[]> inputBuffer = std::make_unique<float[]>(numInputSamples); in checkResampler() local 73 inputBuffer[i] = sin(phase * M_PI); in checkResampler() 80 inputBuffer.get(), numInputSamples); in checkResampler() 90 float *input = inputBuffer.get(); // for iteration in checkResampler()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | ExposureFilter.java | 60 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local 64 inputBuffer); in onProcess() 67 inputBuffer); in onProcess()
|
D | ContrastRatioFilter.java | 55 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local 58 inputBuffer); in onProcess()
|
/frameworks/base/native/graphics/jni/fuzz/ |
D | fuzz_imagedecoder.cpp | 55 std::vector<uint8_t> inputBuffer = dataProvider.ConsumeBytes<uint8_t>(dataSize); in LLVMFuzzerTestOneInput() local 57 init(inputBuffer.data(), inputBuffer.size(), dataProvider.ConsumeBool()); in LLVMFuzzerTestOneInput()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | MuxerTest.java | 117 ArrayList<ByteBuffer> inputBuffer = new ArrayList<>(); in testMuxer() local 133 inputBuffer.add(tempSampleBuffer); in testMuxer() 144 int status = muxer.mux(trackIndex, inputBuffer, inputBufferInfo); in testMuxer() 152 inputBuffer.clear(); in testMuxer()
|