/frameworks/av/cmds/stagefright/ |
H A D | SineSource.cpp | 73 size_t frameSize = mNumChannels * sizeof(int16_t); local 74 size_t numFramesPerBuffer = buffer->size() / frameSize; 97 buffer->set_range(0, numFramesPerBuffer * frameSize);
|
/frameworks/av/media/libstagefright/ |
H A D | SkipCutBuffer.cpp | 38 size_t frameSize = num16BitChannels * 2; local 39 if (skip > INT32_MAX / frameSize || cut > INT32_MAX / frameSize 40 || cut * frameSize > INT32_MAX - 4096) { 45 skip *= frameSize; 46 cut *= frameSize;
|
H A D | AudioSource.cpp | 359 int64_t receievedFrames = bufferSize / mRecord->frameSize(); 388 numLostBytes = mRecord->getInputFramesLost() * mRecord->frameSize(); 410 mNumFramesLost += bufferSize / mRecord->frameSize(); 429 const size_t frameSize = mRecord->frameSize(); local 432 ((1000000LL * (bufferSize / frameSize)) + 442 mNumFramesReceived += bufferSize / frameSize;
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/test/ |
H A D | amrnbdec_test.cpp | 119 int32_t frameSize = kFrameSizes[frameType]; local 120 bytesRead = fread(inputBuf, 1, frameSize, fpInput); 121 if (bytesRead != frameSize) break;
|
/frameworks/wilhelm/src/android/ |
H A D | AacBqToPcmCbRenderer.cpp | 40 size_t frameSize = 0; local 57 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5; 64 if (headSize > frameSize) { 65 SL_LOGE("AacBqToPcmCbRenderer::getAdtsFrameSize() returns 0 (frameSize %zu < headSize %zu)", 66 frameSize, headSize); 70 SL_LOGV("AacBqToPcmCbRenderer::getAdtsFrameSize() returns %u", frameSize); 72 return frameSize; 87 size_t frameSize = 0; local 95 if ((frameSize = getAdtsFrameSize((uint8_t *)data, offset, size)) == 0) { 100 offset += frameSize; [all...] |
/frameworks/av/media/extractors/mp3/ |
H A D | VBRISeeker.cpp | 50 size_t frameSize; local 52 if (!GetMPEGAudioFrameSize(tmp, &frameSize, &sampleRate)) { 112 seeker->mBasePos = post_id3_pos + frameSize;
|
/frameworks/av/media/libnbaio/ |
H A D | NBAIO.cpp | 70 size_t frameSize = Format_frameSize(mFormat); local 71 ALOG_ASSERT(frameSize > 0 && frameSize <= 8); 76 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; 106 size_t frameSize = Format_frameSize(mFormat); local 107 ALOG_ASSERT(frameSize > 0 && frameSize <= 8); 112 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)];
|
/frameworks/av/media/libstagefright/codecs/amrwb/test/ |
H A D | amrwbdec_test.cpp | 132 int32_t frameSize = kFrameSizes[mode]; local 133 bytesRead = fread(inputBuf, 1, frameSize, fpInput); 134 if (bytesRead != frameSize) break;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/ |
H A D | m4v_h263_enc_test.cpp | 199 int32_t frameSize = (width * height * 3) / 2; local 205 bytesRead = fread(inputBuf, 1, frameSize, fpInput); 206 if (bytesRead != frameSize) {
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AAMRAssembler.cpp | 93 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT]; local 96 frameSize = (frameSize + 7) / 8 + 1; 98 return frameSize; 193 size_t frameSize = getFrameSize(mIsWide, (toc >> 3) & 0x0f); local 195 if (offset + frameSize - 1 > buffer->size()) { 206 buffer->data() + offset, frameSize - 1); 208 offset += frameSize - 1; 209 dstOffset += frameSize - 1;
|
H A D | ARTPWriter.cpp | 736 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT]; local 739 frameSize = (frameSize + 7) / 8 + 1; 741 return frameSize; 815 size_t frameSize = getFrameSize(isWide, FT); local 818 memcpy(&data[dstOffset], &mediaData[srcOffset], frameSize - 1); 819 srcOffset += frameSize - 1; 820 dstOffset += frameSize - 1;
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | WmDisplayCutout.java | 39 public WmDisplayCutout(DisplayCutout inner, Size frameSize) { argument 41 mFrameSize = frameSize;
|
/frameworks/av/media/extractors/amr/ |
H A D | AMRExtractor.cpp | 93 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT]; local 96 frameSize = (frameSize + 7) / 8 + 1; 98 return frameSize; 102 off64_t offset, bool isWide, size_t *frameSize) { 113 *frameSize = getFrameSize(isWide, FT); 114 if (*frameSize == 0) { 165 size_t frameSize, numFrames = 0; local 170 status_t status = getFrameSizeByOffset(source, offset, mIsWide, &frameSize); 183 offset += frameSize; 101 getFrameSizeByOffset(DataSourceBase *source, off64_t offset, bool isWide, size_t *frameSize) argument 325 size_t frameSize = getFrameSize(mIsWide, FT); local [all...] |
/frameworks/av/media/libaudioprocessing/tests/ |
H A D | test_utils.h | 101 TestProvider(void* addr, size_t frames, size_t frameSize, argument 105 mFrameSize(frameSize),
|
H A D | test-resampler.cpp | 269 Provider(const void* addr, size_t frames, size_t frameSize, const Vector<int>& Pvalues) argument 272 mFrameSize(frameSize),
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/ |
H A D | SoftAMR.cpp | 336 size_t frameSize = kFrameSizeWB[FT]; local 339 frameSize = (frameSize + 7) / 8 + 1; 341 return frameSize; 400 size_t frameSize = WmfDecBytesPerFrame[mode] + 1; local 402 if (inHeader->nFilledLen < frameSize) { 403 ALOGE("b/27662364: expected %zu bytes vs %u", frameSize, inHeader->nFilledLen); 457 size_t frameSize = getFrameSize(mode); local 458 if (inHeader->nFilledLen < frameSize) { 459 ALOGE("b/27662364: expected %zu bytes vs %u", frameSize, inHeade [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/ |
H A D | SoftMPEG4.cpp | 233 OMX_U32 frameSize; local 241 frameSize = (OMX_U32)(yFrameSize + (yFrameSize / 2)); 243 if (outHeader->nAllocLen < frameSize) { 308 outHeader->nFilledLen = frameSize;
|
/frameworks/av/media/libstagefright/codecs/on2/enc/ |
H A D | SoftVPXEncoder.cpp | 666 size_t frameSize = mWidth * mHeight * 3 / 2; local 669 mConversionBuffer, frameSize,
|
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
H A D | SoftOpus.cpp | 539 size_t frameSize = kMaxOpusOutputPacketSizeSamples; local 540 if (frameSize > outHeader->nAllocLen / sizeof(int16_t) / mHeader->channels) { 541 frameSize = outHeader->nAllocLen / sizeof(int16_t) / mHeader->channels; 549 frameSize,
|
/frameworks/wilhelm/src/android/util/ |
H A D | AacAdtsExtractor.cpp | 50 size_t frameSize = 0; local 75 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5; 82 if (headSize > frameSize) { 83 SL_LOGE("AacAdtsExtractor:: getFrameSize() returns 0 (frameSize %zu < headSize %zu)", 84 frameSize, headSize); 88 //SL_LOGV("AacAdtsExtractor:: getFrameSize() returns %u", frameSize); 90 return frameSize; 137 size_t frameSize; local 138 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) { 139 // Usually frameSize 244 size_t frameSize, frameSizeWithoutHeader; local [all...] |
/frameworks/av/media/extractors/aac/ |
H A D | AACExtractor.cpp | 100 size_t frameSize = 0; local 121 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5; 125 if (headSize > frameSize) { 132 return frameSize; 157 size_t frameSize = 0; local 162 if ((frameSize = getAdtsFrameLength(source, offset, NULL)) == 0) { 170 offset += frameSize; 293 size_t frameSize, frameSizeWithoutHeader, headerSize; local 294 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { 304 frameSizeWithoutHeader = frameSize [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestFeedback.cpp | 367 size_t frameSize = channels * sizeof(short); local 370 fifo = new audio_utils_fifo(FIFO_FRAMES, frameSize, fifoBuffer); 386 fifo2 = new audio_utils_fifo(FIFO2_FRAMES, frameSize, fifo2Buffer);
|
H A D | slesTestRecBuffQueue.cpp | 45 size_t frameSize; variable 122 sf_count_t frameCount = BUFFER_SIZE_IN_BYTES / frameSize; 554 frameSize = audio_bytes_per_sample(transferFormat) * channelCount;
|
/frameworks/av/include/media/ |
H A D | AudioRecord.h | 77 size_t size; // input/output in bytes == frameCount * frameSize 80 // bytes to be read, which is frameCount * frameSize 251 size_t frameSize() const { return mFrameSize; } function in class:android::AudioRecord 498 * size actual number of bytes consumed, must be multiple of frameSize
|
/frameworks/av/media/libaudioclient/ |
H A D | AudioTrackShared.cpp | 59 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, argument 61 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), 70 size_t frameSize, bool isOut, bool clientInServer) 71 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer) 560 size_t frameCount, size_t frameSize) 561 : AudioTrackClientProxy(cblk, buffers, frameCount, frameSize), 657 size_t frameSize, bool isOut, bool clientInServer) 658 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer), 984 size_t frameCount, size_t frameSize) 985 : AudioTrackServerProxy(cblk, buffers, frameCount, frameSize), 69 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut, bool clientInServer) argument 559 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize) argument 656 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut, bool clientInServer) argument 983 StaticAudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize) argument [all...] |