/frameworks/av/media/libstagefright/id3/ |
D | ID3.cpp | 508 mFrameSize(0) { in Iterator() 532 mOffset += mFrameSize; in next() 614 id->setTo((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 | 34 mFrameSize(0) { in StreamPowerLog() 49 mFrameSize = channelCount * audio_bytes_per_sample(format); in init() 50 if (mFrameSize > 0) { in init() 75 mPowerLog, buffer, sizeInBytes / mFrameSize, audio_utils_get_real_time_ns()); in log() 99 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 137 mFrameSize = frameSize; in encode() 144 mFrameSize = frameSize; in encode() 145 if (mFrameSize > maxInputSize && maxInputSize > 0) { in encode() 146 mFrameSize = maxInputSize; in encode() 149 mNumFrames = (int) ((mInputBufferSize + mFrameSize - 1) / mFrameSize); in encode() 286 int bytesToRead = mFrameSize; in onInputAvailable() 287 if (mInputBufferSize - mOffset < mFrameSize) { in onInputAvailable() 293 mFrameSize = bufSize; in onInputAvailable() 295 mNumFrames = (int) ((mInputBufferSize + mFrameSize - 1) / mFrameSize); in onInputAvailable() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | WmDisplayCutout.java | 36 private final Size mFrameSize; field in WmDisplayCutout 40 mFrameSize = frameSize; in WmDisplayCutout() 119 Objects.equals(mFrameSize, that.mFrameSize); in equals() 124 return Objects.hash(mInner, mFrameSize); in hashCode() 129 return "WmDisplayCutout{" + mInner + ", mFrameSize=" + mFrameSize + '}'; in toString()
|
/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_is_linear_pcm(format) ? in Format_from_SR_C() 161 format.mFormat != AUDIO_FORMAT_INVALID && format.mFrameSize != 0; in Format_isValid() 168 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() 64 status_t ret = mStream->write(buffer, count * mFrameSize, &written); in write() 66 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() 149 size_t frameSizeBytes = mFrameSize.value() * mChannelCount * bytesPerSample(); in process() 222 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 | 264 const size_t mFrameSize; // size of each frame in bytes in main() member in main::Provider 273 mFrameSize(frameSize), in main() 298 buffer->raw = (char *)mAddr + mFrameSize * mNextFrame; in main()
|
/frameworks/av/media/libaudioprocessing/ |
D | BufferProviders.cpp | 409 mFrameSize(channelCount * audio_bytes_per_sample(format)), in TimestretchBufferProvider() 456 if (posix_memalign(&newmem, 32, pBuffer->frameCount * mFrameSize) == OK) { in getNextBuffer() 458 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer() 492 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer() 520 (uint8_t*)mLocalBufferData + pBuffer->frameCount * mFrameSize, in releaseBuffer() 521 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer() 583 size_t copySize = mFrameSize * *dstFrames; in processFrames() 589 memcpy((uint8_t*)dstBuffer + mFrameSize * count, in processFrames() 590 srcBuffer, mFrameSize * remaining); in processFrames() 596 memset(dstBuffer,0, mFrameSize * *dstFrames); in processFrames()
|
/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/cmds/stagefright/ |
D | AudioPlayer.cpp | 46 mFrameSize(0), in AudioPlayer() 212 mFrameSize = mAudioSink->frameSize(); in start() 271 mFrameSize = mAudioTrack->frameSize(); in start() 579 ((mNumFramesPlayed + size_done / mFrameSize) * 1000000) in fillBuffer() 621 mNumFramesPlayed += size_done / mFrameSize; in fillBuffer()
|
D | AudioPlayer.h | 76 size_t mFrameSize; variable
|
/frameworks/av/services/audioflinger/ |
D | Tracks.cpp | 110 mFrameSize(audio_has_proportional_frames(format) ? in TrackBase() 140 || mFrameSize == 0 // format needs to be correct in TrackBase() 141 || minBufferSize > SIZE_MAX / mFrameSize) { in TrackBase() 145 minBufferSize *= mFrameSize; in TrackBase() 687 mFrameSize, !isExternalTrack(), sampleRate); in Track() 690 mFrameSize, sampleRate); in Track() 963 sourceBuffer.i8, frameCount, mFrameSize); in interceptBuffer() 1906 mClientProxy = new AudioTrackClientProxy(mCblk, mBuffer, mFrameCount, mFrameSize, 1995 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize); in write() 2002 pInBuffer->raw = (int8_t *)pInBuffer->raw + outFrames * mFrameSize; in write() [all …]
|
D | TrackBase.h | 292 size_t frameSize() const { return mFrameSize; } in frameSize() 365 const size_t mFrameSize; // AudioFlinger's view of frame size in shared memory, variable
|
/frameworks/av/media/libnbaio/include/media/nbaio/ |
D | SourceAudioBufferProvider.h | 44 /*const*/ size_t mFrameSize; // frame size in bytes variable
|
D | AudioStreamOutSink.h | 47 virtual ssize_t availableToWrite() { return mStreamBufferSizeBytes / mFrameSize; } in availableToWrite()
|
D | AudioStreamInSource.h | 47 virtual ssize_t availableToRead() { return mStreamBufferSizeBytes / mFrameSize; } in availableToRead()
|
/frameworks/av/media/libstagefright/include/ |
D | ID3.h | 65 size_t mFrameSize; member
|
/frameworks/av/media/libaudioclient/ |
D | AudioRecord.cpp | 347 mFrameSize = channelCount * audio_bytes_per_sample(format); in set() 349 mFrameSize = sizeof(uint8_t); in set() 948 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in createRecord_l() 1078 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer() 1091 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer() 1138 while (userSize >= mFrameSize) { in read() 1139 audioBuffer.frameCount = userSize / mFrameSize; in read() 1162 mFramesRead += read / mFrameSize; in read() 1370 size_t releasedFrames = readSize / mFrameSize; in processAudioBuffer()
|