Lines Matching refs:node
83 * Set by the chroma node construction method to signal the
85 * node construction method. Used only when constructing a
805 // Standard tree node methods
1102 throw new IIOInvalidTreeException("Invalid root node name: " + name,
1140 Node node = children.item(i);
1141 String name = node.getNodeName();
1143 mergeDQTNode(node);
1145 mergeDHTNode(node);
1147 mergeDRINode(node);
1149 mergeCOMNode(node);
1151 mergeAdobeNode(node);
1153 mergeUnknownNode(node);
1155 mergeSOFNode(node);
1157 mergeSOSNode(node);
1159 throw new IIOInvalidTreeException("Invalid node: " + name, node);
1165 * Merge the given DQT node into the marker sequence. If there already
1167 * node replaces the first table, in any DQT segment, with the same
1181 private void mergeDQTNode(Node node) throws IIOInvalidTreeException {
1192 NodeList children = node.getChildNodes();
1223 DQTMarkerSegment newGuy = new DQTMarkerSegment(node);
1240 * Merge the given DHT node into the marker sequence. If there already
1242 * node replaces the first table, in any DHT segment, with the same
1257 private void mergeDHTNode(Node node) throws IIOInvalidTreeException {
1268 NodeList children = node.getChildNodes();
1306 DHTMarkerSegment newGuy = new DHTMarkerSegment(node);
1323 * Merge the given DRI node into the marker sequence.
1335 private void mergeDRINode(Node node) throws IIOInvalidTreeException {
1339 dri.updateFromNativeNode(node, false);
1341 DRIMarkerSegment newGuy = new DRIMarkerSegment(node);
1355 * Merge the given COM node into the marker sequence.
1359 private void mergeCOMNode(Node node) throws IIOInvalidTreeException {
1360 COMMarkerSegment newGuy = new COMMarkerSegment(node);
1392 * Merge the given Adobe APP14 node into the marker sequence.
1394 * are updated from the node.
1398 private void mergeAdobeNode(Node node) throws IIOInvalidTreeException {
1402 adobe.updateFromNativeNode(node, false);
1404 AdobeMarkerSegment newGuy = new AdobeMarkerSegment(node);
1433 * Merge the given Unknown node into the marker sequence.
1445 private void mergeUnknownNode(Node node) throws IIOInvalidTreeException {
1446 MarkerSegment newGuy = new MarkerSegment(node);
1462 * Merge the given SOF node into the marker sequence.
1464 * its values are updated from the node.
1473 private void mergeSOFNode(Node node) throws IIOInvalidTreeException {
1477 sof.updateFromNativeNode(node, false);
1479 SOFMarkerSegment newGuy = new SOFMarkerSegment(node);
1490 * Merge the given SOS node into the marker sequence.
1492 * are updated from the node.
1499 private void mergeSOSNode(Node node) throws IIOInvalidTreeException {
1507 ("Can't merge SOS node into a tree with > 1 SOS node", node);
1509 firstSOS.updateFromNativeNode(node, false);
1511 markerSequence.add(new SOSMarkerSegment(node));
1521 Node node = children.item(i);
1522 String name = node.getNodeName();
1524 mergeStandardChromaNode(node, children);
1526 mergeStandardCompressionNode(node);
1528 mergeStandardDataNode(node);
1530 mergeStandardDimensionNode(node);
1532 mergeStandardDocumentNode(node);
1534 mergeStandardTextNode(node);
1536 mergeStandardTransparencyNode(node);
1538 throw new IIOInvalidTreeException("Invalid node: " + name, node);
1552 private void mergeStandardChromaNode(Node node, NodeList siblings)
1555 // This must take any transparency node into account as well, as
1557 // a transparency node is dealt with here, set a flag to indicate
1564 ("Transparency node must follow Chroma node", node);
1567 Node csType = node.getFirstChild();
1569 // If there is no ColorSpaceType node, we have nothing to do
1901 private void mergeStandardCompressionNode(Node node)
1908 private void mergeStandardDataNode(Node node)
1913 private void mergeStandardDimensionNode(Node node)
1957 NodeList children = node.getChildNodes();
2032 private void mergeStandardDocumentNode(Node node)
2037 private void mergeStandardTextNode(Node node)
2042 NodeList children = node.getChildNodes();
2062 private void mergeStandardTransparencyNode(Node node)
2065 // The nodes must appear in order, and a Chroma node will process any
2066 // transparency, so process it here only if there was no Chroma node
2069 boolean wantAlpha = wantAlpha(node);
2190 throw new IIOInvalidTreeException("Invalid root node name: " + name,
2217 Node node = children.item(i);
2218 String childName = node.getNodeName();
2220 markerSequence.add(new DQTMarkerSegment(node));
2222 markerSequence.add(new DHTMarkerSegment(node));
2224 markerSequence.add(new DRIMarkerSegment(node));
2226 markerSequence.add(new COMMarkerSegment(node));
2228 markerSequence.add(new AdobeMarkerSegment(node));
2230 markerSequence.add(new MarkerSegment(node));
2232 markerSequence.add(new SOFMarkerSegment(node));
2234 markerSequence.add(new SOSMarkerSegment(node));
2238 + childName, node);