/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | C2Encoder.cpp | 116 int32_t frameSize = 0; in encodeFrames() local 118 frameSize = mWidth * mHeight * 3 / 2; in encodeFrames() 120 frameSize = DEFAULT_AUDIO_FRAME_SIZE; in encodeFrames() 122 if (frameSize > mInputMaxBufSize) { in encodeFrames() 123 frameSize = mInputMaxBufSize; in encodeFrames() 126 int32_t numFrames = (inputBufferSize + frameSize - 1) / frameSize; in encodeFrames() 128 char *data = (char *)malloc(frameSize); in encodeFrames() 157 presentationTimeUs = mNumInputFrame * frameSize * (1000000 / mSampleRate); in encodeFrames() 169 if (inputBufferSize - offset < frameSize) { in encodeFrames() 170 frameSize = inputBufferSize - offset; in encodeFrames() [all …]
|
D | Encoder.cpp | 50 size_t bytesToRead = mParams.frameSize; in onInputAvailable() 51 if (mInputBufferSize - mOffset < mParams.frameSize) { in onInputAvailable() 57 mParams.frameSize = bufSize; in onInputAvailable() 59 mParams.numFrames = (mInputBufferSize + mParams.frameSize - 1) / mParams.frameSize; in onInputAvailable() 68 if (bytesToRead < mParams.frameSize && mNumInputFrame < mParams.numFrames - 1) { in onInputAvailable() 70 mNumInputFrame, bytesToRead, mParams.frameSize, mParams.numFrames); in onInputAvailable() 97 (uint64_t)mNumInputFrame * mParams.frameSize * 1000000 / mParams.sampleRate; in onInputAvailable() 228 mParams.frameSize = mParams.width * mParams.height * 3 / 2; in encode() 230 mParams.frameSize = kDefaultAudioEncodeFrameSize; in encode() 237 if (mParams.frameSize > mParams.maxFrameSize) { in encode() [all …]
|
/frameworks/wilhelm/src/android/util/ |
D | AacAdtsExtractor.cpp | 50 size_t frameSize = 0; in getFrameSize() local 75 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5; in getFrameSize() 82 if (headSize > frameSize) { in getFrameSize() 84 frameSize, headSize); in getFrameSize() 90 return frameSize; in getFrameSize() 137 size_t frameSize; in AacAdtsExtractor() local 138 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) { in AacAdtsExtractor() 147 offset += frameSize; in AacAdtsExtractor() 150 frameSize, (long long) offset, (long long) streamSize); in AacAdtsExtractor() 244 size_t frameSize, frameSizeWithoutHeader; in read() local [all …]
|
/frameworks/av/media/extractors/amr/ |
D | AMRExtractor.cpp | 93 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT]; in getFrameSize() local 96 frameSize = (frameSize + 7) / 8 + 1; in getFrameSize() 98 return frameSize; in getFrameSize() 102 off64_t offset, bool isWide, size_t *frameSize) { in getFrameSizeByOffset() argument 113 *frameSize = getFrameSize(isWide, FT); in getFrameSizeByOffset() 114 if (*frameSize == 0) { in getFrameSizeByOffset() 166 size_t frameSize, numFrames = 0; in AMRExtractor() local 171 status_t status = getFrameSizeByOffset(source, offset, mIsWide, &frameSize); in AMRExtractor() 184 offset += frameSize; in AMRExtractor() 339 size_t frameSize = getFrameSize(mIsWide, FT); in read() local [all …]
|
/frameworks/wilhelm/src/android/ |
D | AacBqToPcmCbRenderer.cpp | 40 size_t frameSize = 0; in getAdtsFrameSize() local 57 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5; in getAdtsFrameSize() 64 if (headSize > frameSize) { in getAdtsFrameSize() 66 frameSize, headSize); in getAdtsFrameSize() 70 SL_LOGV("AacBqToPcmCbRenderer::getAdtsFrameSize() returns %u", frameSize); in getAdtsFrameSize() 72 return frameSize; in getAdtsFrameSize() 87 size_t frameSize = 0; in validateBufferStartEndOnFrameBoundaries() local 95 if ((frameSize = getAdtsFrameSize((uint8_t *)data, offset, size)) == 0) { in validateBufferStartEndOnFrameBoundaries() 100 offset += frameSize; in validateBufferStartEndOnFrameBoundaries()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | AAMRAssembler.cpp | 92 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT]; in getFrameSize() local 95 frameSize = (frameSize + 7) / 8 + 1; in getFrameSize() 97 return frameSize; in getFrameSize() 192 size_t frameSize = getFrameSize(mIsWide, (toc >> 3) & 0x0f); in addPacket() local 194 if (offset + frameSize - 1 > buffer->size()) { in addPacket() 205 buffer->data() + offset, frameSize - 1); in addPacket() 207 offset += frameSize - 1; in addPacket() 208 dstOffset += frameSize - 1; in addPacket()
|
/frameworks/av/media/libnbaio/ |
D | NBAIO.cpp | 70 size_t frameSize = Format_frameSize(mFormat); in writeVia() local 71 ALOG_ASSERT(frameSize > 0 && frameSize <= 8); in writeVia() 76 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in writeVia() 106 size_t frameSize = Format_frameSize(mFormat); in readVia() local 107 ALOG_ASSERT(frameSize > 0 && frameSize <= 8); in readVia() 112 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in readVia()
|
/frameworks/av/media/codecs/amrnb/fuzzer/ |
D | amrnb_dec_fuzzer.cpp | 55 int32_t frameSize = 0; in decodeFrames() local 61 frameSize = kLocalIf2DecBytesPerFrame[frameType]; in decodeFrames() 63 frameSize = kLocalWmfDecBytesPerFrame[frameType]; in decodeFrames() 66 uint8_t *inputBuf = new uint8_t[frameSize]; in decodeFrames() 70 int32_t minSize = std::min((int32_t)size, frameSize); in decodeFrames()
|
/frameworks/av/media/extractors/aac/ |
D | AACExtractor.cpp | 99 size_t frameSize = 0; in getAdtsFrameLength() local 120 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5; in getAdtsFrameLength() 124 if (headSize > frameSize) { in getAdtsFrameLength() 131 return frameSize; in getAdtsFrameLength() 159 size_t frameSize = 0; in AACExtractor() local 164 if ((frameSize = getAdtsFrameLength(source, offset, NULL)) == 0) { in AACExtractor() 172 offset += frameSize; in AACExtractor() 308 size_t frameSize, frameSizeWithoutHeader, headerSize; in read() local 309 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) { in read() 319 frameSizeWithoutHeader = frameSize - headerSize; in read() [all …]
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 291 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut, 326 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 448 size_t frameSize, bool clientInServer = false) 449 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, 505 size_t frameSize); 561 size_t frameSize) 562 : ClientProxy(cblk, buffers, frameCount, frameSize, 582 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, 665 size_t frameSize, bool clientInServer, uint32_t sampleRate) 666 : ServerProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, clientInServer), [all …]
|
/frameworks/av/media/libstagefright/ |
D | SkipCutBuffer.cpp | 38 size_t frameSize = num16BitChannels * 2; in SkipCutBuffer() local 39 if (skip > INT32_MAX / frameSize || cut > INT32_MAX / frameSize in SkipCutBuffer() 40 || cut * frameSize > INT32_MAX - 4096) { in SkipCutBuffer() 45 skip *= frameSize; in SkipCutBuffer() 46 cut *= frameSize; in SkipCutBuffer()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/ |
D | SoftAMR.cpp | 333 size_t frameSize = kFrameSizeWB[FT]; in getFrameSize() local 336 frameSize = (frameSize + 7) / 8 + 1; in getFrameSize() 338 return frameSize; in getFrameSize() 397 size_t frameSize = WmfDecBytesPerFrame[mode] + 1; in onQueueFilled() local 399 if (inHeader->nFilledLen < frameSize) { in onQueueFilled() 400 ALOGE("b/27662364: expected %zu bytes vs %u", frameSize, inHeader->nFilledLen); in onQueueFilled() 454 size_t frameSize = getFrameSize(mode); in onQueueFilled() local 455 if (inHeader->nFilledLen < frameSize) { in onQueueFilled() 456 ALOGE("b/27662364: expected %zu bytes vs %u", frameSize, inHeader->nFilledLen); in onQueueFilled() 490 numBytesRead = frameSize; in onQueueFilled()
|
/frameworks/av/media/codec2/fuzzer/ |
D | C2Fuzzer.cpp | 92 size_t frameSize = bytesRemaining - location; in parse() local 99 mFrameList.emplace_back(std::make_tuple(framePtr, frameSize, flags)); in parse() 100 bytesRemaining -= (frameSize + kMarkerSize + kMarkerSuffixSize); in parse() 251 size_t frameSize = 0; in decodeFrames() local 254 frameSize = std::get<1>(frameData); in decodeFrames() 272 int32_t alignedSize = C2FUZZER_ALIGN(frameSize, PAGE_SIZE); in decodeFrames() 285 memcpy(view.base(), frame, frameSize); in decodeFrames() 286 work->input.buffers.emplace_back(new LinearBuffer(block, frameSize)); in decodeFrames()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | CachedFrameManager.java | 101 int frameSize = frame.getFormat().getSize(); in storeFrame() local 102 if (frameSize > mStorageCapacity) { in storeFrame() 107 int newStorageSize = mStorageSize + frameSize; in storeFrame() 110 newStorageSize = mStorageSize + frameSize; in storeFrame()
|
/frameworks/av/media/codecs/amrwb/dec/fuzzer/ |
D | amrwb_dec_fuzzer.cpp | 75 int32_t frameSize = kFrameSizes[mode]; in decodeFrames() local 77 uint8_t *inputBuf = new uint8_t[frameSize]; in decodeFrames() 81 int32_t minSize = std::min((int32_t)size, frameSize); in decodeFrames()
|
/frameworks/av/cmds/stagefright/ |
D | SineSource.cpp | 73 size_t frameSize = mNumChannels * sizeof(int16_t); in read() local 74 size_t numFramesPerBuffer = buffer->size() / frameSize; in read() 97 buffer->set_range(0, numFramesPerBuffer * frameSize); in read()
|
/frameworks/av/media/codecs/amrnb/dec/test/ |
D | amrnbdec_test.cpp | 123 int32_t frameSize = kFrameSizes[frameType]; in main() local 124 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main() 125 if (bytesRead != frameSize) break; in main()
|
D | AmrnbDecoderTest.cpp | 80 int32_t frameSize = kFrameSizes[frameType]; in DecodeFrames() local 81 if (frameSize < 0) { in DecodeFrames() 85 bytesRead = fread(inputBuf, 1, frameSize, mFpInput); in DecodeFrames() 86 if (bytesRead != frameSize) break; in DecodeFrames()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 300 const uint8_t *ptr, size_t size, unsigned &frameSize, sp<MetaData> *metaData) { in parseAC4SyncFrame() argument 315 frameSize = bits.getBits(16); in parseAC4SyncFrame() 317 if (frameSize == 0xFFFF) { in parseAC4SyncFrame() 318 frameSize = bits.getBits(24); in parseAC4SyncFrame() 322 if (frameSize == 0) { in parseAC4SyncFrame() 326 frameSize += headerSize; in parseAC4SyncFrame() 329 frameSize += 2; // crc_word in parseAC4SyncFrame() 331 ALOGV("AC4 frameSize = %u", frameSize); in parseAC4SyncFrame() 365 static status_t IsSeeminglyValidAC4Header(const uint8_t *ptr, size_t size, unsigned &frameSize) { in IsSeeminglyValidAC4Header() argument 366 return parseAC4SyncFrame(ptr, size, frameSize, NULL); in IsSeeminglyValidAC4Header() [all …]
|
/frameworks/av/media/libstagefright/writer_fuzzers/ |
D | WriterFuzzerBase.cpp | 76 size_t frameSize = bytesRemaining - location, bufferSize = 0; in getFrameInfo() local 81 if (isCSD && frameSize > 1) { in getFrameInfo() 85 bufferSize = frameSize - 1; in getFrameInfo() 86 } else if (frameSize > sizeof(uint8_t) + sizeof(int64_t) + 1) { in getFrameInfo() 91 bufferSize = frameSize - (sizeof(uint8_t) + sizeof(int64_t)) - 1; in getFrameInfo() 97 bytesRemaining -= (frameSize + kMarkerSize + kMarkerSuffixSize); in getFrameInfo()
|
/frameworks/av/media/codecs/m4v_h263/enc/test/ |
D | Mpeg4H263EncoderTest.cpp | 150 int32_t frameSize = (mFrameWidth * mFrameHeight * 3) / 2; in getTotalFrames() local 154 int64_t totalFrames = (int64_t)(fileSize/frameSize); in getTotalFrames() 162 int32_t frameSize = (mFrameWidth * mFrameHeight * 3) / 2; in processEncoder() local 164 bytesRead = fread(mInputBuffer, 1, frameSize, mFpInput); in processEncoder() 166 if (bytesRead != frameSize) { in processEncoder()
|
/frameworks/av/media/codecs/amrwb/dec/test/ |
D | amrwbdec_test.cpp | 133 int32_t frameSize = kFrameSizes[mode]; in main() local 134 bytesRead = fread(inputBuf, 1, frameSize, fpInput); in main() 135 if (bytesRead != frameSize) break; in main()
|
D | AmrwbDecoderTest.cpp | 91 int32_t frameSize = kFrameSizes[mode]; in DecodeFrames() local 93 if (frameSize < 0) { in DecodeFrames() 97 bytesRead = fread(inputBuf, 1, frameSize, mFpInput); in DecodeFrames() 98 if (bytesRead != frameSize) break; in DecodeFrames()
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
D | SoftAAC2.cpp | 306 aacParams->nFrameLength = mStreamInfo->frameSize; in internalGetParameter() 827 (mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled() 858 mStreamInfo->frameSize * sizeof(int16_t) * mStreamInfo->numChannels; in onQueueFilled() 862 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled() 873 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled() 990 int32_t tmpOutBufferSamples = mStreamInfo->frameSize * mStreamInfo->numChannels; in onQueueFilled() 1001 >= mStreamInfo->frameSize * mStreamInfo->numChannels) { in onQueueFilled() 1016 + mStreamInfo->frameSize * samplesize in onQueueFilled() 1033 int numFrames = numSamples / (mStreamInfo->frameSize * mStreamInfo->numChannels); in onQueueFilled() 1034 numSamples = numFrames * (mStreamInfo->frameSize * mStreamInfo->numChannels); in onQueueFilled() [all …]
|
/frameworks/av/media/libaudioprocessing/tests/fuzzer/ |
D | libaudioprocessing_fuzz_utils.h | 32 Provider(const void* addr, size_t frames, size_t frameSize) in Provider() argument 35 mFrameSize(frameSize), in Provider()
|