<s>[INST] reads 16-bit rgb and converts it to 24-bit rgb . endian is defined by input stream . concode_field_sep byte[] byteBuf concode_field_sep void writeInt24LE concode_elem_sep void readRGBs555to24 concode_elem_sep void readInts24LE concode_elem_sep void writeInts24LE concode_elem_sep void readRGBs565to24 concode_elem_sep void writeInts24 concode_elem_sep int readInt24LE concode_elem_sep int readRGB555to24 concode_elem_sep void readRGBs555to24LE concode_elem_sep int readRGB555to24LE concode_elem_sep void writeInt24 [/INST] int function ( ImageInputStream arg0 ) { int loc0 = arg0 . readUnsignedShort ( ) ; return ( ( loc0 & 0xf800 ) << 8 ) | ( ( loc0 & 0x3800 ) << 5 ) | ( ( loc0 & 0x07e0 ) << 5 ) | ( ( loc0 & 0x0060 ) << 3 ) | ( ( loc0 & 0x001f ) << 3 ) | ( ( loc0 & 0x0007 ) ) ; </s>