Lines Matching refs:XB
284 protected CodingMethod getBandHeader(int XB, Coding regularCoding) {
286 // push back XB onto the band header bytes
287 bandHeaderBytes[--bandHeaderBytePos] = (byte) XB;
289 // scan forward through XB and any additional band header bytes
651 // First byte XB of meta-coding is treated specially,
674 int XB = metaCoding[0] & 0xFF;
675 int X = encodeEscapeValue(XB, regularCoding);
687 int XB = metaCoding[0] & 0xFF;
691 int X = encodeEscapeValue(XB, regularCoding);
692 //System.out.println("X="+X+" XB="+XB+" in "+this);
716 int XB = decodeEscapeValue(X, regularCoding);
717 if (XB < 0) {
722 } else if (XB == _meta_default) {
727 Utils.log.fine("found X="+X+" => XB="+XB);
728 bandCoding = getBandHeader(XB, regularCoding);
1138 // and the first byte XB is -1-X.
1142 // and XB is X-(D.L).
1148 // Result is in [0..255] if XB was successfully extracted, else -1.
1154 // Result is in [0..255] if XB was successfully extracted, else -1.
1159 int XB = -1-X;
1160 assert(XB >= 0 && XB < 256);
1161 return XB;
1166 int XB = X-L;
1167 assert(XB >= 0 && XB < 256);
1168 return XB;
1174 protected static int encodeEscapeValue(int XB, Coding regularCoding) {
1175 assert(XB >= 0 && XB < 256);
1180 X = -1-XB;
1184 X = XB+L;
1186 assert(decodeEscapeValue(X, regularCoding) == XB)
1187 : (regularCoding+" XB="+XB+" X="+X);
1200 for (int XB = 0; XB <= 255; XB++) {
1202 encodeEscapeValue(XB, D);