Home
last modified time | relevance | path

Searched refs:chunk_size (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp827 uint64_t chunk_size = ntohl(hdr[0]); in parseChunk() local
831 if (chunk_size == 1) { in parseChunk()
832 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk()
835 chunk_size = ntoh64(chunk_size); in parseChunk()
838 if (chunk_size < 16) { in parseChunk()
842 } else if (chunk_size == 0) { in parseChunk()
847 chunk_size = (sourceSize - *offset); in parseChunk()
858 } else if (chunk_size < 8) { in parseChunk()
860 ALOGE("invalid chunk size: %" PRIu64, chunk_size); in parseChunk()
871 printf("%sfound chunk '%s' of size %" PRIu64 "\n", indent, chunk, chunk_size); in parseChunk()
[all …]
DItemTable.cpp130 uint64_t chunk_size = ntohl(hdr[0]); in parseChunk() local
134 if (chunk_size == 1) { in parseChunk()
135 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk()
138 chunk_size = ntoh64(chunk_size); in parseChunk()
141 if (chunk_size < 16) { in parseChunk()
145 } else if (chunk_size == 0) { in parseChunk()
149 } else if (chunk_size < 8) { in parseChunk()
151 ALOGE("invalid chunk size: %lld", (long long)chunk_size); in parseChunk()
159 off64_t chunk_data_size = chunk_size - (data_offset - *offset); in parseChunk()
170 *offset += chunk_size; in parseChunk()
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp139 const size_t chunk_size = dtohl(type->header.size); in VerifyResTableEntry() local
142 if (entry_offset > chunk_size - sizeof(ResTable_entry)) { in VerifyResTableEntry()
158 if (entry_size > chunk_size || entry_offset > chunk_size - entry_size) { in VerifyResTableEntry()
166 if (entry_offset + entry_size > chunk_size - sizeof(Res_value)) { in VerifyResTableEntry()
180 if (value_size > chunk_size || entry_offset + entry_size > chunk_size - value_size) { in VerifyResTableEntry()
195 if (map_entry_count > ((chunk_size - map_entries_start) / sizeof(ResTable_map))) { in VerifyResTableEntry()
/frameworks/base/tools/aapt/
DImages.cpp1256 int chunk_size = sizeof(png_uint_32) * 6; in write_png() local
1258 unknowns[o_index].data = (png_byte*) calloc(chunk_size, 1); in write_png()
1259 png_byte outputData[chunk_size]; in write_png()
1263 memcpy(unknowns[o_index].data, &outputData, chunk_size); in write_png()
1264 unknowns[o_index].size = chunk_size; in write_png()
1268 int chunk_size = sizeof(png_uint_32) * 4; in write_png() local
1270 unknowns[b_index].data = (png_byte*) calloc(chunk_size, 1); in write_png()
1271 memcpy(unknowns[b_index].data, &imageInfo.layoutBoundsLeft, chunk_size); in write_png()
1272 unknowns[b_index].size = chunk_size; in write_png()