Home
last modified time | relevance | path

Searched refs:bytesToRead (Results 1 – 12 of 12) sorted by relevance

/frameworks/av/media/libaaudio/src/utility/
DFixedBlockReader.cpp37 int32_t bytesToRead = numBytes; in readFromStorage() local
39 if (bytesToRead > dataAvailable) { in readFromStorage()
40 bytesToRead = dataAvailable; in readFromStorage()
42 memcpy(buffer, &mStorage[mPosition], bytesToRead); in readFromStorage()
43 mPosition += bytesToRead; in readFromStorage()
44 return bytesToRead; in readFromStorage()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.cpp50 size_t bytesToRead = mParams.frameSize; in onInputAvailable() local
52 bytesToRead = mInputBufferSize - mOffset; in onInputAvailable()
55 if (bufSize < bytesToRead) { in onInputAvailable()
58 bytesToRead = bufSize; in onInputAvailable()
61 ALOGE("bytes to read %zu bufSize %zu \n", bytesToRead, bufSize); in onInputAvailable()
68 if (bytesToRead < mParams.frameSize && mNumInputFrame < mParams.numFrames - 1) { in onInputAvailable()
70 mNumInputFrame, bytesToRead, mParams.frameSize, mParams.numFrames); in onInputAvailable()
76 mEleStream->read(buf, bytesToRead); in onInputAvailable()
78 if (bytesgcount != bytesToRead) { in onInputAvailable()
79 ALOGE("bytes to read %zu actual bytes read %zu \n", bytesToRead, bytesgcount); in onInputAvailable()
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DEncoder.java387 int bytesToRead = mFrameSize; in onInputAvailable() local
389 bytesToRead = (int) (mInputBufferSize - mOffset); in onInputAvailable()
392 if (bufSize < bytesToRead) { in onInputAvailable()
395 bytesToRead = bufSize; in onInputAvailable()
403 byte[] inputArray = new byte[bytesToRead]; in onInputAvailable()
404 mInputStream.read(inputArray, 0, bytesToRead); in onInputAvailable()
407 if (mNumInputFrame >= mNumFrames - 1 || bytesToRead == 0) { in onInputAvailable()
418 mediaCodec.queueInputBuffer(inputBufferId, 0, bytesToRead, presentationTimeUs, flag); in onInputAvailable()
420 mOffset += bytesToRead; in onInputAvailable()
/frameworks/base/media/java/android/media/
DExifInterfaceUtils.java58 int bytesToRead = Math.min(remainder, 8192); in copy() local
59 int bytesRead = in.read(buffer, 0, bytesToRead); in copy()
60 if (bytesRead != bytesToRead) { in copy()
DExifInterface.java3822 int bytesToRead = size; in saveWebpAttributes() local
3825 bytesToRead += 1; in saveWebpAttributes()
3851 bytesToRead -= (vp8Frame.length + vp8Signature.length + 4); in saveWebpAttributes()
3868 bytesToRead -= (1 /* VP8L signature */ + 4); in saveWebpAttributes()
3903 copy(totalInputStream, nonHeaderOutputStream, bytesToRead); in saveWebpAttributes()
DMediaPlayer.java3170 int bytesToRead = (int) Math.min(buffer.length, length2 - total); in addTimedTextSource()
3171 int bytes = IoBridge.read(dupedFd, buffer, 0, bytesToRead); in addTimedTextSource()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java246 int bytesToRead = readBytes > bufferSize ? bufferSize : readBytes; in encode() local
247 totalBytesRead += bytesToRead; in encode()
248 readBytes -= bytesToRead; in encode()
249 buff.put(buffer, offset, bytesToRead); in encode()
250 offset += bytesToRead; in encode()
251 mCodec.queueInputBuffer(bufferIndex, 0, bytesToRead, mPresentationTime, 0); in encode()
/frameworks/av/media/module/codecs/mp3dec/test/
Dmp3reader.cpp247 ssize_t bytesToRead = kMaxReadBytes; in resync() local
264 bytesToRead = kMaxReadBytes - remainingBytes; in resync()
272 buf + remainingBytes, bytesToRead); in resync()
277 reachEOS = (totalBytesRead != bytesToRead); in resync()
/frameworks/av/media/module/extractors/mp3/
DMP3Extractor.cpp97 ssize_t bytesToRead = kMaxReadBytes; in Resync() local
115 bytesToRead = kMaxReadBytes - remainingBytes; in Resync()
124 bytesToRead); in Resync()
128 reachEOS = (totalBytesRead != bytesToRead); in Resync()
/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp251 size_t bytesToRead = offset + size - mCachedOffset - mCachedSize; in readAt() local
252 size_t bytesRead = mStream->read(mCache.get() + mCachedSize, bytesToRead); in readAt()
253 if (bytesRead > bytesToRead || bytesRead == 0) { in readAt()
257 } else if (bytesRead < bytesToRead) { in readAt()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp427 size_t bytesToRead = framesToRead * bytesPerDeviceFrame; in read() local
428 … bytesActuallyRead = mAudioRecord->read(mFormatConversionBufferI16.get(), bytesToRead, blocking); in read()
/frameworks/av/media/module/extractors/mp4/
DMPEG4Extractor.cpp2537 ssize_t bytesToRead = sizeof(flacInfo) - flacOffset; in parseChunk() local
2539 data_offset, flacInfo + flacOffset, bytesToRead) < bytesToRead) { in parseChunk()
2543 data_offset += bytesToRead; in parseChunk()