Lines Matching refs:itemlen
140 int itemlen; in ReadJpegSections() local
165 itemlen = (lh << 8) | ll; in ReadJpegSections()
167 if (itemlen < 2){ in ReadJpegSections()
173 Sections[SectionsRead].Size = itemlen; in ReadJpegSections()
175 Data = (uchar *)malloc(itemlen); in ReadJpegSections()
187 got = fread(Data+2, 1, itemlen-2, infile); // Read the whole section. in ReadJpegSections()
188 if (got != itemlen-2){ in ReadJpegSections()
242 process_COM(Data, itemlen); in ReadJpegSections()
259 process_EXIF(Data, itemlen); in ReadJpegSections()
264 printf("Image cotains XMP section, %d bytes long\n", itemlen); in ReadJpegSections()
279 printf("Image cotains IPTC section, %d bytes long\n", itemlen); in ReadJpegSections()
306 printf("Jpeg section marker 0x%02x size %d\n",marker, itemlen); in ReadJpegSections()
338 int itemlen; in ReadJpegSectionsFromBuffer() local
362 itemlen = (lh << 8) | ll; in ReadJpegSectionsFromBuffer()
364 if (itemlen < 2) { in ReadJpegSectionsFromBuffer()
369 Sections[SectionsRead].Size = itemlen; in ReadJpegSectionsFromBuffer()
371 Data = (uchar *)malloc(itemlen); in ReadJpegSectionsFromBuffer()
382 if (pos+itemlen-2 > buffer_size) { in ReadJpegSectionsFromBuffer()
387 memcpy(Data+2, buffer+pos, itemlen-2); // Read the whole section. in ReadJpegSectionsFromBuffer()
388 pos += itemlen-2; in ReadJpegSectionsFromBuffer()
433 process_COM(Data, itemlen); in ReadJpegSectionsFromBuffer()
450 process_EXIF(Data, itemlen); in ReadJpegSectionsFromBuffer()
455 ALOGD("Image cotains XMP section, %d bytes long\n", itemlen); in ReadJpegSectionsFromBuffer()
470 ALOGD("Image cotains IPTC section, %d bytes long\n", itemlen); in ReadJpegSectionsFromBuffer()
497 ALOGD("Jpeg section marker 0x%02x size %d\n",marker, itemlen); in ReadJpegSectionsFromBuffer()