jpeg decoding when data is given in array

后端 未结 1 828
太阳男子
太阳男子 2021-01-15 16:06

i am using LibJpeg library for decoding jpeg image ( given in form of byte array ) into rgb color map . but it come different from my sample output i want to check by java

相关标签:
1条回答
  • 2021-01-15 17:01

    Why not use ImageIO.read together with ByteArrayInputStream to read the byte array into an image then no extra library is needed (pure java solution):

    BufferedImage image = ImageIO.read(new ByteArrayInputStream(bytes));
    
    0 讨论(0)
提交回复
热议问题