Home
last modified time | relevance | path

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

/hardware/google/av/media/codecs/g711/
DC2SoftG711Dec.cpp155 size_t inSize = 0u; in process() local
158 inSize = rView.capacity(); in process()
159 if (inSize && rView.error()) { in process()
166 int outSize = inSize * sizeof(int16_t); in process()
168 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process()
171 if (inSize == 0) { in process()
201 DecodeALaw(outputptr, inputptr, inSize); in process()
203 DecodeMLaw(outputptr, inputptr, inSize); in process()
235 int16_t *out, const uint8_t *in, size_t inSize) { in DecodeALaw() argument
236 while (inSize > 0) { in DecodeALaw()
[all …]
DC2SoftG711Dec.h49 void DecodeALaw(int16_t *out, const uint8_t *in, size_t inSize);
51 void DecodeMLaw(int16_t *out, const uint8_t *in, size_t inSize);
/hardware/google/av/media/codecs/gsm/
DC2SoftGsmDec.cpp150 uint8_t *in, size_t inSize) { in decodeGSM() argument
153 if (inSize % MSGSM_IN_FRM_SZ == 0 in decodeGSM()
154 && (inSize / MSGSM_IN_FRM_SZ * MSGSM_OUT_FRM_SZ * sizeof(*out) in decodeGSM()
156 while (inSize > 0) { in decodeGSM()
159 inSize -= FRGSM_IN_FRM_SZ; in decodeGSM()
165 inSize -= FRGSM_IN_FRM_SZ_MINUS_1; in decodeGSM()
190 size_t inSize = 0u; in process() local
193 inSize = rView.capacity(); in process()
194 if (inSize && rView.error()) { in process()
201 if (inSize == 0) { in process()
[all …]
/hardware/google/av/media/codecs/amr_nb_wb/
DC2SoftAmrNbEnc.cpp203 size_t inSize = 0u; in process() local
207 inSize = rView.capacity(); in process()
208 if (inSize && rView.error()) { in process()
216 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
220 outCapacity += mFilledLen + inSize; in process()
239 while (inPos < inSize) { in process()
242 if ((inPos + (kNumBytesPerInputFrame - mFilledLen)) <= inSize) { in process()
247 memcpy(mInputFrame + validSamples, inPtr + inPos, (inSize - inPos)); in process()
248 mFilledLen += (inSize - inPos); in process()
249 inPos += (inSize - inPos); in process()
DC2SoftAmrWbEnc.cpp285 size_t inSize = 0u; in process() local
289 inSize = rView.capacity(); in process()
290 if (inSize && rView.error()) { in process()
299 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
303 outCapacity += mFilledLen + inSize; in process()
322 while (inPos < inSize) { in process()
325 if ((inPos + (kNumBytesPerInputFrame - mFilledLen)) <= inSize) { in process()
330 memcpy(mInputFrame + validSamples, inPtr + inPos, (inSize - inPos)); in process()
331 mFilledLen += (inSize - inPos); in process()
332 inPos += (inSize - inPos); in process()
DC2SoftAmrDec.cpp227 static status_t calculateNumFrames(const uint8 *input, size_t inSize, in calculateNumFrames() argument
229 for (size_t k = 0; k < inSize;) { in calculateNumFrames()
235 if ((inSize - k) >= frameSize) { in calculateNumFrames()
260 size_t inSize = 0u; in process() local
263 inSize = rView.capacity(); in process()
264 if (inSize && rView.error()) { in process()
272 if (inSize == 0) { in process()
283 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process()
287 if (OK != calculateNumFrames(rView.data() + inOffset, inSize, &frameSizeList, in process()
321 while (inPos < inSize) { in process()
/hardware/google/av/media/codecs/vorbis/
DC2SoftVorbisDec.cpp247 size_t inSize = 0u; in process() local
251 inSize = rView.capacity(); in process()
252 if (inSize && rView.error()) { in process()
259 if (inSize == 0) { in process()
268 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process()
273 if (inSize > 7 && !memcmp(&data[1], "vorbis", 6)) { in process()
286 makeBitReader((const uint8_t *)data + 7, inSize - 7, &buf, &ref, &bits); in process()
356 if (inSize < sizeof(numPageFrames)) { in process()
357 ALOGE("input header has size %zu, expected %zu", inSize, sizeof(numPageFrames)); in process()
362 memcpy(&numPageFrames, data + inSize - sizeof(numPageFrames), sizeof(numPageFrames)); in process()
[all …]
/hardware/google/av/media/codecs/mp3/
DC2SoftMp3Dec.cpp288 static status_t calculateOutSize(uint8 *header, size_t inSize, in calculateOutSize() argument
295 while (totalInSize + 4 < inSize) { in calculateOutSize()
351 size_t inSize = 0u; in process() local
355 inSize = rView.capacity(); in process()
356 if (inSize && rView.error()) { in process()
363 if (inSize == 0 && (!mGaplessBytes || !eos)) { in process()
369 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process()
375 if (inSize && OK != calculateOutSize(const_cast<uint8 *>(rView.data()), in process()
376 inSize, &decodedSizes)) { in process()
405 while (inPos < inSize) { in process()
[all …]
/hardware/google/av/media/codecs/flac/
DC2SoftFlacDec.cpp185 size_t inSize = 0u; in process() local
188 inSize = rView.capacity(); in process()
189 if (inSize && rView.error()) { in process()
198 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process()
201 if (inSize == 0) { in process()
217 status_t decoderErr = mFLACDecoder->parseMetadata(input, inSize); in process()
289 input, inSize, output, &outSize); in process()
DC2SoftFlacEnc.cpp192 size_t inSize = 0u; in process() local
195 inSize = rView.capacity(); in process()
196 if (inSize && rView.error()) { in process()
204 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
206 if (mIsFirstFrame && inSize) { in process()
231 size_t outCapacity = inSize; in process()
251 while (inPos < inSize) { in process()
253 size_t processSize = MIN(kInBlockSize * channelCount * sizeof(int16_t), (inSize - inPos)); in process()
/hardware/google/av/media/codecs/opus/
DC2SoftOpusDec.cpp316 size_t inSize = 0u; in process() local
320 inSize = rView.capacity(); in process()
321 if (inSize && rView.error()) { in process()
327 if (inSize == 0) { in process()
336 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process()
341 if (!ParseOpusHeader(data, inSize, &mHeader)) { in process()
381 if (inSize < 8) { in process()
456 inSize, in process()
/hardware/google/av/media/codecs/mpeg4_h263/
DC2SoftMpeg4Dec.cpp510 size_t inSize = 0u; in process() local
515 inSize = rView.capacity(); in process()
516 if (inSize && rView.error()) { in process()
523 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
527 if (inSize == 0) { in process()
550 vol_size = inSize; in process()
593 while (inPos < inSize) { in process()
623 int32_t tmpInSize = (int32_t)inSize; in process()
675 inPos += inSize - (size_t)tmpInSize; in process()
678 if (inSize - inPos != 0) { in process()
[all …]
/hardware/google/av/media/codecs/vpx/
DC2SoftVpxDec.cpp465 size_t inSize = 0u; in process() local
469 inSize = rView.capacity(); in process()
470 if (inSize && rView.error()) { in process()
481 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
501 if (inSize) { in process()
504 mCodecCtx, bitstream, inSize, &frameIndex, 0); in process()
519 } else if (!inSize) { in process()
/hardware/google/av/media/codecs/hevc/
DC2SoftHevcDec.cpp506 size_t inSize, in setDecodeArgs() argument
518 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
750 size_t inSize = 0u; in process() local
755 inSize = rView.capacity(); in process()
756 if (inSize && rView.error()) { in process()
766 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
769 while (inPos < inSize) { in process()
785 inOffset + inPos, inSize - inPos, workIndex)) { in process()
865 if (hasPicture && (inSize - inPos)) { in process()
867 (int)inSize - (int)inPos); in process()
DC2SoftHevcDec.h80 size_t inSize,
/hardware/google/av/media/codecs/mpeg2/
DC2SoftMpeg2Dec.cpp581 size_t inSize, in setDecodeArgs() argument
593 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
832 size_t inSize = 0u; in process() local
837 inSize = rView.capacity(); in process()
838 if (inSize && rView.error()) { in process()
848 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
851 while (inPos < inSize) { in process()
868 inOffset + inPos, inSize - inPos, workIndex)) { in process()
958 if (hasPicture && (inSize - inPos) != 0) { in process()
960 (int)inSize - (int)inPos); in process()
DC2SoftMpeg2Dec.h125 size_t inSize,
/hardware/google/av/media/codecs/avc/
DC2SoftAvcDec.cpp508 size_t inSize, in setDecodeArgs() argument
520 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
750 size_t inSize = 0u; in process() local
755 inSize = rView.capacity(); in process()
756 if (inSize && rView.error()) { in process()
766 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
769 while (inPos < inSize) { in process()
787 inOffset + inPos, inSize - inPos, workIndex)) { in process()
868 if (hasPicture && (inSize - inPos)) { in process()
870 (int)inSize - (int)inPos); in process()
DC2SoftAvcDec.h128 size_t inSize,
/hardware/interfaces/camera/device/3.4/default/include/ext_device_v3_4_impl/
DExternalCameraDeviceSession.h283 CroppingType ct, const Size& inSize, const Size& outSize, IMapper::Rect* out);
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraDeviceSession.cpp982 CroppingType ct, const Size& inSize, const Size& outSize, IMapper::Rect* out) { in getCropRect() argument
988 uint32_t inW = inSize.width; in getCropRect()
989 uint32_t inH = inSize.height; in getCropRect()
995 float arIn = ASPECT_RATIO(inSize); in getCropRect()