Home
last modified time | relevance | path

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

12

/aosp12/frameworks/av/media/codec2/components/gsm/
H A 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 …]
/aosp12/system/chre/chpp/common/
H A Dwifi_convert.c371 size_t inSize) { in chppWifiConvertScanEventToChre() argument
405 if (in->results.offset + in->results.length > inSize || in chppWifiConvertScanEventToChre()
535 size_t inSize) { in chppWifiConvertRangingEventToChre() argument
543 if (in->results.offset + in->results.length > inSize || in chppWifiConvertRangingEventToChre()
584 size_t inSize) { in chppWifiConvertRangingParamsToChre() argument
621 const struct ChppWifiScanEvent *in, size_t inSize) { in chppWifiScanEventToChre() argument
624 if (inSize >= sizeof(struct ChppWifiScanEvent)) { in chppWifiScanEventToChre()
636 const struct ChppWifiScanParams *in, size_t inSize) { in chppWifiScanParamsToChre() argument
639 if (inSize >= sizeof(struct ChppWifiScanParams)) { in chppWifiScanParamsToChre()
654 if (inSize >= sizeof(struct ChppWifiRangingEvent)) { in chppWifiRangingEventToChre()
[all …]
H A Dgnss_convert.c204 size_t inSize) { in chppGnssConvertDataEventToChre() argument
215 if (in->measurements.offset + in->measurements.length > inSize || in chppGnssConvertDataEventToChre()
264 const struct ChppGnssDataEvent *in, size_t inSize) { in chppGnssDataEventToChre() argument
267 if (inSize >= sizeof(struct ChppGnssDataEvent)) { in chppGnssDataEventToChre()
270 if (!chppGnssConvertDataEventToChre(in, out, inSize)) { in chppGnssDataEventToChre()
279 const struct ChppGnssLocationEvent *in, size_t inSize) { in chppGnssLocationEventToChre() argument
282 if (inSize >= sizeof(struct ChppGnssLocationEvent)) { in chppGnssLocationEventToChre()
/aosp12/frameworks/av/media/codec2/components/amr_nb_wb/
H A 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()
H A 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()
H A 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()
/aosp12/frameworks/av/media/codec2/components/vorbis/
H A 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()
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()
361 inSize -= sizeof(numPageFrames); in process()
[all …]
/aosp12/frameworks/av/media/codec2/components/g711/
H A 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()
/aosp12/frameworks/av/media/codecs/g711/decoder/
H A 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()
H A 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()
H A 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);
/aosp12/frameworks/av/media/codec2/components/mp3/
H A DC2SoftMp3Dec.cpp282 static status_t calculateOutSize(uint8 *header, size_t inSize, in calculateOutSize() argument
289 while (totalInSize + 4 < inSize) { in calculateOutSize()
345 size_t inSize = 0u; in process() local
349 inSize = rView.capacity(); in process()
350 if (inSize && rView.error()) { in process()
357 if (inSize == 0 && (!mGaplessBytes || !eos)) { in process()
363 ALOGV("in buffer attr. size %zu timestamp %d frameindex %d", inSize, in process()
369 if (inSize && OK != calculateOutSize(const_cast<uint8 *>(rView.data()), in process()
370 inSize, &decodedSizes)) { in process()
399 while (inPos < inSize) { in process()
[all …]
/aosp12/frameworks/av/media/codec2/components/opus/
H A 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()
H A 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()
/aosp12/system/chre/chpp/include/chpp/common/
H A Dwifi_types.h261 const struct ChppWifiScanEvent *in, size_t inSize);
275 const struct ChppWifiScanParams *in, size_t inSize);
289 const struct ChppWifiRangingEvent *in, size_t inSize);
303 const struct ChppWifiRangingParams *in, size_t inSize);
H A Dgnss_types.h164 const struct ChppGnssDataEvent *in, size_t inSize);
178 const struct ChppGnssLocationEvent *in, size_t inSize);
/aosp12/frameworks/av/media/codec2/components/flac/
H A 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()
H A 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()
/aosp12/frameworks/av/media/libstagefright/codecs/g711/dec/
H A 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()
H A 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);
/aosp12/frameworks/av/media/codec2/components/mpeg4_h263/
H A DC2SoftMpeg4Dec.cpp496 size_t inSize = 0u; in process() local
501 inSize = rView.capacity(); in process()
502 if (inSize && rView.error()) { in process()
509 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
513 if (inSize == 0) { in process()
536 vol_size = inSize; in process()
579 while (inPos < inSize) { in process()
609 int32_t tmpInSize = (int32_t)inSize; in process()
670 inPos += inSize - (size_t)tmpInSize; in process()
673 if (inSize - inPos != 0) { in process()
[all …]
/aosp12/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DWallpaperCropActivity.java337 Point inSize = mCropView.getSourceDimensions(); in cropImageAndSetWallpaper() local
341 inSize.x, inSize.y, outSize.x, outSize.y, false); in cropImageAndSetWallpaper()
370 Point inSize = mCropView.getSourceDimensions(); in cropImageAndSetWallpaper()
377 float[] rotatedInSize = new float[] { inSize.x, inSize.y }; in cropImageAndSetWallpaper()
/aosp12/frameworks/av/media/libstagefright/codecs/gsm/dec/
H A 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()
/aosp12/frameworks/av/media/codec2/components/vpx/
H A DC2SoftVpxDec.cpp563 size_t inSize = 0u; in process() local
567 inSize = rView.capacity(); in process()
568 if (inSize && rView.error()) { in process()
579 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
597 if (inSize) { in process()
600 mCodecCtx, bitstream, inSize, &work->input.ordinal.frameIndex, 0); in process()
612 if (inSize > 0) { in process()
616 inSize = 0; in process()
622 inSize = 0; in process()
628 } else if (!inSize) { in process()
/aosp12/frameworks/av/media/codec2/components/hevc/
H A DC2SoftHevcDec.cpp520 size_t inSize, in setDecodeArgs() argument
542 ps_decode_ip->u4_num_Bytes = inSize; in setDecodeArgs()
811 size_t inSize = 0u; in process() local
816 inSize = rView.capacity(); in process()
817 if (inSize && rView.error()) { in process()
827 inSize, (int)work->input.ordinal.timestamp.peeku(), in process()
830 while (inPos < inSize) { in process()
848 inOffset + inPos, inSize - inPos, workIndex)) { in process()
954 if (hasPicture && (inSize - inPos)) { in process()
956 (int)inSize - (int)inPos); in process()

12