Searched refs:chunk_size (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/media/libstagefright/ |
D | MPEG4Extractor.cpp | 768 uint64_t chunk_size = ntohl(hdr[0]); in parseChunk() local 772 if (chunk_size == 1) { in parseChunk() 773 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk() 776 chunk_size = ntoh64(chunk_size); in parseChunk() 779 if (chunk_size < 16) { in parseChunk() 783 } else if (chunk_size == 0) { in parseChunk() 788 chunk_size = (sourceSize - *offset); in parseChunk() 799 } else if (chunk_size < 8) { in parseChunk() 801 ALOGE("invalid chunk size: %" PRIu64, chunk_size); in parseChunk() 812 printf("%sfound chunk '%s' of size %" PRIu64 "\n", indent, chunk, chunk_size); in parseChunk() [all …]
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 1169 int chunk_size = sizeof(png_uint_32) * 6; in write_png() local 1171 unknowns[o_index].data = (png_byte*) calloc(chunk_size, 1); in write_png() 1172 png_byte outputData[chunk_size]; in write_png() 1176 memcpy(unknowns[o_index].data, &outputData, chunk_size); in write_png() 1177 unknowns[o_index].size = chunk_size; in write_png() 1181 int chunk_size = sizeof(png_uint_32) * 4; in write_png() local 1183 unknowns[b_index].data = (png_byte*) calloc(chunk_size, 1); in write_png() 1184 memcpy(unknowns[b_index].data, &imageInfo.layoutBoundsLeft, chunk_size); in write_png() 1185 unknowns[b_index].size = chunk_size; in write_png()
|