Maven module :un.storage : image-jpeg :
Class : un.storage.imagery.jpeg.JPEGUtilities
Extends/Implements : -
Subclasses : -

Various jpeg encode and decode methods.
author  Johann Sorel


Variables : -
Functions : JPEGUtilities, extend, decodeACCoeff, receive, scale



public void JPEGUtilities ()


EXTEND is a procedure which converts the partially decoded DIFF
value of precision T to the full precision difference.
EXTEND is shown in Figure F.12. P 105
return
public int extend (int v, int t)


F.2.2.2 Decoding procedure for AC coefficients. Page 105
The decoding procedure for AC coefficients is shown in Figures F.13 and F.14.
public void decodeACCoeff (JPEGDataStream ds, int[] zz, HuffmanTable acTable)


Spec F.2.2.4 The RECEIVE procedure. Page 110
RECEIVE(SSSS) is a procedure which places the next SSSS bits of the entropy-coded segment into the low order bits of
DIFF, MSB first. It calls NEXTBIT and it returns the value of DIFF to the calling procedure (see Figure F.17).
param  ssss
param  ds
return
public int receive (JPEGDataStream ds, int ssss)


A.1.1 Dimensions and sampling factors.
Used to scale data units matrices.
inversed
public void scale (int[][] in, int[][] out)