public static byte[][] swapShorts(byte bs[][]) {
        int carry =  0;
        for (int i = 0; i < bs.length; i++) {
            byte[] b = bs[i];
            if (carry != 0)
                swapLastFirst(bs[i-1], b);
            int len = b.length - carry;
            swapShorts(b, carry, len & ~1);
            carry = len & 1;
         }
        return bs;
    }
@Test
    public void testSwapShorts() {
        assertArrayEquals(TAG_PIXEL_DATA_LE ,
                ByteUtils.swapShorts(TAG_PIXEL_DATA_BE.clone(), 0,
                        TAG_PIXEL_DATA_BE.length));
    }