Lines Matching refs:section

126     // to hold the section data from image file.
156 // The main XMP section referenced an extended section that is not present.
165 // The main XMP section referenced an extended section that is not present.
189 * all sections. The last section with image data will have -1 length.
223 Section section = new Section();
224 section.marker = marker;
225 section.length = -1;
226 section.data = new byte[is.available()];
227 is.read(section.data, 0, section.data.length);
228 sections.add(section);
241 // Skip this section since all EXIF/XMP meta will be in M_APP1
242 // section.
262 * Checks whether the byte array has XMP header. The XMP section contains
287 Section section = new Section();
288 section.marker = marker;
289 section.length = length;
290 section.data = new byte[length - 2];
291 is.read(section.data, 0, length - 2);
292 return section;
299 Section section = new Section();
300 section.marker = marker;
301 section.length = header.length + 2;
302 section.data = header;
304 return section;
307 Section section = new Section();
308 section.marker = marker;
309 section.length = length;
310 section.data = new byte[length - 2];
311 System.arraycopy(header, 0, section.data, 0, header.length);
312 is.read(section.data, header.length, length - 2 - header.length);
313 return section;
339 * Parses the first valid XMP section. Any other valid XMP section will be
346 for (Section section : sections) {
347 if (hasHeader(section.data, XMP_HEADER)) {
348 int end = getXMPContentEnd(section.data);
351 section.data, XMP_HEADER.length(), buffer, 0, buffer.length);
365 * Checks there is an extended section with the given name.
369 * @return Whether there is an extended section with the given name
374 for (Section section : sections) {
375 if (hasHeader(section.data, extendedHeader)) {
399 for (Section section : sections) {
400 if (hasHeader(section.data, extendedHeader)) {
402 int endOffset = section.data.length;
403 bufferSize += Math.max(0, section.data.length - startOffset);
404 xmpSections.add(section);
417 Section section = xmpSections.get(i);
422 section.data, startOffset, buffer, offset, length);