Home
last modified time | relevance | path

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

12

/frameworks/av/media/codec2/components/gsm/
DC2SoftGsmDec.cpp144 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/module/codecs/g711/decoder/
Dg711DecAlaw.cpp20 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()
Dg711DecMlaw.cpp20 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()
Dg711Dec.h31 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/g711/
DC2SoftG711Dec.cpp149 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/amr_nb_wb/
DC2SoftAmrNbEnc.cpp196 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()
DC2SoftAmrDec.cpp221 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()
DC2SoftAmrWbEnc.cpp277 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/vorbis/
DC2SoftVorbisDec.cpp240 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()
354 if (inSize < sizeof(numPageFrames)) { in process()
355 ALOGE("input header has size %zu, expected %zu", inSize, sizeof(numPageFrames)); in process()
360 memcpy(&numPageFrames, data + inSize - sizeof(numPageFrames), sizeof(numPageFrames)); in process()
[all …]
/frameworks/av/media/codec2/components/mp3/
DC2SoftMp3Dec.cpp282 static status_t calculateOutSize(uint8 *header, size_t inSize, in calculateOutSize() argument
289 while (totalInSize + 4 < inSize) { in calculateOutSize()
352 size_t inSize = 0u; in process() local
356 inSize = rView.capacity(); in process()
357 if (inSize && rView.error()) { in process()
364 if (inSize == 0 && (!mGaplessBytes || !eos)) { in process()
370 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process()
376 if (inSize && OK != calculateOutSize(const_cast<uint8 *>(rView.data()), in process()
377 inSize, &decodedSizes)) { in process()
406 while (inPos < inSize) { in process()
[all …]
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusDec.cpp224 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()
DC2SoftOpusEnc.cpp339 size_t inSize = 0u; in process() local
344 inSize = rView.capacity(); in process()
345 if (inSize && rView.error()) { in process()
353 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
364 if (mIsFirstFrame && inSize > 0) { in process()
371 kMaxPayload * ((inSize + mNumPcmBytesPerInputFrame) / mNumPcmBytesPerInputFrame); in process()
473 while (inPos < inSize) { in process()
476 if ((inPos + (mNumPcmBytesPerInputFrame - mFilledLen)) <= inSize) { in process()
480 processSize = inSize - inPos; in process()
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.h55 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);
DSoftG711.cpp338 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()
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacDec.cpp192 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()
229 status_t decoderErr = mFLACDecoder->parseMetadata(input, inSize); in process()
300 input, inSize, wView.data(), &outSize, outputFloat); in process()
DC2SoftFlacEnc.cpp224 size_t inSize = 0u; in process() local
227 inSize = rView.capacity(); in process()
228 if (inSize && rView.error()) { in process()
236 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
238 if (mIsFirstFrame && inSize) { in process()
264 size_t outCapacity = inSize; in process()
312 while (inPos < inSize) { in process()
314 const size_t processSize = MIN(kInBlockSize * frameSize, (inSize - inPos)); in process()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Dec.cpp439 size_t inSize = 0u; in process() local
444 inSize = rView.capacity(); in process()
445 if (inSize && rView.error()) { in process()
452 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
456 if (inSize == 0) { in process()
480 vol_size = inSize; in process()
524 while (inPos < inSize) { in process()
554 int32_t tmpInSize = (int32_t)inSize; in process()
622 inPos += inSize - (size_t)tmpInSize; in process()
625 if (inSize - inPos != 0) { in process()
[all …]
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DSoftGSM.cpp317 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()
DSoftGSM.h58 static int DecodeGSM(gsm handle, int16_t *out, uint8_t *in, size_t inSize);
/frameworks/av/media/codec2/components/aom/
DC2SoftAomDec.cpp436 size_t inSize = 0u; in process() local
441 inSize = rView.capacity(); in process()
442 if (inSize && rView.error()) { in process()
454 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
463 if (inSize) { in process()
466 DUMP_TO_FILE(mOutFile, bitstream, inSize); in process()
471 aom_codec_decode(mCodecCtx, bitstream, inSize, &frameIndex); in process()
500 } else if (!inSize) { in process()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxDec.cpp631 size_t inSize = 0u; in process() local
635 inSize = rView.capacity(); in process()
636 if (inSize && rView.error()) { in process()
647 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
665 if (inSize) { in process()
668 mCodecCtx, bitstream, inSize, &work->input.ordinal.frameIndex, 0); in process()
680 if (inSize > 0) { in process()
684 inSize = 0; in process()
690 inSize = 0; in process()
696 } else if (!inSize) { in process()
/frameworks/av/media/module/codecs/mp3dec/fuzzer/
Dmp3_dec_fuzzer.cpp134 static bool checkHeader(uint8 *header, size_t inSize) { in checkHeader() argument
139 while (totalInSize + 4 < inSize) { in checkHeader()
/frameworks/av/media/module/codecs/mp3dec/src/
Dpvmp3_framedecoder.cpp313 static ERROR_CODE validate_input(uint8 *buf, uint32 inSize) in validate_input() argument
319 if (inSize < ((SYNC_WORD_LNGTH + 21) >> 3)) in validate_input()
326 while (totalInSize <= (inSize - 4)) { in validate_input()
331 if ((frameSize > inSize) || (totalInSize > (inSize - frameSize))) { in validate_input()
/frameworks/av/media/codec2/components/mpeg2/
DC2SoftMpeg2Dec.cpp595 size_t inSize, in setDecodeArgs() argument
617 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
895 size_t inSize = 0u; in process() local
900 inSize = rView.capacity(); in process()
901 if (inSize && rView.error()) { in process()
911 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
914 while (inPos < inSize) { in process()
931 inOffset + inPos, inSize - inPos, workIndex)) { in process()
1019 if (hasPicture && (inSize - inPos) != 0) { in process()
1021 (int)inSize - (int)inPos); in process()
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcDec.cpp526 size_t inSize, in setDecodeArgs() argument
548 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
819 size_t inSize = 0u; in process() local
824 inSize = rView.capacity(); in process()
825 if (inSize && rView.error()) { in process()
835 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
838 while (inPos < inSize) { in process()
856 inOffset + inPos, inSize - inPos, workIndex)) { in process()
962 if (hasPicture && (inSize - inPos)) { in process()
964 (int)inSize - (int)inPos); in process()

12