Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java37 private final Size mFrameSize; field in WmDisplayCutout
41 mFrameSize = frameSize; in WmDisplayCutout()
68 Size frame = mFrameSize == null ? null : new Size( in inset()
69 mFrameSize.getWidth() - insetLeft - insetRight, in inset()
70 mFrameSize.getHeight() - insetTop - insetBottom); in inset()
84 if (mFrameSize == null) { in calculateRelativeTo()
87 final int insetRight = mFrameSize.getWidth() - frame.right; in calculateRelativeTo()
88 final int insetBottom = mFrameSize.getHeight() - frame.bottom; in calculateRelativeTo()
179 Objects.equals(mFrameSize, that.mFrameSize); in equals()
184 return Objects.hash(mInner, mFrameSize); in hashCode()
[all …]
/frameworks/av/media/libstagefright/id3/
DID3.cpp496 mFrameSize(0) { in Iterator()
520 mOffset += mFrameSize; in next()
602 id->setTo((const char*)frameData, mFrameSize); in getstring()
606 if (mFrameSize < getHeaderLength() + 1) { in getstring()
609 size_t n = mFrameSize - getHeaderLength() - 1; in getstring()
729 if (mFrameSize < getHeaderLength()) { in getData()
733 *length = mFrameSize - getHeaderLength(); in getData()
752 mFrameSize = 0; in findFrame()
763 mFrameSize = in findFrame()
768 if (mFrameSize == 0) { in findFrame()
[all …]
/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/libaudiohal/impl/
DStreamPowerLog.h34 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/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()
/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/include/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
DAudioStreamOutSink.h47 virtual ssize_t availableToWrite() { return mStreamBufferSizeBytes / mFrameSize; } in availableToWrite()
/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.cpp97 mFrameSize(audio_has_proportional_frames(format) ? in TrackBase()
126 || mFrameSize == 0 // format needs to be correct in TrackBase()
127 || minBufferSize > SIZE_MAX / mFrameSize) { in TrackBase()
131 minBufferSize *= mFrameSize; in TrackBase()
558 mFrameSize, !isExternalTrack(), sampleRate); in Track()
561 mFrameSize); in Track()
828 sourceBuffer.i8, frameCount, mFrameSize); in interceptBuffer()
1565 mClientProxy = new AudioTrackClientProxy(mCblk, mBuffer, mFrameCount, mFrameSize,
1654 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize); in write()
1661 pInBuffer->raw = (int8_t *)pInBuffer->raw + outFrames * mFrameSize; in write()
[all …]
DTrackBase.h218 size_t frameSize() const { return mFrameSize; } in frameSize()
293 const size_t mFrameSize; // AudioFlinger's view of frame size in shared memory, variable
/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/libaudioclient/
DAudioRecord.cpp300 mFrameSize = channelCount * audio_bytes_per_sample(format); in set()
302 mFrameSize = sizeof(uint8_t); in set()
869 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in createRecord_l()
975 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer()
988 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer()
1035 while (userSize >= mFrameSize) { in read()
1036 audioBuffer.frameCount = userSize / mFrameSize; in read()
1059 mFramesRead += read / mFrameSize; in read()
1267 size_t releasedFrames = readSize / mFrameSize; in processAudioBuffer()
/frameworks/av/media/libnbaio/include/media/nbaio/
DSourceAudioBufferProvider.h44 /*const*/ size_t mFrameSize; // frame size in bytes variable
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/libstagefright/include/
DID3.h66 size_t mFrameSize; member

12