/frameworks/av/media/libstagefright/id3/ |
D | ID3.cpp | 419 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/ |
D | Pipe.cpp | 58 memcpy((char *) mBuffer + (rear * mFrameSize), buffer, written * mFrameSize); in write() 64 memcpy(mBuffer, (char *) buffer + (written * mFrameSize), count * mFrameSize); in write()
|
D | MonoPipeReader.cpp | 62 memcpy(buffer, (char *) mPipe->mBuffer + (front * mFrameSize), part1 * mFrameSize); in read() 66 memcpy((char *) buffer + (part1 * mFrameSize), mPipe->mBuffer, part2 * mFrameSize); in read()
|
D | PipeReader.cpp | 84 memcpy(buffer, (char *) mPipe.mBuffer + (front * mFrameSize), red * mFrameSize); in read() 91 memcpy((char *) buffer + (red * mFrameSize), mPipe.mBuffer, count * mFrameSize); in read()
|
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 | MonoPipe.cpp | 86 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()
|
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 | 51 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()
|
D | AudioStreamOutSink.cpp | 48 mFrameSize = Format_frameSize(mFormat); in negotiate() 59 ssize_t ret = mStream->write(mStream, buffer, count * mFrameSize); in write() 61 ret /= 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/services/audioflinger/ |
D | BufferProviders.cpp | 329 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()
|
D | Tracks.cpp | 92 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 …]
|
D | test-resample.cpp | 263 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()
|
D | Threads.cpp | 946 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/ |
D | test_utils.h | 99 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/ |
D | NBAIO.h | 62 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
|
D | AudioStreamOutSink.h | 46 virtual ssize_t availableToWrite() const { return mStreamBufferSizeBytes / mFrameSize; } in availableToWrite()
|
D | SourceAudioBufferProvider.h | 44 /*const*/ size_t mFrameSize; // frame size in bytes variable
|
D | AudioStreamInSource.h | 46 virtual ssize_t availableToRead() { return mStreamBufferSizeBytes / mFrameSize; } in availableToRead()
|
/frameworks/av/media/libstagefright/ |
D | AudioPlayer.cpp | 45 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/ |
D | AudioRecord.cpp | 219 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()
|
D | AudioTrack.cpp | 419 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/ |
D | AudioRecord.h | 243 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/ |
D | ID3.h | 64 size_t mFrameSize; member
|
/frameworks/av/include/media/stagefright/ |
D | AudioPlayer.h | 76 size_t mFrameSize; variable
|