/frameworks/av/media/codec2/components/gsm/ |
D | C2SoftGsmDec.cpp | 144 uint8_t *in, size_t inSize) { in decodeGSM() argument 147 if (inSize % MSGSM_IN_FRM_SZ == 0 in decodeGSM() 148 && (inSize / MSGSM_IN_FRM_SZ * MSGSM_OUT_FRM_SZ * sizeof(*out) in decodeGSM() 150 while (inSize > 0) { in decodeGSM() 153 inSize -= FRGSM_IN_FRM_SZ; in decodeGSM() 159 inSize -= FRGSM_IN_FRM_SZ_MINUS_1; in decodeGSM() 184 size_t inSize = 0u; in process() local 187 inSize = rView.capacity(); in process() 188 if (inSize && rView.error()) { in process() 195 if (inSize == 0) { in process() [all …]
|
/frameworks/av/media/codecs/g711/decoder/ |
D | g711DecAlaw.cpp | 20 void DecodeALaw(int16_t *out, const uint8_t *in, size_t inSize) { in DecodeALaw() argument 22 while (inSize > 0) { in DecodeALaw() 23 inSize--; in DecodeALaw()
|
D | g711DecMlaw.cpp | 20 void DecodeMLaw(int16_t *out, const uint8_t *in, size_t inSize) { in DecodeMLaw() argument 22 while (inSize > 0) { in DecodeMLaw() 23 inSize--; in DecodeMLaw()
|
D | g711Dec.h | 31 void DecodeALaw(int16_t *out, const uint8_t *in, size_t inSize); 39 void DecodeMLaw(int16_t *out, const uint8_t *in, size_t inSize);
|
/frameworks/av/media/codec2/components/amr_nb_wb/ |
D | C2SoftAmrNbEnc.cpp | 196 size_t inSize = 0u; in process() local 200 inSize = rView.capacity(); in process() 201 if (inSize && rView.error()) { in process() 209 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 213 outCapacity += mFilledLen + inSize; in process() 232 while (inPos < inSize) { in process() 235 if ((inPos + (kNumBytesPerInputFrame - mFilledLen)) <= inSize) { in process() 240 memcpy(mInputFrame + validSamples, inPtr + inPos, (inSize - inPos)); in process() 241 mFilledLen += (inSize - inPos); in process() 242 inPos += (inSize - inPos); in process()
|
D | C2SoftAmrDec.cpp | 221 static status_t calculateNumFrames(const uint8 *input, size_t inSize, in calculateNumFrames() argument 223 for (size_t k = 0; k < inSize;) { in calculateNumFrames() 229 if ((inSize - k) >= frameSize) { in calculateNumFrames() 254 size_t inSize = 0u; in process() local 257 inSize = rView.capacity(); in process() 258 if (inSize && rView.error()) { in process() 266 if (inSize == 0) { in process() 277 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process() 281 if (OK != calculateNumFrames(rView.data() + inOffset, inSize, &frameSizeList, in process() 315 while (inPos < inSize) { in process()
|
D | C2SoftAmrWbEnc.cpp | 277 size_t inSize = 0u; in process() local 281 inSize = rView.capacity(); in process() 282 if (inSize && rView.error()) { in process() 291 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 295 outCapacity += mFilledLen + inSize; in process() 314 while (inPos < inSize) { in process() 317 if ((inPos + (kNumBytesPerInputFrame - mFilledLen)) <= inSize) { in process() 322 memcpy(mInputFrame + validSamples, inPtr + inPos, (inSize - inPos)); in process() 323 mFilledLen += (inSize - inPos); in process() 324 inPos += (inSize - inPos); in process()
|
/frameworks/av/media/codec2/components/g711/ |
D | C2SoftG711Dec.cpp | 149 size_t inSize = 0u; in process() local 152 inSize = rView.capacity(); in process() 153 if (inSize && rView.error()) { in process() 160 int outSize = inSize * sizeof(int16_t); in process() 162 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process() 165 if (inSize == 0) { in process() 195 DecodeALaw(outputptr, inputptr, inSize); in process() 197 DecodeMLaw(outputptr, inputptr, inSize); in process()
|
/frameworks/av/media/codec2/components/vorbis/ |
D | C2SoftVorbisDec.cpp | 240 size_t inSize = 0u; in process() local 244 inSize = rView.capacity(); in process() 245 if (inSize && rView.error()) { in process() 252 if (inSize == 0) { in process() 261 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process() 267 if (inSize > 7 && !memcmp(&data[1], "vorbis", 6) && (!mInfoUnpacked || !mBooksUnpacked)) { in process() 280 makeBitReader((const uint8_t *)data + 7, inSize - 7, &buf, &ref, &bits); in process() 350 if (inSize < sizeof(numPageFrames)) { in process() 351 ALOGE("input header has size %zu, expected %zu", inSize, sizeof(numPageFrames)); in process() 356 memcpy(&numPageFrames, data + inSize - sizeof(numPageFrames), sizeof(numPageFrames)); in process() [all …]
|
/frameworks/av/media/codec2/components/mp3/ |
D | C2SoftMp3Dec.cpp | 281 static status_t calculateOutSize(uint8 *header, size_t inSize, in calculateOutSize() argument 288 while (totalInSize + 4 < inSize) { in calculateOutSize() 344 size_t inSize = 0u; in process() local 348 inSize = rView.capacity(); in process() 349 if (inSize && rView.error()) { in process() 356 if (inSize == 0 && (!mGaplessBytes || !eos)) { in process() 362 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process() 368 if (inSize && OK != calculateOutSize(const_cast<uint8 *>(rView.data()), in process() 369 inSize, &decodedSizes)) { in process() 398 while (inPos < inSize) { in process() [all …]
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusDec.cpp | 224 size_t inSize = 0u; in process() local 228 inSize = rView.capacity(); in process() 229 if (inSize && rView.error()) { in process() 235 if (inSize == 0) { in process() 244 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process() 256 if (!GetOpusHeaderBuffers(data, inSize, &opusHeadBuf, in process() 320 if (inSize < 8) { in process() 396 inSize, in process()
|
D | C2SoftOpusEnc.cpp | 314 size_t inSize = 0u; in process() local 319 inSize = rView.capacity(); in process() 320 if (inSize && rView.error()) { in process() 328 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 339 if (mIsFirstFrame && inSize > 0) { in process() 446 while (inPos < inSize) { in process() 449 if ((inPos + (mNumPcmBytesPerInputFrame - mFilledLen)) <= inSize) { in process() 453 processSize = inSize - inPos; in process()
|
/frameworks/av/media/libstagefright/codecs/g711/dec/ |
D | SoftG711.cpp | 338 int16_t *out, const uint8_t *in, size_t inSize) { in DecodeALaw() argument 339 while (inSize > 0) { in DecodeALaw() 340 inSize--; in DecodeALaw() 365 int16_t *out, const uint8_t *in, size_t inSize) { in DecodeMLaw() argument 366 while (inSize > 0) { in DecodeMLaw() 367 inSize--; in DecodeMLaw()
|
D | SoftG711.h | 55 static void DecodeALaw(int16_t *out, const uint8_t *in, size_t inSize); 56 static void DecodeMLaw(int16_t *out, const uint8_t *in, size_t inSize);
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacDec.cpp | 192 size_t inSize = 0u; in process() local 195 inSize = rView.capacity(); in process() 196 if (inSize && rView.error()) { in process() 205 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process() 208 if (inSize == 0) { in process() 224 status_t decoderErr = mFLACDecoder->parseMetadata(input, inSize); in process() 295 input, inSize, wView.data(), &outSize, outputFloat); in process()
|
D | C2SoftFlacEnc.cpp | 213 size_t inSize = 0u; in process() local 216 inSize = rView.capacity(); in process() 217 if (inSize && rView.error()) { in process() 225 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 227 if (mIsFirstFrame && inSize) { in process() 255 size_t outCapacity = inSize; in process() 275 while (inPos < inSize) { in process() 277 const size_t processSize = MIN(kInBlockSize * frameSize, (inSize - inPos)); in process()
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Dec.cpp | 516 size_t inSize = 0u; in process() local 521 inSize = rView.capacity(); in process() 522 if (inSize && rView.error()) { in process() 529 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 533 if (inSize == 0) { in process() 556 vol_size = inSize; in process() 599 while (inPos < inSize) { in process() 629 int32_t tmpInSize = (int32_t)inSize; in process() 687 inPos += inSize - (size_t)tmpInSize; in process() 690 if (inSize - inPos != 0) { in process() [all …]
|
/frameworks/av/media/libstagefright/codecs/gsm/dec/ |
D | SoftGSM.cpp | 317 int16_t *out, uint8_t *in, size_t inSize) { in DecodeGSM() argument 320 while (inSize > 0) { in DecodeGSM() 323 inSize -= 33; in DecodeGSM() 328 inSize -= 32; in DecodeGSM()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxDec.cpp | 562 size_t inSize = 0u; in process() local 566 inSize = rView.capacity(); in process() 567 if (inSize && rView.error()) { in process() 578 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 596 if (inSize) { in process() 599 mCodecCtx, bitstream, inSize, &work->input.ordinal.frameIndex, 0); in process() 611 if (inSize > 0) { in process() 615 inSize = 0; in process() 621 inSize = 0; in process() 627 } else if (!inSize) { in process()
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcDec.cpp | 515 size_t inSize, in setDecodeArgs() argument 537 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs() 806 size_t inSize = 0u; in process() local 811 inSize = rView.capacity(); in process() 812 if (inSize && rView.error()) { in process() 822 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 825 while (inPos < inSize) { in process() 841 inOffset + inPos, inSize - inPos, workIndex)) { in process() 948 if (hasPicture && (inSize - inPos)) { in process() 950 (int)inSize - (int)inPos); in process()
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 435 size_t inSize = 0u; in process() local 440 inSize = rView.capacity(); in process() 441 if (inSize && rView.error()) { in process() 453 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 462 if (inSize) { in process() 467 DUMP_TO_FILE(mOutFile, bitstream, inSize); in process() 472 aom_codec_decode(mCodecCtx, bitstream, inSize, &frameIndex); in process() 501 } else if (!inSize) { in process()
|
/frameworks/av/media/libstagefright/codecs/mp3dec/fuzzer/ |
D | mp3_dec_fuzzer.cpp | 134 static bool checkHeader(uint8 *header, size_t inSize) { in checkHeader() argument 139 while (totalInSize + 4 < inSize) { in checkHeader()
|
/frameworks/av/media/codec2/components/gav1/ |
D | C2SoftGav1Dec.cpp | 401 size_t inSize = 0u; in process() local 405 inSize = rView.capacity(); in process() 406 if (inSize && rView.error()) { in process() 417 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d, flags %x", inSize, in process() 427 if (inSize) { in process() 436 mCodecCtx->EnqueueFrame(bitstream, inSize, frameIndex); in process() 468 } else if (!inSize) { in process()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcDec.cpp | 519 size_t inSize, in setDecodeArgs() argument 541 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs() 808 size_t inSize = 0u; in process() local 813 inSize = rView.capacity(); in process() 814 if (inSize && rView.error()) { in process() 824 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 827 while (inPos < inSize && inSize - inPos >= kMinInputBytes) { in process() 845 inOffset + inPos, inSize - inPos, workIndex)) { in process()
|
/frameworks/av/media/codec2/components/mpeg2/ |
D | C2SoftMpeg2Dec.cpp | 582 size_t inSize, in setDecodeArgs() argument 604 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs() 880 size_t inSize = 0u; in process() local 885 inSize = rView.capacity(); in process() 886 if (inSize && rView.error()) { in process() 896 inSize, (int)work->input.ordinal.timestamp.peeku(), in process() 899 while (inPos < inSize) { in process() 916 inOffset + inPos, inSize - inPos, workIndex)) { in process() 1006 if (hasPicture && (inSize - inPos) != 0) { in process() 1008 (int)inSize - (int)inPos); in process()
|