decode an array of bytes in dct format . dct is the format used by jpeg images , so this class simply loads the dct-format bytes as an image , then reads the bytes out of the image to create the array . unfortunately , their most likely use is to get turned back into an image , so this is n't terribly efficient ... but is is general ... do n't hit , please . the dct-encoded stream may have 1 , 3 or 4 samples per pixel , depending on the colorspace of the image . in decoding , we look for the colorspace in the stream object 's dictionary to decide how to decode this image . if no colorspace is present , we guess 3 samples per pixel . concode_field_sep boolean done concode_field_sep boolean imageUpdate concode_elem_sep BufferedImage loadImageData concode_elem_sep void waitForAll
ByteBuffer function ( PDFObject arg0 , ByteBuffer arg1 , PDFObject arg2 ) { BufferedImage loc0 = loadImageData ( arg1 ) ; byte [ ] loc1 = ImageDataDecoder . decodeImageData ( loc0 ) ; return ByteBuffer . wrap ( loc1 ) ; }