Home
last modified time | relevance | path

Searched refs:mFrameSize (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java36 private final Size mFrameSize; field in WmDisplayCutout
40 mFrameSize = frameSize; in WmDisplayCutout()
72 Size frame = mFrameSize == null ? null : new Size( in inset()
73 mFrameSize.getWidth() - insetLeft - insetRight, in inset()
74 mFrameSize.getHeight() - insetTop - insetBottom); in inset()
88 if (mFrameSize == null) { in calculateRelativeTo()
91 final int insetRight = mFrameSize.getWidth() - frame.right; in calculateRelativeTo()
92 final int insetBottom = mFrameSize.getHeight() - frame.bottom; in calculateRelativeTo()
168 Objects.equals(mFrameSize, that.mFrameSize); in equals()
173 return Objects.hash(mInner, mFrameSize); in hashCode()
[all …]
/frameworks/av/media/libstagefright/id3/
DID3.cpp495 mFrameSize(0) { in Iterator()
519 mOffset += mFrameSize; in next()
601 id->setTo((const char*)frameData, mFrameSize); in getstring()
605 if (mFrameSize < getHeaderLength() + 1) { in getstring()
608 size_t n = mFrameSize - getHeaderLength() - 1; in getstring()
728 if (mFrameSize < getHeaderLength()) { in getData()
732 *length = mFrameSize - getHeaderLength(); in getData()
751 mFrameSize = 0; in findFrame()
762 mFrameSize = in findFrame()
767 if (mFrameSize == 0) { in findFrame()
[all …]
/frameworks/av/media/libaudiohal/impl/
DStreamPowerLog.h33 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/
DEncoder.java45 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/av/media/libnbaio/
DNBAIO.cpp27 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()
DSourceAudioBufferProvider.cpp40 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()
DAudioStreamInSource.cpp56 mFrameSize = Format_frameSize(mFormat); in negotiate()
81 status_t result = mStream->read(buffer, count * mFrameSize, &bytesRead); in read()
83 size_t framesRead = bytesRead / mFrameSize; in read()
DAudioStreamOutSink.cpp54 mFrameSize = Format_frameSize(mFormat); in negotiate()
66 status_t ret = mStream->write(buffer, count * mFrameSize, &written); in write()
68 written /= mFrameSize; in write()
DAudioBufferProviderSource.cpp69 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()
DMonoPipe.cpp87 buffer = (char *) buffer + (written * mFrameSize); in write()
/frameworks/av/media/libaudioprocessing/tests/
Dtest_utils.h106 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);
Dtest-resampler.cpp264 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/
DBufferProviders.cpp409 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/
DNBAIO.h65 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/tests/fuzzer/
Dlibaudioprocessing_resampler_fuzzer.cpp59 const size_t mFrameSize; // size of each frame in bytes member in Provider
66 mFrameSize(frameSize), in Provider()
75 buffer->raw = (char*)mAddr + mFrameSize * mNextFrame; in getNextBuffer()
/frameworks/av/services/audioflinger/
DTracks.cpp98 mFrameSize(audio_has_proportional_frames(format) ? in TrackBase()
128 || mFrameSize == 0 // format needs to be correct in TrackBase()
129 || minBufferSize > SIZE_MAX / mFrameSize) { in TrackBase()
133 minBufferSize *= mFrameSize; in TrackBase()
567 mFrameSize, !isExternalTrack(), sampleRate); in Track()
570 mFrameSize, sampleRate); in Track()
837 sourceBuffer.i8, frameCount, mFrameSize); in interceptBuffer()
1611 mClientProxy = new AudioTrackClientProxy(mCblk, mBuffer, mFrameCount, mFrameSize,
1700 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize); in write()
1707 pInBuffer->raw = (int8_t *)pInBuffer->raw + outFrames * mFrameSize; in write()
[all …]
DTrackBase.h279 size_t frameSize() const { return mFrameSize; } in frameSize()
354 const size_t mFrameSize; // AudioFlinger's view of frame size in shared memory, variable
DThreads.cpp882 dprintf(fd, " Processing frame size: %zu bytes\n", mFrameSize); in dumpBase_l()
2747 mFrameSize = mOutput->getFrameSize(); in readOutputParameters_l()
2751 mFrameCount = mBufferSize / mFrameSize; in readOutputParameters_l()
2786 mFrameSize = mChannelCount * audio_bytes_per_sample(mFormat); in readOutputParameters_l()
2787 mBufferSize = mFrameSize * mFrameCount; in readOutputParameters_l()
2843 const size_t sinkBufferSize = mNormalFrameCount * mFrameSize; in readOutputParameters_l()
2945 int64_t framesWritten = mBytesWritten / mFrameSize; in getRenderPosition()
3090 const size_t count = mBytesRemaining / mFrameSize; in threadLoop_write()
3106 bytesWritten = framesWritten * mFrameSize; in threadLoop_write()
3202 mSinkBufferSize = mNormalFrameCount * mFrameSize; in cacheParameters_l()
[all …]
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp46 mFrameSize(0), in AudioPlayer()
209 mFrameSize = mAudioSink->frameSize(); in start()
268 mFrameSize = mAudioTrack->frameSize(); in start()
576 ((mNumFramesPlayed + size_done / mFrameSize) * 1000000) in fillBuffer()
618 mNumFramesPlayed += size_done / mFrameSize; in fillBuffer()
DAudioPlayer.h76 size_t mFrameSize; variable
/frameworks/av/media/libnbaio/include/media/nbaio/
DAudioStreamOutSink.h47 virtual ssize_t availableToWrite() { return mStreamBufferSizeBytes / mFrameSize; } in availableToWrite()
DAudioStreamInSource.h47 virtual ssize_t availableToRead() { return mStreamBufferSizeBytes / mFrameSize; } in availableToRead()
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp317 mFrameSize = channelCount * audio_bytes_per_sample(format); in set()
319 mFrameSize = sizeof(uint8_t); in set()
916 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in createRecord_l()
1045 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer()
1058 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer()
1105 while (userSize >= mFrameSize) { in read()
1106 audioBuffer.frameCount = userSize / mFrameSize; in read()
1129 mFramesRead += read / mFrameSize; in read()
1337 size_t releasedFrames = readSize / mFrameSize; in processAudioBuffer()
/frameworks/av/media/libstagefright/include/
DID3.h65 size_t mFrameSize; member
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h265 size_t frameSize() const { return mFrameSize; } in frameSize()
692 size_t mFrameSize; // app-level frame size == AudioFlinger frame size variable

12