Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DLineBreakBufferedWriter.java43 private int bufferIndex; field in LineBreakBufferedWriter
82 this.bufferIndex = 0; in LineBreakBufferedWriter()
92 writeBuffer(bufferIndex); in flush()
93 bufferIndex = 0; in flush()
99 if (bufferIndex < buffer.length) { in write()
100 buffer[bufferIndex] = (char)c; in write()
101 bufferIndex++; in write()
103 lastNewline = bufferIndex; in write()
119 while (bufferIndex + len > bufferSize) { in write()
123 int maxLength = bufferSize - bufferIndex; in write()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java212 int bufferIndex = mCodec.dequeueInputBuffer(TIMEOUT); in encode() local
213 if (bufferIndex < 0) { in encode()
217 ByteBuffer buff = mCodec.getInputBuffer(bufferIndex); in encode()
225 mCodec.queueInputBuffer(bufferIndex, 0, bytesToRead, mPresentationTime, 0); in encode()
234 int bufferIndex = mCodec.dequeueInputBuffer(TIMEOUT); in endStream() local
235 mCodec.queueInputBuffer(bufferIndex, 0, 0, mPresentationTime, in endStream()
243 int bufferIndex = mCodec.dequeueOutputBuffer(bufferInfo, TIMEOUT); in writeOutput() local
244 if (bufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in writeOutput()
249 if (bufferIndex == MediaCodec.INFO_TRY_AGAIN_LATER) { in writeOutput()
253 ByteBuffer buff = mCodec.getOutputBuffer(bufferIndex); in writeOutput()
[all …]
/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMediaCodecSurfaceEncoder.java225 private void dequeueDecoderOutput(int bufferIndex, MediaCodec.BufferInfo info) { in dequeueDecoderOutput() argument
231 "output: id: " + bufferIndex + " flags: " + info.flags + " size: " + info.size + in dequeueDecoderOutput()
237 mDecoder.releaseOutputBuffer(bufferIndex, mSurface != null); in dequeueDecoderOutput()
240 private void enqueueDecoderInput(int bufferIndex) { in enqueueDecoderInput() argument
241 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput()
244 enqueueDecoderEOS(bufferIndex); in enqueueDecoderInput()
260 Log.d(TAG, "input: id: " + bufferIndex + " size: " + size + " pts: " + pts + in enqueueDecoderInput()
263 mDecoder.queueInputBuffer(bufferIndex, 0, size, pts, codecFlags); in enqueueDecoderInput()
331 private void enqueueDecoderEOS(int bufferIndex) { in enqueueDecoderEOS() argument
333 mDecoder.queueInputBuffer(bufferIndex, 0, 0, 0, MediaCodec.BUFFER_FLAG_END_OF_STREAM); in enqueueDecoderEOS()
[all …]
DMediaCodecBase.java59 public void onInputBufferAvailable(MediaCodec codec, int bufferIndex) { in onInputBufferAvailable() argument
61 mCbInputQueue.add(new Pair<>(bufferIndex, (MediaCodec.BufferInfo) null)); in onInputBufferAvailable()
67 public void onOutputBufferAvailable(MediaCodec codec, int bufferIndex, in onOutputBufferAvailable() argument
70 mCbOutputQueue.add(new Pair<>(bufferIndex, info)); in onOutputBufferAvailable()
/frameworks/av/media/codec2/hidl/1.0/utils/include/codec2/hidl/1.0/
DInputBufferManager.h189 size_t bufferIndex; member
193 size_t bufferIndex, in TrackedBuffer()
197 bufferIndex(bufferIndex), in TrackedBuffer()
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputBufferManager.cpp142 << ", bufferIndex = " << bufferId->bufferIndex in _unregisterFrameData()
204 << ", bufferIndex = " << bufferId->bufferIndex in _unregisterFrameData()
261 << ", bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed()
269 << ", bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed()
282 << ", bufferIndex = " << std::dec << bufferId->bufferIndex in _onBufferDestroyed()
292 << "bufferIndex = " << bufferId->bufferIndex in _onBufferDestroyed()
308 deathNotifications.indices[bufferId->frameIndex].emplace_back(bufferId->bufferIndex); in _onBufferDestroyed()
381 for (const size_t& bufferIndex : bufferIndices) { in processNotifications() local
384 inputBuffer.arrayIndex = bufferIndex; in processNotifications()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DAudioTrackDecoder.java77 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument
78 ByteBuffer buffer = buffers[bufferIndex]; in onDataAvailable()
96 codec.releaseOutputBuffer(bufferIndex, false); in onDataAvailable()
DCpuVideoTrackDecoder.java81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument
84 mDecodedBuffer = buffers[bufferIndex]; in onDataAvailable()
96 codec.releaseOutputBuffer(bufferIndex, false); in onDataAvailable()
DGpuVideoTrackDecoder.java107 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() argument
113 codec.releaseOutputBuffer(bufferIndex, textureAvailable); in onDataAvailable()
DTrackDecoder.java67 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info); in onDataAvailable() argument
/frameworks/av/media/libmediatranscoding/transcoder/include/media/
DVideoTrackTranscoder.h79 void enqueueInputSample(int32_t bufferIndex);
82 void transferBuffer(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo);
85 void dequeueOutputSample(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo);
/frameworks/av/media/libmediatranscoding/transcoder/
DVideoTrackTranscoder.cpp400 void VideoTrackTranscoder::enqueueInputSample(int32_t bufferIndex) { in enqueueInputSample() argument
417 uint8_t* sourceBuffer = AMediaCodec_getInputBuffer(mDecoder, bufferIndex, &bufferSize); in enqueueInputSample()
444 status = AMediaCodec_queueInputBuffer(mDecoder, bufferIndex, 0, mSampleInfo.size, in enqueueInputSample()
453 void VideoTrackTranscoder::transferBuffer(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo) { in transferBuffer() argument
454 if (bufferIndex >= 0) { in transferBuffer()
456 AMediaCodec_releaseOutputBuffer(mDecoder, bufferIndex, needsRender); in transferBuffer()
469 void VideoTrackTranscoder::dequeueOutputSample(int32_t bufferIndex, in dequeueOutputSample() argument
471 if (bufferIndex >= 0) { in dequeueOutputSample()
474 AMediaCodec_getOutputBuffer(mEncoder->getCodec(), bufferIndex, &sampleSize); in dequeueOutputSample()
483 buffer, bufferInfo.offset, bufferIndex, bufferReleaseCallback); in dequeueOutputSample()
/frameworks/av/media/libstagefright/
DMediaCodecSource.cpp711 size_t bufferIndex = *mAvailEncoderInputIndices.begin(); in feedEncoderInputBuffers() local
726 mAvailEncoderInputIndices.push_back(bufferIndex); in feedEncoderInputBuffers()
751 status_t err = mEncoder->getInputBuffer(bufferIndex, &inbuf); in feedEncoderInputBuffers()
794 bufferIndex, 0, size, timeUs, flags); in feedEncoderInputBuffers()
DMediaCodec.cpp4576 status_t MediaCodec::queueCSDInputBuffer(size_t bufferIndex) { in queueCSDInputBuffer() argument
4619 const BufferInfo &info = mPortBuffers[kPortIndexInput][bufferIndex]; in queueCSDInputBuffer()
4626 ALOGV("Input buffer %zu is not properly allocated", bufferIndex); in queueCSDInputBuffer()
4636 msg->setSize("index", bufferIndex); in queueCSDInputBuffer()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaCodec.h535 status_t queueCSDInputBuffer(size_t bufferIndex);