Bug 1321

Summary: JPEG encoder
Product: [JogAmp] Jogl Reporter: Julien Gouesse <gouessej>
Component: utilAssignee: Sven Gothel <sgothel>
Status: UNCONFIRMED ---    
Severity: enhancement CC: gouessej
Priority: P4    
Version: tbd   
Hardware: All   
OS: all   
Type: FEATURE SCM Refs:
Workaround: ---

Description Julien Gouesse 2016-07-26 23:00:35 CEST
JOGL has its own JPEG decoder but it doesn't have its own JPEG encoder yet. Then, JPEG encoding uses Swing under the hood if it's available and it creates at most 2 buffered images per texture data object in IIOTextureWriter:
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/com/jogamp/opengl/util/texture/spi/awt/IIOTextureWriter.java

There is an excellent JPEG encoder written in Javascript that could be ported to Java:
https://github.com/owencm/javascript-jpeg-encoder/blob/master/jpeg_encoder_basic.js