Lines Matching defs:sections

125     // JPEG file is composed of many sections and image data. This class is used
134 List<Section> sections = parse(is, true, skipExtendedContent);
135 if (sections == null) {
139 XMPMeta xmpMeta = parseFirstValidXMPSection(sections);
155 if (!checkExtendedSectionExists(sections, extensionName)) {
163 XMPMeta xmpExtended = parseExtendedXMPSections(sections, extensionName);
188 * and XMP sections (with marker M_APP1) and ignore others; otherwise, keep
189 * all sections. The last section with image data will have -1 length.
193 * @param skipExtendedContent Whether to skip the content of extended sections
198 List<Section> sections = new ArrayList<Section>();
200 return sections;
205 return sections;
210 return sections;
216 return sections;
228 sections.add(section);
230 return sections;
235 return sections;
239 sections.add(readSection(is, length, marker, skipExtendedContent));
246 return sections;
249 return sections;
342 * @param sections The list of sections parse
345 private static XMPMeta parseFirstValidXMPSection(List<Section> sections) {
346 for (Section section : sections) {
367 * @param sections The list of sections to parse
368 * @param sectionName The name of the extended sections
371 private static boolean checkExtendedSectionExists(List<Section> sections,
374 for (Section section : sections) {
383 * Parses the extended XMP sections with the given name. All other sections
386 * @param sections The list of sections to parse
387 * @param sectionName The name of the extended sections
390 private static XMPMeta parseExtendedXMPSections(List<Section> sections,
394 // Compute the size of the buffer to parse the extended sections.
399 for (Section section : sections) {
413 // Copy all the relevant sections' data into a buffer.