private int extend(int v, final int t) {
        // "EXTEND", section F.2.2.1, figure F.12, page 105 of T.81
        int vt = 1 << t - 1;
        if (v < vt) {
            vt = (-1 << t) + 1;
            v += vt;
        }
        return v;
    }
Constructs a new instance with the default, big-endian, byte order.
src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/JpegDecoder.java