Package steganography.image.encoders
Class GIFTableDecoder
- java.lang.Object
-
- steganography.image.encoders.GIFTableDecoder
-
public class GIFTableDecoder extends java.lang.Object
- Author:
- Selina Wernike These Class is mainly used to decode and change a GIF color table. It's based on the official GIF source
-
-
Constructor Summary
Constructors Constructor Description GIFTableDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>>
getColorCouples(int[] colorTable)
Splits the colorTable into Color Couples which have similar color Values.int[]
saveColorTable(byte[] gif)
This Method extracts the color table of a gif and transforms it into an int-array.
-
-
-
Method Detail
-
saveColorTable
public int[] saveColorTable(byte[] gif)
This Method extracts the color table of a gif and transforms it into an int-array. Each entry contains an Integer representing Alpha, red, green, blue channel with 8 bit each- Parameters:
gif
- Not decoded byte-Array of a gif- Returns:
- {int[]} colorTable The
-
getColorCouples
public java.util.Map<java.lang.Integer,java.util.List<java.lang.Integer>> getColorCouples(int[] colorTable)
Splits the colorTable into Color Couples which have similar color Values. Alpha is allways 00xF.- Parameters:
colorTable
- A color Table containing ARGB values- Returns:
- ColorCoupel[] Hash Map with a color as key and similar Colors as List values
-
-