Home
last modified time | relevance | path

Searched refs:inputBuffer (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeMuxer.cpp76 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 …]
DNativeDecoder.cpp73 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/av/services/camera/libcameraservice/device3/
DCamera3OutputUtilsTemplated.h255 camera_stream_buffer_t inputBuffer; in processOneCaptureResultLockedT() local
256 if (result.inputBuffer.streamId == -1) { in processOneCaptureResultLockedT()
259 if (states.inputStream->getId() != result.inputBuffer.streamId) { in processOneCaptureResultLockedT()
261 result.frameNumber, result.inputBuffer.streamId); in processOneCaptureResultLockedT()
264 inputBuffer.stream = states.inputStream->asHalStream(); in processOneCaptureResultLockedT()
266 res = bufferRecords.popInflightBuffer(result.frameNumber, result.inputBuffer.streamId, in processOneCaptureResultLockedT()
270 __FUNCTION__, result.frameNumber, result.inputBuffer.streamId); in processOneCaptureResultLockedT()
273 inputBuffer.buffer = buffer; in processOneCaptureResultLockedT()
274 inputBuffer.status = mapBufferStatus<BufferStatusType>(result.inputBuffer.status); in processOneCaptureResultLockedT()
275 inputBuffer.acquire_fence = -1; in processOneCaptureResultLockedT()
[all …]
/frameworks/base/core/java/android/util/
DBase64InputStream.java34 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/libaaudio/src/flowgraph/
DMultiToMonoConverter.cpp31 const float *inputBuffer = input.getBuffer(); in onProcess() local
36 *outputBuffer++ = *inputBuffer; in onProcess()
37 inputBuffer += channelCount; in onProcess()
DMultiToManyConverter.cpp37 const float *inputBuffer = input.getBuffer() + ch; in onProcess() local
41 *outputBuffer++ = *inputBuffer; in onProcess()
42 inputBuffer += channelCount; in onProcess()
DChannelCountConverter.cpp33 const float *inputBuffer = input.getBuffer(); in onProcess() local
43 outputBuffer[outputChannel] = inputBuffer[inputChannel]; in onProcess()
47 inputBuffer += inputChannelCount; in onProcess()
DRampLinear.cpp46 const float *inputBuffer = input.getBuffer(); in onProcess() local
67 *outputBuffer++ = *inputBuffer++ * currentLevel; in onProcess()
77 *outputBuffer++ = *inputBuffer++ * mLevelTo; in onProcess()
DMonoToMultiConverter.cpp29 const float *inputBuffer = input.getBuffer(); in onProcess() local
34 float sample = *inputBuffer++; in onProcess()
DClipToRange.cpp29 const float *inputBuffer = input.getBuffer(); in onProcess() local
34 *outputBuffer++ = std::min(mMaximum, std::max(mMinimum, *inputBuffer++)); in onProcess()
DMonoBlend.cpp31 const float *inputBuffer = input.getBuffer(); in onProcess() local
37 accum += *inputBuffer++; in onProcess()
DManyToMultiConverter.cpp35 const float *inputBuffer = inputs[ch]->getBuffer(); in onProcess() local
40 float sample = *inputBuffer++; in onProcess()
DSampleRateConverter.cpp46 const float *inputBuffer = input.getBuffer(); in getNextInputFrame() local
47 return &inputBuffer[mInputCursor++ * input.getSamplesPerFrame()]; in getNextInputFrame()
/frameworks/av/media/tests/benchmark/tests/
DC2DecoderTest.cpp88 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()
DDecoderTest.cpp60 uint8_t *inputBuffer = (uint8_t *)malloc(kMaxBufferSize); in TEST_P() local
61 ASSERT_NE(inputBuffer, nullptr) << "Insufficient memory"; in TEST_P()
75 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P()
83 status = decoder->decode(inputBuffer, frameInfo, codecName, asyncMode); in TEST_P()
91 free(inputBuffer); in TEST_P()
DMuxerTest.cpp81 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()
DC2EncoderTest.cpp91 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()
DEncoderTest.cpp64 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/codecs/m4v_h263/fuzzer/
Dmpeg4_h263_enc_fuzzer.cpp141 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DExposureFilter.java60 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local
64 inputBuffer); in onProcess()
67 inputBuffer); in onProcess()
DAvgBrightnessFilter.java55 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local
57 brightness = brightnessOperator(inputImage.getWidth(),inputImage.getHeight(), inputBuffer); in onProcess()
DContrastRatioFilter.java55 ByteBuffer inputBuffer = inputImage.lockBytes(Frame.MODE_READ); in onProcess() local
58 inputBuffer); in onProcess()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DMuxerTest.java119 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()
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputBufferManager.cpp382 IComponentListener::InputBuffer &inputBuffer in processNotifications() local
384 inputBuffer.arrayIndex = bufferIndex; in processNotifications()
385 inputBuffer.frameIndex = frameIndex; in processNotifications()
415 for (const IComponentListener::InputBuffer& inputBuffer : in processNotifications() local
417 inputBufferLog << " (" << inputBuffer.frameIndex in processNotifications()
418 << ", " << inputBuffer.arrayIndex in processNotifications()
/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.cpp24 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()

123