Lines Matching defs:ow
491 * @param ow NUB for output
494 private static byte[] pack(byte[] in, int ioffset, int ilength, int iw, int ow) {
496 assert (ow > 0 && ow <= 8): "output NUB must be between 1 and 8";
498 if (iw == ow) {
503 byte[] out = new byte[(bits+ow-1)/ow];
509 int opos = (bits+ow-1)/ow*ow-bits;
513 if (count > ow - opos%ow) { // free space available in output byte
514 count = ow - opos%ow; // choose the smaller number
517 out[opos/ow] |= // paste!
521 << (ow-opos%ow-count); // move to the output position