/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | WmDisplayCutout.java | 35 private final Size mFrameSize; field in WmDisplayCutout 39 mFrameSize = frameSize; in WmDisplayCutout() 79 Objects.equals(mFrameSize, that.mFrameSize); in equals() 84 return Objects.hash(mInner, mFrameSize); in hashCode() 89 return "WmDisplayCutout{" + mInner + ", mFrameSize=" + mFrameSize + '}'; in toString()
|
/frameworks/av/media/module/id3/ |
D | ID3.cpp | 508 mFrameSize(0) { in Iterator() 532 mOffset += mFrameSize; in next() 614 *id = String8((const char*)frameData, mFrameSize); in getstring() 618 if (mFrameSize < getHeaderLength() + 1) { in getstring() 621 size_t n = mFrameSize - getHeaderLength() - 1; in getstring() 741 if (mFrameSize < getHeaderLength()) { in getData() 745 *length = mFrameSize - getHeaderLength(); in getData() 764 mFrameSize = 0; in findFrame() 775 mFrameSize = in findFrame() 780 if (mFrameSize == 0) { in findFrame() [all …]
|
/frameworks/av/media/libaudiohal/impl/ |
D | StreamPowerLog.h | 33 mFrameSize(0) { in StreamPowerLog() 48 mFrameSize = channelCount * audio_bytes_per_sample(format); in init() 49 if (mFrameSize > 0) { in init() 74 mPowerLog, buffer, sizeInBytes / mFrameSize, audio_utils_get_real_time_ns()); in log() 98 size_t mFrameSize; variable
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/ |
D | Encoder.java | 45 private int mFrameSize; field in Encoder 217 mFrameSize = frameSize; in encode() 224 mFrameSize = frameSize; in encode() 225 if (mFrameSize > maxInputSize && maxInputSize > 0) { in encode() 226 mFrameSize = maxInputSize; in encode() 229 mNumFrames = (int) ((mInputBufferSize + mFrameSize - 1) / mFrameSize); in encode() 387 int bytesToRead = mFrameSize; in onInputAvailable() 388 if (mInputBufferSize - mOffset < mFrameSize) { in onInputAvailable() 394 mFrameSize = bufSize; in onInputAvailable() 396 mNumFrames = (int) ((mInputBufferSize + mFrameSize - 1) / mFrameSize); in onInputAvailable() [all …]
|
/frameworks/av/media/libaudioprocessing/tests/fuzzer/ |
D | libaudioprocessing_fuzz_utils.h | 28 const size_t mFrameSize; // size of each frame in bytes variable 35 mFrameSize(frameSize), in Provider() 44 buffer->raw = (char*)mAddr + mFrameSize * mNextFrame; in getNextBuffer()
|
/frameworks/av/media/libnbaio/ |
D | NBAIO.cpp | 27 return format.mFrameSize; in Format_frameSize() 58 ret.mFrameSize = audio_bytes_per_frame(channelCount, format); in Format_from_SR_C() 160 format.mFormat != AUDIO_FORMAT_INVALID && format.mFrameSize != 0; in Format_isValid() 167 format1.mFrameSize == format2.mFrameSize; in Format_isEqual()
|
D | SourceAudioBufferProvider.cpp | 40 mFrameSize = Format_frameSize(source->format()); in SourceAudioBufferProvider() 57 buffer->raw = (char *) mAllocated + (mOffset * mFrameSize); in getNextBuffer() 67 mAllocated = calloc(buffer->frameCount, mFrameSize); in getNextBuffer() 97 (buffer->raw == (char *) mAllocated + (mOffset * mFrameSize)) && in releaseBuffer()
|
D | AudioStreamInSource.cpp | 54 mFrameSize = Format_frameSize(mFormat); in negotiate() 79 status_t result = mStream->read(buffer, count * mFrameSize, &bytesRead); in read() 81 size_t framesRead = bytesRead / mFrameSize; in read()
|
D | AudioStreamOutSink.cpp | 52 mFrameSize = Format_frameSize(mFormat); in negotiate() 72 status_t ret = mStream->write(buffer, count * mFrameSize, &written); in write() 80 written /= mFrameSize; in write()
|
D | AudioBufferProviderSource.cpp | 69 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize); in read() 120 ssize_t ret = via(user, (char *) mBuffer.raw + (mConsumed * mFrameSize), count); in readVia()
|
/frameworks/av/media/codec2/sfplugin/ |
D | FrameReassembler.cpp | 47 mFrameSize = frameSize; in init() 55 mFrameSize = frameSize; in updateFrameSize() 77 mFrameSize.reset(); in reset() 84 return mFrameSize.has_value(); in operator bool() 148 size_t frameSizeBytes = mFrameSize.value() * mChannelCount * bytesPerSample(); in process() 221 mCurrentOrdinal.timestamp += mFrameSize.value() * 1000000 / mSampleRate; in finishCurrentBlock()
|
D | FrameReassembler.h | 57 std::optional<uint32_t> mFrameSize; variable
|
/frameworks/av/media/libaudioprocessing/tests/ |
D | test_utils.h | 106 mFrameSize(frameSize), 112 : mAddr(NULL), mNumFrames(0), mFrameSize(0), 144 buffer->raw = (char *)mAddr + mFrameSize * mNextFrame; 184 int mFrameSize; // frame size (# channels * bytes per sample) 295 mFrameSize = mChannels * sizeof(T); 297 mAddr = malloc(mFrameSize * mNumFrames);
|
D | test-resampler.cpp | 265 const size_t mFrameSize; // size of each frame in bytes in main() member in main::Provider 274 mFrameSize(frameSize), in main() 299 buffer->raw = (char *)mAddr + mFrameSize * mNextFrame; in main()
|
/frameworks/av/media/libnbaio/include_mono/media/nbaio/ |
D | NBAIO.h | 65 size_t mFrameSize; member 132 mFrameSize(Format_frameSize(format)) { } in NBAIO_Port() 139 size_t mFrameSize; // assign in parallel with any assignment to mFormat variable
|
/frameworks/av/media/libaudioprocessing/ |
D | BufferProviders.cpp | 439 mFrameSize(channelCount * audio_bytes_per_sample(format)), in TimestretchBufferProvider() 486 if (posix_memalign(&newmem, 32, pBuffer->frameCount * mFrameSize) == OK) { in getNextBuffer() 488 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer() 522 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer() 550 (uint8_t*)mLocalBufferData + pBuffer->frameCount * mFrameSize, in releaseBuffer() 551 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer() 613 size_t copySize = mFrameSize * *dstFrames; in processFrames() 619 memcpy((uint8_t*)dstBuffer + mFrameSize * count, in processFrames() 620 srcBuffer, mFrameSize * remaining); in processFrames() 626 memset(dstBuffer,0, mFrameSize * *dstFrames); in processFrames()
|
/frameworks/av/cmds/stagefright/ |
D | AudioPlayer.cpp | 46 mFrameSize(0), in AudioPlayer() 212 mFrameSize = mAudioSink->frameSize(); in start() 272 mFrameSize = mAudioTrack->frameSize(); in start() 568 ((mNumFramesPlayed + size_done / mFrameSize) * 1000000) in fillBuffer() 610 mNumFramesPlayed += size_done / mFrameSize; in fillBuffer()
|
D | AudioPlayer.h | 79 size_t mFrameSize; variable
|
/frameworks/av/services/audioflinger/ |
D | Tracks.cpp | 116 mFrameSize(audio_bytes_per_frame(mChannelCount, format)), in TrackBase() 145 || mFrameSize == 0 // format needs to be correct in TrackBase() 146 || minBufferSize > SIZE_MAX / mFrameSize) { in TrackBase() 150 minBufferSize *= mFrameSize; in TrackBase() 810 mFrameSize, !isExternalTrack(), sampleRate); in Track() 813 mFrameSize, sampleRate); in Track() 1098 sourceBuffer.i8, frameCount, mFrameSize); in interceptBuffer() 2200 mClientProxy = new AudioTrackClientProxy(mCblk, mBuffer, mFrameCount, mFrameSize, 2250 memset(buf.mRaw, 0, buf.mFrameCount * mFrameSize); in write() 2320 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize); in write() [all …]
|
D | TrackBase.h | 279 size_t frameSize() const final { return mFrameSize; } in frameSize() 353 const size_t mFrameSize; // AudioFlinger's view of frame size in shared memory, variable
|
D | Threads.cpp | 1085 dprintf(fd, " Processing frame size: %zu bytes\n", mFrameSize); in dumpBase_l() 3178 mFrameSize = mOutput->getFrameSize(); in readOutputParameters_l() 3182 mFrameCount = mBufferSize / mFrameSize; in readOutputParameters_l() 3210 mFrameSize = mChannelCount * audio_bytes_per_sample(mFormat); in readOutputParameters_l() 3211 mBufferSize = mFrameSize * mFrameCount; in readOutputParameters_l() 3269 const size_t sinkBufferSize = mNormalFrameCount * mFrameSize; in readOutputParameters_l() 3414 int64_t framesWritten = mBytesWritten / mFrameSize; in getRenderPosition() 3557 const size_t count = mBytesRemaining / mFrameSize; in threadLoop_write() 3574 bytesWritten = framesWritten * mFrameSize; in threadLoop_write() 3691 mSinkBufferSize = mNormalFrameCount * mFrameSize; in cacheParameters_l() [all …]
|
/frameworks/av/media/libnbaio/include/media/nbaio/ |
D | SourceAudioBufferProvider.h | 44 /*const*/ size_t mFrameSize; // frame size in bytes variable
|
D | AudioStreamInSource.h | 47 virtual ssize_t availableToRead() { return mStreamBufferSizeBytes / mFrameSize; } in availableToRead()
|
/frameworks/av/media/module/id3/include/ |
D | ID3.h | 65 size_t mFrameSize; member
|
/frameworks/av/media/libaudioclient/ |
D | AudioRecord.cpp | 342 mFrameSize = audio_bytes_per_frame(mChannelCount, mFormat); in set() 957 mFormatConversionBufRaw = std::make_unique<uint8_t[]>(mNotificationFramesAct * mFrameSize); in createRecord_l() 1210 while (userSize >= mFrameSize) { in read() 1211 audioBuffer.frameCount = userSize / mFrameSize; in read() 1225 size_t bytesRead = audioBuffer.frameCount * mFrameSize; in read() 1239 mFramesRead += read / mFrameSize; in read() 1438 buffer->mSize = buffer->frameCount * mFrameSize; in processAudioBuffer() 1463 size_t releasedFrames = readSize / mFrameSize; in processAudioBuffer()
|