Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/id3/
DID3.cpp444 mFrameSize(0) { in Iterator()
468 mOffset += mFrameSize; in next()
550 id->setTo((const char*)frameData, mFrameSize); in getstring()
554 if (mFrameSize < getHeaderLength() + 1) { in getstring()
557 size_t n = mFrameSize - getHeaderLength() - 1; in getstring()
677 if (mFrameSize < getHeaderLength()) { in getData()
681 *length = mFrameSize - getHeaderLength(); in getData()
700 mFrameSize = 0; in findFrame()
711 mFrameSize = in findFrame()
716 if (mFrameSize == 0) { in findFrame()
[all …]
/frameworks/av/media/libaudiohal/
DStreamPowerLog.h32 mFrameSize(0) { in StreamPowerLog()
47 mFrameSize = channelCount * audio_bytes_per_sample(format); in init()
48 if (mFrameSize > 0) { in init()
73 mPowerLog, buffer, sizeInBytes / mFrameSize, audio_utils_get_real_time_ns()); in log()
97 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.h105 mFrameSize(frameSize),
111 : mAddr(NULL), mNumFrames(0), mFrameSize(0),
143 buffer->raw = (char *)mAddr + mFrameSize * mNextFrame;
183 int mFrameSize; // frame size (# channels * bytes per sample)
294 mFrameSize = mChannels * sizeof(T);
296 mAddr = malloc(mFrameSize * mNumFrames);
Dtest-resampler.cpp263 const size_t mFrameSize; // size of each frame in bytes in main() member in main::Provider
272 mFrameSize(frameSize), in main()
297 buffer->raw = (char *)mAddr + mFrameSize * mNextFrame; in main()
/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp384 mFrameSize(channelCount * audio_bytes_per_sample(format)), in TimestretchBufferProvider()
431 if (posix_memalign(&newmem, 32, pBuffer->frameCount * mFrameSize) == OK) { in getNextBuffer()
433 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer()
467 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer()
495 (uint8_t*)mLocalBufferData + pBuffer->frameCount * mFrameSize, in releaseBuffer()
496 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer()
548 size_t copySize = mFrameSize * *dstFrames; in processFrames()
554 memcpy((uint8_t*)dstBuffer + mFrameSize * count, in processFrames()
555 srcBuffer, mFrameSize * remaining); in processFrames()
561 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
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/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/libstagefright/
DAudioPlayer.cpp45 mFrameSize(0), in AudioPlayer()
201 mFrameSize = mAudioSink->frameSize(); in start()
260 mFrameSize = mAudioTrack->frameSize(); in start()
568 ((mNumFramesPlayed + size_done / mFrameSize) * 1000000) in fillBuffer()
610 mNumFramesPlayed += size_done / mFrameSize; in fillBuffer()
/frameworks/av/services/audioflinger/
DTracks.cpp89 mFrameSize(audio_has_proportional_frames(format) ? in TrackBase()
116 || mFrameSize == 0 // format needs to be correct in TrackBase()
117 || minBufferSize > SIZE_MAX / mFrameSize) { in TrackBase()
121 minBufferSize *= mFrameSize; in TrackBase()
422 mFrameSize, !isExternalTrack(), sampleRate); in Track()
425 mFrameSize); in Track()
1274 mClientProxy = new AudioTrackClientProxy(mCblk, mBuffer, mFrameCount, mFrameSize, in OutputTrack()
1361 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize); in write()
1368 pInBuffer->raw = (int8_t *)pInBuffer->raw + outFrames * mFrameSize; in write()
1370 mOutBuffer.raw = (int8_t *)mOutBuffer.raw + outFrames * mFrameSize; in write()
[all …]
DThreads.cpp828 dprintf(fd, " Processing frame size: %zu bytes\n", mFrameSize); in dumpBase()
2340 mFrameSize = mOutput->getFrameSize(); in readOutputParameters_l()
2344 mFrameCount = mBufferSize / mFrameSize; in readOutputParameters_l()
2379 mFrameSize = mChannelCount * audio_bytes_per_sample(mFormat); in readOutputParameters_l()
2380 mBufferSize = mFrameSize * mFrameCount; in readOutputParameters_l()
2436 const size_t sinkBufferSize = mNormalFrameCount * mFrameSize; in readOutputParameters_l()
2480 int64_t framesWritten = mBytesWritten / mFrameSize; in getRenderPosition()
2648 const size_t count = mBytesRemaining / mFrameSize; in threadLoop_write()
2664 bytesWritten = framesWritten * mFrameSize; in threadLoop_write()
2752 mSinkBufferSize = mNormalFrameCount * mFrameSize; in cacheParameters_l()
[all …]
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp222 mFrameSize = channelCount * audio_bytes_per_sample(format); in set()
224 mFrameSize = sizeof(uint8_t); in set()
772 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in openRecord_l()
887 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer()
899 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer()
939 while (userSize >= mFrameSize) { in read()
940 audioBuffer.frameCount = userSize / mFrameSize; in read()
963 mFramesRead += read / mFrameSize; in read()
1168 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.h64 size_t mFrameSize; member
/frameworks/av/include/media/
DAudioRecord.h243 size_t frameSize() const { return mFrameSize; } in frameSize()
623 size_t mFrameSize; // app-level frame size == AudioFlinger frame size variable
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h243 size_t frameSize() const { return mFrameSize; } in frameSize()
623 size_t mFrameSize; // app-level frame size == AudioFlinger frame size variable

12