Home
last modified time | relevance | path

Searched refs:chunkSize (Results 1 – 12 of 12) sorted by relevance

/frameworks/av/include/media/stagefright/
DDataSource.h86 size_t chunkSize = (4095 / sizeof(T)) + 1);
146 size_t chunkSize) in getVector() argument
149 if (chunkSize == 0) { in getVector()
156 T tmp[chunkSize]; in getVector()
158 size_t numBytesPerChunk = chunkSize * sizeof(T); in getVector()
161 for (i = 0; i + chunkSize < count; i += chunkSize) { in getVector()
174 x->appendArray(tmp, chunkSize); in getVector()
/frameworks/base/opengl/java/android/opengl/
DETC1Util.java172 int chunkSize = Math.min(ioBuffer.length, encodedSize - i); in createTexture() local
173 if (input.read(ioBuffer, 0, chunkSize) != chunkSize) { in createTexture()
176 dataBuffer.put(ioBuffer, 0, chunkSize); in createTexture()
177 i += chunkSize; in createTexture()
219 int chunkSize = Math.min(ioBuffer.length, encodedSize - i); in writeTexture() local
220 dataBuffer.get(ioBuffer, 0, chunkSize); in writeTexture()
221 output.write(ioBuffer, 0, chunkSize); in writeTexture()
222 i += chunkSize; in writeTexture()
/frameworks/av/media/libstagefright/timedtext/
DTextDescriptions.cpp104 ssize_t chunkSize = U32_AT(tmpData); // size includes size and type in extract3GPPLocalDescriptions() local
107 if (chunkSize <= 8 || chunkSize > size) { in extract3GPPLocalDescriptions()
111 size_t remaining = chunkSize - 8; in extract3GPPLocalDescriptions()
366 data += chunkSize; in extract3GPPLocalDescriptions()
367 size -= chunkSize; in extract3GPPLocalDescriptions()
380 ssize_t chunkSize = U32_AT(data); in extract3GPPGlobalDescriptions() local
386 if (size < chunkSize) { in extract3GPPGlobalDescriptions()
501 data += chunkSize; in extract3GPPGlobalDescriptions()
502 size -= chunkSize; in extract3GPPGlobalDescriptions()
/frameworks/av/media/libstagefright/
DJPEGSource.cpp172 uint16_t chunkSize; in parseJPEG() local
173 if (!mSource->getUInt16(i, &chunkSize)) { in parseJPEG()
179 if (chunkSize < 2) { in parseJPEG()
216 i += chunkSize - 2; in parseJPEG()
224 i += chunkSize - 2; in parseJPEG()
DAVIExtractor.cpp435 uint32_t chunkSize = U32LE_AT(&tmp[4]); in parseChunk() local
437 if (size >= 0 && chunkSize + 8 > size) { in parseChunk()
467 chunkSize - 4); in parseChunk()
476 off64_t subOffsetLimit = subOffset + chunkSize - 4; in parseChunk()
502 err = parseStreamHeader(offset + 8, chunkSize); in parseChunk()
508 err = parseStreamFormat(offset + 8, chunkSize); in parseChunk()
514 err = parseIndex(offset + 8, chunkSize); in parseChunk()
527 if (chunkSize & 1) { in parseChunk()
528 ++chunkSize; in parseChunk()
531 return chunkSize + 8; in parseChunk()
[all …]
DWAVExtractor.cpp166 uint32_t chunkSize = U32_LE_AT(&chunkHeader[4]); in init() local
168 if (chunkSize > remainingSize) { in init()
173 if (chunkSize < 16) { in init()
285 mDataSize = chunkSize; in init()
341 offset += chunkSize; in init()
DMPEG4Extractor.cpp5018 uint64_t chunkSize = ntohl(hdr[0]); in BetterSniffMPEG4() local
5022 if (chunkSize == 1) { in BetterSniffMPEG4()
5023 if (source->readAt(offset + 8, &chunkSize, 8) < 8) { in BetterSniffMPEG4()
5027 chunkSize = ntoh64(chunkSize); in BetterSniffMPEG4()
5030 if (chunkSize < 16) { in BetterSniffMPEG4()
5035 } else if (chunkSize < 8) { in BetterSniffMPEG4()
5041 off64_t chunkDataSize = chunkSize - (chunkDataOffset - offset); in BetterSniffMPEG4()
5049 … ALOGV("saw chunk type %s, size %" PRIu64 " @ %lld", chunkstring, chunkSize, (long long)offset); in BetterSniffMPEG4()
5088 moovAtomEndOffset = offset + chunkSize; in BetterSniffMPEG4()
5098 offset += chunkSize; in BetterSniffMPEG4()
/frameworks/base/core/jni/android/graphics/
DNinePatch.cpp67 size_t chunkSize = env->GetArrayLength(obj); in validateNinePatchChunk() local
68 if (chunkSize < (int) (sizeof(Res_png_9patch))) { in validateNinePatchChunk()
73 int8_t* storage = new int8_t[chunkSize]; in validateNinePatchChunk()
75 env->GetByteArrayRegion(obj, 0, chunkSize, reinterpret_cast<jbyte*>(storage)); in validateNinePatchChunk()
/frameworks/base/core/java/android/app/backup/
DBackupHelperDispatcher.java32 int chunkSize; // not including the header field in BackupHelperDispatcher.Header
64 skipChunk_native(oldStateFD, header.chunkSize); in performBackup()
/frameworks/base/tools/aapt2/compile/
DPng.cpp521 int chunkSize = sizeof(png_uint_32) * 6; in writePng() local
523 unknowns[oIndex].data = (png_byte*) calloc(chunkSize, 1); in writePng()
524 png_byte outputData[chunkSize]; in writePng()
528 memcpy(unknowns[oIndex].data, &outputData, chunkSize); in writePng()
529 unknowns[oIndex].size = chunkSize; in writePng()
533 int chunkSize = sizeof(png_uint_32) * 4; in writePng() local
535 unknowns[bIndex].data = (png_byte*) calloc(chunkSize, 1); in writePng()
536 memcpy(unknowns[bIndex].data, &info->layoutBoundsLeft, chunkSize); in writePng()
537 unknowns[bIndex].size = chunkSize; in writePng()
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp1243 ssize_t chunkSize; in dequeueAccessUnitMPEG4Video() local
1244 while ((chunkSize = getNextChunkSize( in dequeueAccessUnitMPEG4Video()
1291 &data[offset], chunkSize, in dequeueAccessUnitMPEG4Video()
1338 offset += chunkSize; in dequeueAccessUnitMPEG4Video()
1367 offset += chunkSize; in dequeueAccessUnitMPEG4Video()
1386 offset += chunkSize; in dequeueAccessUnitMPEG4Video()
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java507 int chunkSize = (int) Math.min(inputRemaining, CHUNK_SIZE_BYTES); in computeContentDigests() local
508 setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1); in computeContentDigests()
513 input.feedIntoMessageDigests(mds, inputOffset, chunkSize); in computeContentDigests()
537 inputOffset += chunkSize; in computeContentDigests()
538 inputRemaining -= chunkSize; in computeContentDigests()