packs scanline for bitdepth 1-2-4 from array into the scanline if scale == true , it scales the value just a bit shift . you probably should use imageline #packtonewimageline concode_field_sep double BIG_VALUE_NEG concode_elem_sep double[] maxdif concode_elem_sep int channels concode_elem_sep double promlum concode_elem_sep double BIG_VALUE concode_elem_sep double[] maxv concode_elem_sep double[] minv concode_elem_sep double[] prom concode_elem_sep double maxlum concode_elem_sep double minlum concode_field_sep void setPixelsRGBA8 concode_elem_sep void setPixelRGB8 concode_elem_sep void setPixelRGB8 concode_elem_sep int getPixelARGB8 concode_elem_sep int clampTo_0_255 concode_elem_sep String infoFull concode_elem_sep void setPixelRGBA8 concode_elem_sep void setPixelRGBA8 concode_elem_sep double int2double concode_elem_sep int getPixelRGB8 concode_elem_sep int interpol concode_elem_sep String infoFirstLastPixels concode_elem_sep int clampTo_0_65535 concode_elem_sep int[] palette2rgb concode_elem_sep int[] palette2rgb concode_elem_sep void setValD concode_elem_sep int double2int concode_elem_sep String toString concode_elem_sep void setPixelsRGB8 concode_elem_sep int double2intClamped concode_elem_sep int[] unpack concode_elem_sep byte[] unpack concode_elem_sep int getMaskForPackedFormats concode_elem_sep double int2doubleClamped concode_elem_sep int clampTo_128_127 concode_elem_sep int getMaskForPackedFormatsLs
int [ ] function ( final ImageInfo arg0 , final int [ ] arg1 , int [ ] arg2 , final boolean arg3 ) { final int loc0 = arg0 . samplesPerRowPacked ; if ( arg2 == null || arg2 . length < loc0 ) arg2 = new int [ loc0 ] ; if ( arg0 . packed ) ImageLine . packInplaceInt ( arg0 , arg1 , arg2 , arg3 ) ; else System . arraycopy ( arg1 , 0 , arg2 , 0 , loc0 ) ; return arg2 ; }