Lines Matching refs:SectionsRead

20 static int SectionsRead;  variable
113 if (SectionsRead > SectionsAllocated){ in CheckSectionsAllocated()
116 if (SectionsRead >= SectionsAllocated){ in CheckSectionsAllocated()
158 Sections[SectionsRead].Type = marker; in ReadJpegSections()
159 Sections[SectionsRead].Offset = ftell(infile); in ReadJpegSections()
173 Sections[SectionsRead].Size = itemlen; in ReadJpegSections()
181 Sections[SectionsRead].Data = Data; in ReadJpegSections()
193 SectionsRead += 1; in ReadJpegSections()
224 Sections[SectionsRead].Data = Data; in ReadJpegSections()
225 Sections[SectionsRead].Offset = cp; in ReadJpegSections()
226 Sections[SectionsRead].Size = size; in ReadJpegSections()
227 Sections[SectionsRead].Type = PSEUDO_IMAGE_MARKER; in ReadJpegSections()
228 SectionsRead ++; in ReadJpegSections()
240 free(Sections[--SectionsRead].Data); in ReadJpegSections()
252 free(Sections[--SectionsRead].Data); in ReadJpegSections()
262 Sections[SectionsRead-1].Type = M_XMP; // Change tag for internal purposes. in ReadJpegSections()
266 ShowXmp(Sections[SectionsRead-1]); in ReadJpegSections()
273 free(Sections[--SectionsRead].Data); in ReadJpegSections()
284 free(Sections[--SectionsRead].Data); in ReadJpegSections()
355 Sections[SectionsRead].Type = marker; in ReadJpegSectionsFromBuffer()
356 Sections[SectionsRead].Offset = pos; in ReadJpegSectionsFromBuffer()
369 Sections[SectionsRead].Size = itemlen; in ReadJpegSectionsFromBuffer()
376 Sections[SectionsRead].Data = Data; in ReadJpegSectionsFromBuffer()
390 SectionsRead += 1; in ReadJpegSectionsFromBuffer()
415 Sections[SectionsRead].Data = Data; in ReadJpegSectionsFromBuffer()
416 Sections[SectionsRead].Offset = pos; in ReadJpegSectionsFromBuffer()
417 Sections[SectionsRead].Size = size; in ReadJpegSectionsFromBuffer()
418 Sections[SectionsRead].Type = PSEUDO_IMAGE_MARKER; in ReadJpegSectionsFromBuffer()
419 SectionsRead ++; in ReadJpegSectionsFromBuffer()
431 free(Sections[--SectionsRead].Data); in ReadJpegSectionsFromBuffer()
443 free(Sections[--SectionsRead].Data); in ReadJpegSectionsFromBuffer()
453 Sections[SectionsRead-1].Type = M_XMP; // Change tag for internal purposes. in ReadJpegSectionsFromBuffer()
457 ShowXmp(Sections[SectionsRead-1]); in ReadJpegSectionsFromBuffer()
464 free(Sections[--SectionsRead].Data); in ReadJpegSectionsFromBuffer()
475 free(Sections[--SectionsRead].Data); in ReadJpegSectionsFromBuffer()
512 for (a=0;a<SectionsRead;a++){ in DiscardData()
517 SectionsRead = 0; in DiscardData()
752 for (a=0;a<SectionsRead;a++){ in DiscardAllButExif()
765 SectionsRead = 0; in DiscardAllButExif()
768 Sections[SectionsRead++] = ExifKeeper; in DiscardAllButExif()
772 Sections[SectionsRead++] = CommentKeeper; in DiscardAllButExif()
776 Sections[SectionsRead++] = IptcKeeper; in DiscardAllButExif()
781 Sections[SectionsRead++] = XmpKeeper; in DiscardAllButExif()
821 for (a=0;a<SectionsRead-1;a++){ in WriteJpegFile()
884 for (a=0;a<SectionsRead-1;a++){ in WriteJpegToBuffer()
917 for (a=0;a<SectionsRead;a++){ in FindSection()
932 for (a=0;a<SectionsRead-1;a++){ in RemoveSectionType()
937 memmove(Sections+a, Sections+a+1, sizeof(Section_t) * (SectionsRead-a)); in RemoveSectionType()
938 SectionsRead -= 1; in RemoveSectionType()
952 for (a=0;a<SectionsRead-1;){ in RemoveUnknownSections()
985 memmove(Sections+a, Sections+a+1, sizeof(Section_t) * (SectionsRead-a)); in RemoveUnknownSections()
986 SectionsRead -= 1; in RemoveUnknownSections()
1009 if (SectionsRead < NewIndex){ in CreateSection()
1016 for (a=SectionsRead;a>NewIndex;a--){ in CreateSection()
1019 SectionsRead += 1; in CreateSection()
1041 SectionsRead = 0; in ResetJpgfile()