// Path: src/main/java/com/github/mreutegg/laszip4j/laszip/MyDefs.java
// static int U8_CLAMP(int n) {
//     return (((n) <= U8_MIN) ? U8_MIN : (((n) >= Byte.toUnsignedInt(U8_MAX)) ? U8_MAX : ((byte)(n))));
// }
// 
// Path: src/main/java/com/github/mreutegg/laszip4j/laszip/MyDefs.java
// static byte U8_FOLD(int n) {
//     return (byte) ((n < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > Byte.toUnsignedInt(U8_MAX)) ? (n-U8_MAX_PLUS_ONE) : (n)));
// }


import static java.lang.Boolean.TRUE;
import java.nio.ByteBuffer;
import static com.github.mreutegg.laszip4j.laszip.MyDefs.U8_CLAMP;
import static com.github.mreutegg.laszip4j.laszip.MyDefs.U8_FOLD;
/*
 * Copyright 2007-2012, martin isenburg, rapidlasso - fast tools to catch reality
 *
 * This is free software; you can redistribute and/or modify it under the
 * terms of the GNU Lesser General Licence as published by the Free Software
 * Foundation. See the LICENSE.txt file for more information.
 *
 * This software is distributed WITHOUT ANY WARRANTY and without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
package com.github.mreutegg.laszip4j.laszip;



public class LASreadItemCompressed_RGB12_v2 extends LASreadItemCompressed {

    private ArithmeticDecoder dec;
// Path: src/main/java/com/github/mreutegg/laszip4j/laszip/MyDefs.java
// static int U8_CLAMP(int n) {
//     return (((n) <= U8_MIN) ? U8_MIN : (((n) >= Byte.toUnsignedInt(U8_MAX)) ? U8_MAX : ((byte)(n))));
// }
// 
// Path: src/main/java/com/github/mreutegg/laszip4j/laszip/MyDefs.java
// static byte U8_FOLD(int n) {
//     return (byte) ((n < U8_MIN) ? (n+U8_MAX_PLUS_ONE) : (((n) > Byte.toUnsignedInt(U8_MAX)) ? (n-U8_MAX_PLUS_ONE) : (n)));
// }


// Path: src/main/java/com/github/mreutegg/laszip4j/laszip/LASreadItemCompressed_RGB12_v2.java
import static java.lang.Boolean.TRUE;
import java.nio.ByteBuffer;
import static com.github.mreutegg.laszip4j.laszip.MyDefs.U8_CLAMP;
import static com.github.mreutegg.laszip4j.laszip.MyDefs.U8_FOLD;

/*
 * Copyright 2007-2012, martin isenburg, rapidlasso - fast tools to catch reality
 *
 * This is free software; you can redistribute and/or modify it under the
 * terms of the GNU Lesser General Licence as published by the Free Software
 * Foundation. See the LICENSE.txt file for more information.
 *
 * This software is distributed WITHOUT ANY WARRANTY and without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
package com.github.mreutegg.laszip4j.laszip;



public class LASreadItemCompressed_RGB12_v2 extends LASreadItemCompressed {

    private ArithmeticDecoder dec;
    private char[] last_item = new char[3];