Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/id3/
DID3.cpp419 mFrameSize(0) { in Iterator()
443 mOffset += mFrameSize; in next()
525 id->setTo((const char*)frameData, mFrameSize); in getstring()
529 if (mFrameSize < getHeaderLength() + 1) { in getstring()
532 size_t n = mFrameSize - getHeaderLength() - 1; in getstring()
622 if (mFrameSize < getHeaderLength()) { in getData()
626 *length = mFrameSize - getHeaderLength(); in getData()
645 mFrameSize = 0; in findFrame()
656 mFrameSize = in findFrame()
661 if (mFrameSize == 0) { in findFrame()
[all …]
/frameworks/av/media/libnbaio/
DPipe.cpp58 memcpy((char *) mBuffer + (rear * mFrameSize), buffer, written * mFrameSize); in write()
64 memcpy(mBuffer, (char *) buffer + (written * mFrameSize), count * mFrameSize); in write()
DMonoPipeReader.cpp62 memcpy(buffer, (char *) mPipe->mBuffer + (front * mFrameSize), part1 * mFrameSize); in read()
66 memcpy((char *) buffer + (part1 * mFrameSize), mPipe->mBuffer, part2 * mFrameSize); in read()
DPipeReader.cpp84 memcpy(buffer, (char *) mPipe.mBuffer + (front * mFrameSize), red * mFrameSize); in read()
91 memcpy((char *) buffer + (red * mFrameSize), mPipe.mBuffer, count * mFrameSize); in read()
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()
DMonoPipe.cpp86 memcpy((char *) mBuffer + (rear * mFrameSize), buffer, part1 * mFrameSize); in write()
90 memcpy(mBuffer, (char *) buffer + (part1 * mFrameSize), part2 * mFrameSize); in write()
100 buffer = (char *) buffer + (written * mFrameSize); in write()
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.cpp51 mFrameSize = Format_frameSize(mFormat); in negotiate()
72 ssize_t bytesRead = mStream->read(mStream, buffer, count * mFrameSize); in read()
74 size_t framesRead = bytesRead / mFrameSize; in read()
DAudioStreamOutSink.cpp48 mFrameSize = Format_frameSize(mFormat); in negotiate()
59 ssize_t ret = mStream->write(mStream, buffer, count * mFrameSize); in write()
61 ret /= 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/services/audioflinger/
DBufferProviders.cpp329 mFrameSize(channelCount * audio_bytes_per_sample(format)), in TimestretchBufferProvider()
376 if (posix_memalign(&newmem, 32, pBuffer->frameCount * mFrameSize) == OK) { in getNextBuffer()
378 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer()
412 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer()
440 (uint8_t*)mLocalBufferData + pBuffer->frameCount * mFrameSize, in releaseBuffer()
441 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer()
493 size_t copySize = mFrameSize * *dstFrames; in processFrames()
499 memcpy((uint8_t*)dstBuffer + mFrameSize * count, in processFrames()
500 srcBuffer, mFrameSize * remaining); in processFrames()
506 memset(dstBuffer,0, mFrameSize * *dstFrames); in processFrames()
DTracks.cpp92 mFrameSize(audio_has_proportional_frames(format) ? in TrackBase()
116 size_t bufferSize = (buffer == NULL ? roundup(frameCount) : frameCount) * mFrameSize; in TrackBase()
385 mFrameSize, !isExternalTrack(), sampleRate); in Track()
388 mFrameSize); in Track()
1150 mClientProxy = new AudioTrackClientProxy(mCblk, mBuffer, mFrameCount, mFrameSize, in OutputTrack()
1238 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize); in write()
1245 pInBuffer->raw = (int8_t *)pInBuffer->raw + outFrames * mFrameSize; in write()
1247 mOutBuffer.raw = (int8_t *)mOutBuffer.raw + outFrames * mFrameSize; in write()
1268 pInBuffer->mBuffer = malloc(inBuffer.frameCount * mFrameSize); in write()
1271 memcpy(pInBuffer->raw, inBuffer.raw, inBuffer.frameCount * mFrameSize); in write()
[all …]
Dtest-resample.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()
DThreads.cpp946 dprintf(fd, " Processing frame size: %zu bytes\n", mFrameSize); in dumpBase()
2233 mFrameSize = mOutput->getFrameSize(); in readOutputParameters_l()
2235 mFrameCount = mBufferSize / mFrameSize; in readOutputParameters_l()
2271 mFrameSize = mChannelCount * audio_bytes_per_sample(mFormat); in readOutputParameters_l()
2272 mBufferSize = mFrameSize * mFrameCount; in readOutputParameters_l()
2338 const size_t sinkBufferSize = mNormalFrameCount * mFrameSize; in readOutputParameters_l()
2382 int64_t framesWritten = mBytesWritten / mFrameSize; in getRenderPosition()
2547 const size_t count = mBytesRemaining / mFrameSize; in threadLoop_write()
2563 bytesWritten = framesWritten * mFrameSize; in threadLoop_write()
2646 mSinkBufferSize = mNormalFrameCount * mFrameSize; in cacheParameters_l()
[all …]
/frameworks/av/services/audioflinger/tests/
Dtest_utils.h99 mFrameSize(frameSize),
105 : mAddr(NULL), mNumFrames(0), mFrameSize(0),
137 buffer->raw = (char *)mAddr + mFrameSize * mNextFrame;
177 int mFrameSize; // frame size (# channels * bytes per sample)
288 mFrameSize = mChannels * sizeof(T);
290 mAddr = malloc(mFrameSize * mNumFrames);
/frameworks/av/include/media/nbaio/
DNBAIO.h62 size_t mFrameSize; member
129 mFrameSize(Format_frameSize(format)) { } in NBAIO_Port()
136 size_t mFrameSize; // assign in parallel with any assignment to mFormat variable
DAudioStreamOutSink.h46 virtual ssize_t availableToWrite() const { return mStreamBufferSizeBytes / mFrameSize; } in availableToWrite()
DSourceAudioBufferProvider.h44 /*const*/ size_t mFrameSize; // frame size in bytes variable
DAudioStreamInSource.h46 virtual ssize_t availableToRead() { return mStreamBufferSizeBytes / mFrameSize; } in availableToRead()
/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/media/libmedia/
DAudioRecord.cpp219 mFrameSize = channelCount * audio_bytes_per_sample(format); in set()
221 mFrameSize = sizeof(uint8_t); in set()
714 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in openRecord_l()
833 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer()
845 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer()
885 while (userSize >= mFrameSize) { in read()
886 audioBuffer.frameCount = userSize / mFrameSize; in read()
906 mFramesRead += read / mFrameSize; in read()
1111 size_t releasedFrames = readSize / mFrameSize; in processAudioBuffer()
DAudioTrack.cpp419 mFrameSize = channelCount * audio_bytes_per_sample(format); in set()
421 mFrameSize = sizeof(uint8_t); in set()
425 mFrameSize = channelCount * audio_bytes_per_sample(format); in set()
1346 frameCount = mSharedBuffer->size() / mFrameSize; in createTrack_l()
1528 mProxy = new AudioTrackClientProxy(cblk, buffers, frameCount, mFrameSize); in createTrack_l()
1530 mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, frameCount, mFrameSize); in createTrack_l()
1671 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer()
1686 size_t stepCount = audioBuffer->size / mFrameSize; in releaseBuffer()
1742 while (userSize >= mFrameSize) { in write()
1743 audioBuffer.frameCount = userSize / mFrameSize; in write()
[all …]
/frameworks/av/include/media/
DAudioRecord.h243 size_t frameSize() const { return mFrameSize; } in frameSize()
596 size_t mFrameSize; // app-level frame size == AudioFlinger frame size variable
/frameworks/av/media/libstagefright/include/
DID3.h64 size_t mFrameSize; member
/frameworks/av/include/media/stagefright/
DAudioPlayer.h76 size_t mFrameSize; variable

12