Home
last modified time | relevance | path

Searched refs:inSize (Results 1 – 25 of 31) 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/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.cpp340 size_t inSize = 0u; in process() local
345 inSize = rView.capacity(); in process()
346 if (inSize && rView.error()) { in process()
354 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
365 if (mIsFirstFrame && inSize > 0) { in process()
472 while (inPos < inSize) { in process()
475 if ((inPos + (mNumPcmBytesPerInputFrame - mFilledLen)) <= inSize) { in process()
479 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.cpp213 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()
276 while (inPos < inSize) { in process()
278 const size_t processSize = MIN(kInBlockSize * frameSize, (inSize - inPos)); in process()
/frameworks/av/media/codec2/components/mpeg4_h263/
DC2SoftMpeg4Dec.cpp437 size_t inSize = 0u; in process() local
442 inSize = rView.capacity(); in process()
443 if (inSize && rView.error()) { in process()
450 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
454 if (inSize == 0) { in process()
477 vol_size = inSize; in process()
520 while (inPos < inSize) { in process()
550 int32_t tmpInSize = (int32_t)inSize; in process()
617 inPos += inSize - (size_t)tmpInSize; in process()
620 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/vpx/
DC2SoftVpxDec.cpp595 size_t inSize = 0u; in process() local
599 inSize = rView.capacity(); in process()
600 if (inSize && rView.error()) { in process()
611 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
629 if (inSize) { in process()
632 mCodecCtx, bitstream, inSize, &work->input.ordinal.frameIndex, 0); in process()
644 if (inSize > 0) { in process()
648 inSize = 0; in process()
654 inSize = 0; in process()
660 } else if (!inSize) { in process()
/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/hevc/
DC2SoftHevcDec.cpp522 size_t inSize, in setDecodeArgs() argument
544 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
812 size_t inSize = 0u; in process() local
817 inSize = rView.capacity(); in process()
818 if (inSize && rView.error()) { in process()
828 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
831 while (inPos < inSize) { in process()
849 inOffset + inPos, inSize - inPos, workIndex)) { in process()
954 if (hasPicture && (inSize - inPos)) { in process()
956 (int)inSize - (int)inPos); in process()
/frameworks/av/media/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/codec2/components/avc/
DC2SoftAvcDec.cpp529 size_t inSize, in setDecodeArgs() argument
551 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
817 size_t inSize = 0u; in process() local
822 inSize = rView.capacity(); in process()
823 if (inSize && rView.error()) { in process()
833 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
836 while (inPos < inSize && inSize - inPos >= kMinInputBytes) { in process()
856 inOffset + inPos, inSize - inPos, workIndex)) { in process()
/frameworks/av/media/codec2/components/mpeg2/
DC2SoftMpeg2Dec.cpp590 size_t inSize, in setDecodeArgs() argument
612 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
887 size_t inSize = 0u; in process() local
892 inSize = rView.capacity(); in process()
893 if (inSize && rView.error()) { in process()
903 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
906 while (inPos < inSize) { in process()
923 inOffset + inPos, inSize - inPos, workIndex)) { in process()
1011 if (hasPicture && (inSize - inPos) != 0) { in process()
1013 (int)inSize - (int)inPos); in process()

12