/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeMuxer.cpp | 76 uint8_t *inputBuffer = (uint8_t *) malloc(fileSize); in Java_com_android_media_benchmark_library_Native_Mux() local 77 if (!inputBuffer) { in Java_com_android_media_benchmark_library_Native_Mux() 92 if (inputBuffer) { in Java_com_android_media_benchmark_library_Native_Mux() 93 free(inputBuffer); in Java_com_android_media_benchmark_library_Native_Mux() 94 inputBuffer = nullptr; in Java_com_android_media_benchmark_library_Native_Mux() 98 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), in Java_com_android_media_benchmark_library_Native_Mux() 111 if (inputBuffer) { in Java_com_android_media_benchmark_library_Native_Mux() 112 free(inputBuffer); in Java_com_android_media_benchmark_library_Native_Mux() 113 inputBuffer = nullptr; in Java_com_android_media_benchmark_library_Native_Mux() 122 if (inputBuffer) { in Java_com_android_media_benchmark_library_Native_Mux() [all …]
|
D | NativeDecoder.cpp | 73 uint8_t *inputBuffer = (uint8_t *) malloc(fileSize); in Java_com_android_media_benchmark_library_Native_Decode() local 74 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/ml/nn/common/operations/ |
D | Dequantize.cpp | 124 const uint8_t* inputBuffer = context->getInputBuffer<uint8_t>(kInputTensor); in execute() local 126 return compute(inputBuffer, inputShape, in execute() 129 return compute(inputBuffer, inputShape, context->getOutputBuffer<float>(kOutputTensor)); in execute() 132 const int8_t* inputBuffer = context->getInputBuffer<int8_t>(kInputTensor); in execute() local 134 return compute(inputBuffer, inputShape, in execute() 137 return compute(inputBuffer, inputShape, context->getOutputBuffer<float>(kOutputTensor)); in execute() 140 const int8_t* inputBuffer = context->getInputBuffer<int8_t>(kInputTensor); in execute() local 142 return compute(inputBuffer, inputShape, in execute() 145 return compute(inputBuffer, inputShape, context->getOutputBuffer<float>(kOutputTensor)); in execute() 148 const int8_t* inputBuffer = context->getInputBuffer<int8_t>(kInputTensor); in execute() local [all …]
|
/frameworks/base/core/java/android/util/ |
D | Base64InputStream.java | 34 private byte[] inputBuffer; field in Base64InputStream 64 inputBuffer = new byte[BUFFER_SIZE]; in Base64InputStream() 89 inputBuffer = null; in close() 139 int bytesRead = in.read(inputBuffer); in refill() 145 success = coder.process(inputBuffer, 0, bytesRead, false); in refill()
|
/frameworks/av/media/tests/benchmark/tests/ |
D | C2DecoderTest.cpp | 88 uint8_t *inputBuffer = (uint8_t *)malloc(fileSize); in TEST_P() local 89 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 103 memcpy(inputBuffer + inputBufferOffset, csdBuffer, info.size); in TEST_P() 116 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 130 status = mDecoder->decodeFrames(inputBuffer, frameInfo); in TEST_P() 144 free(inputBuffer); in TEST_P()
|
D | DecoderTest.cpp | 58 uint8_t *inputBuffer = (uint8_t *)malloc(kMaxBufferSize); in TEST_P() local 59 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 73 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 81 status = decoder->decode(inputBuffer, frameInfo, codecName, asyncMode); in TEST_P() 89 free(inputBuffer); in TEST_P()
|
D | MuxerTest.cpp | 81 uint8_t *inputBuffer = (uint8_t *)malloc(kMaxBufferSize); in TEST_P() local 82 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 97 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 112 status = muxerObj->mux(inputBuffer, frameInfos); in TEST_P() 117 free(inputBuffer); in TEST_P()
|
D | C2EncoderTest.cpp | 91 uint8_t *inputBuffer = (uint8_t *)malloc(fileSize); in TEST_P() local 92 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 105 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 117 status = decoder->decode(inputBuffer, frameInfo, decName, false /*asyncMode */, outFp); in TEST_P() 152 free(inputBuffer); in TEST_P()
|
D | EncoderTest.cpp | 64 uint8_t *inputBuffer = (uint8_t *)malloc(kMaxBufferSize); in TEST_P() local 65 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P() 79 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P() 91 status = decoder->decode(inputBuffer, frameInfo, decName, false /*asyncMode */, outFp); in TEST_P() 157 free(inputBuffer); in TEST_P()
|
/frameworks/av/media/libaaudio/src/flowgraph/ |
D | RampLinear.cpp | 48 const float *inputBuffer = input.getBlock(); in onProcess() local 71 *outputBuffer++ = *inputBuffer++ * currentLevel; in onProcess() 81 *outputBuffer++ = *inputBuffer++ * mLevelTo; in onProcess()
|
D | MonoToMultiConverter.cpp | 34 const float *inputBuffer = input.getBlock(); in onProcess() local 40 float sample = *inputBuffer++; in onProcess()
|
D | ClipToRange.cpp | 31 const float *inputBuffer = input.getBlock(); in onProcess() local 36 *outputBuffer++ = std::min(mMaximum, std::max(mMinimum, *inputBuffer++)); in onProcess()
|
/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()
|
D | AvgBrightnessFilter.java | 55 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local 57 brightness = brightnessOperator(inputImage.getWidth(),inputImage.getHeight(), inputBuffer); in onProcess()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | MuxerTest.java | 119 ArrayList<ByteBuffer> inputBuffer = new ArrayList<>(); in testMuxer() local 135 inputBuffer.add(tempSampleBuffer); in testMuxer() 146 int status = muxer.mux(trackIndex, inputBuffer, inputBufferInfo); in testMuxer() 154 inputBuffer.clear(); in testMuxer()
|
D | DecoderTest.java | 130 ArrayList<ByteBuffer> inputBuffer = new ArrayList<>(); in testDecoder() local 149 inputBuffer.add(dataBuffer); in testDecoder() 173 int status = decoder.decode(inputBuffer, frameInfo, mAsyncMode, format, codecName); in testDecoder() 187 inputBuffer.clear(); in testDecoder()
|
D | EncoderTest.java | 179 ArrayList<ByteBuffer> inputBuffer = new ArrayList<>(); in decodeFile() local 193 inputBuffer.add(dataBuffer); in decodeFile() 202 status = decoder.decode(inputBuffer, frameInfo, false, format, ""); in decodeFile() 209 inputBuffer.clear(); in decodeFile()
|
/frameworks/av/media/codec2/hidl/1.0/utils/ |
D | InputBufferManager.cpp | 367 IComponentListener::InputBuffer &inputBuffer in processNotifications() local 369 inputBuffer.arrayIndex = bufferIndex; in processNotifications() 370 inputBuffer.frameIndex = frameIndex; in processNotifications() 400 for (const IComponentListener::InputBuffer& inputBuffer : in processNotifications() local 402 inputBufferLog << " (" << inputBuffer.frameIndex in processNotifications() 403 << ", " << inputBuffer.arrayIndex in processNotifications()
|
/frameworks/av/media/tests/benchmark/src/native/decoder/ |
D | Decoder.cpp | 24 tuple<ssize_t, uint32_t, int64_t> readSampleData(uint8_t *inputBuffer, int32_t &offset, in readSampleData() argument 39 memcpy(buf, inputBuffer + offset, bytesCount); in readSampleData() 152 int32_t Decoder::decode(uint8_t *inputBuffer, vector<AMediaCodecBufferInfo> &frameInfo, in decode() argument 155 mInputBuffer = inputBuffer; in decode()
|
D | Decoder.h | 73 int32_t decode(uint8_t *inputBuffer, vector<AMediaCodecBufferInfo> &frameInfo, 104 tuple<ssize_t, uint32_t, int64_t> readSampleData(uint8_t *inputBuffer, int32_t &offset,
|
/frameworks/av/media/tests/benchmark/src/native/muxer/ |
D | Muxer.cpp | 75 int32_t Muxer::mux(uint8_t *inputBuffer, vector<AMediaCodecBufferInfo> &frameInfos) { in mux() argument 81 media_status_t status = AMediaMuxer_writeSampleData(mMuxer, 0, inputBuffer, &info); in mux()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Encoder.java | 280 ByteBuffer inputBuffer = mCodec.getInputBuffer(inputBufferId); in onInputAvailable() local 281 if (inputBuffer == null) { in onInputAvailable() 285 int bufSize = inputBuffer.capacity(); in onInputAvailable() 304 inputBuffer.put(inputArray); in onInputAvailable()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ToGrayValuesFilter.java | 108 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local 109 if (!toGrayValues(inputBuffer, grayBuffer)) { in onProcess()
|
D | SobelFilter.java | 145 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local 151 inputBuffer, magBuffer, dirBuffer); in onProcess() local
|