Bug 1321 - JPEG encoder
Summary: JPEG encoder
Status: UNCONFIRMED
Alias: None
Product: Jogl
Classification: JogAmp
Component: util (show other bugs)
Version: 2.5.0
Hardware: All all
: P4 enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2016-07-26 23:00 CEST by Julien Gouesse
Modified: 2016-07-26 23:01 CEST (History)
1 user (show)

See Also:
Type: FEATURE
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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