final class TIFFDirectory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
bitsPerSample |
(package private) int |
colorMapOffset |
(package private) int |
compression |
(package private) static int |
COMPRESSION_CCITT_3_1 |
(package private) static int |
COMPRESSION_NONE |
(package private) static int |
COMPRESSION_PACKBITS |
(package private) int |
depth |
(package private) TIFFRandomFileAccess |
file |
(package private) static int |
FILETYPE_MASK |
(package private) static int |
FILETYPE_PAGE |
(package private) static int |
FILETYPE_REDUCEDIMAGE |
(package private) static int |
IFD_ENTRY_SIZE |
(package private) ImageData |
image |
(package private) int |
imageLength |
(package private) int |
imageWidth |
(package private) boolean |
isLittleEndian |
(package private) ImageLoader |
loader |
(package private) static int |
NO_VALUE |
(package private) static int |
OFILETYPE_IMAGE |
(package private) static int |
OFILETYPE_PAGE |
(package private) static int |
OFILETYPE_REDUCEDIMAGE |
(package private) LEDataOutputStream |
out |
(package private) int |
photometricInterpretation |
(package private) int |
rowsPerStrip |
(package private) int |
samplesPerPixel |
(package private) int[] |
stripByteCounts |
(package private) int[] |
stripOffsets |
(package private) int |
subfileType |
(package private) int |
t4Options |
(package private) static short |
TAG_BitsPerSample |
(package private) static short |
TAG_ColorMap |
(package private) static short |
TAG_Compression |
(package private) static short |
TAG_DateTime |
(package private) static short |
TAG_FillOrder |
(package private) static short |
TAG_ImageDescription |
(package private) static short |
TAG_ImageLength |
(package private) static short |
TAG_ImageWidth |
(package private) static short |
TAG_NewSubfileType |
(package private) static short |
TAG_Orientation |
(package private) static short |
TAG_PhotometricInterpretation |
(package private) static short |
TAG_PlanarConfiguration |
(package private) static short |
TAG_ResolutionUnit |
(package private) static short |
TAG_RowsPerStrip |
(package private) static short |
TAG_SamplesPerPixel |
(package private) static short |
TAG_Software |
(package private) static short |
TAG_StripByteCounts |
(package private) static short |
TAG_StripOffsets |
(package private) static short |
TAG_SubfileType |
(package private) static short |
TAG_T4Options |
(package private) static short |
TAG_XResolution |
(package private) static short |
TAG_YResolution |
(package private) static int |
TYPE_ASCII |
(package private) static int |
TYPE_BYTE |
(package private) static int |
TYPE_LONG |
(package private) static int |
TYPE_RATIONAL |
(package private) static int |
TYPE_SHORT |
| Constructor and Description |
|---|
TIFFDirectory(ImageData image) |
TIFFDirectory(TIFFRandomFileAccess file,
boolean isLittleEndian,
ImageLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
decodePackBits(byte[] src,
byte[] dest,
int offsetDest) |
(package private) void |
decodePixels(ImageData image) |
(package private) int[] |
formatColorMap(RGB[] rgbs) |
(package private) int |
formatStrips(int rowByteSize,
int nbrRows,
byte[] data,
int maxStripByteSize,
int offsetPostIFD,
int extraBytes,
int[][] strips) |
(package private) PaletteData |
getColorMap() |
(package private) int |
getEntryValue(int type,
byte[] buffer,
int index) |
(package private) void |
getEntryValue(int type,
byte[] buffer,
int index,
int[] values) |
(package private) PaletteData |
getGrayPalette() |
(package private) PaletteData |
getRGBPalette(int bitsR,
int bitsG,
int bitsB) |
(package private) void |
parseEntries(byte[] buffer) |
ImageData |
read(int[] nextIFDOffset) |
(package private) int |
toInt(byte[] buffer,
int i,
int type) |
(package private) void |
write(int photometricInterpretation) |
(package private) void |
writeEntry(short tag,
int type,
int count,
int value) |
(package private) void |
writeHeader() |
(package private) void |
writeToStream(LEDataOutputStream byteStream) |
TIFFRandomFileAccess file
boolean isLittleEndian
ImageLoader loader
int depth
int subfileType
int imageWidth
int imageLength
int[] bitsPerSample
int compression
int photometricInterpretation
int[] stripOffsets
int samplesPerPixel
int rowsPerStrip
int[] stripByteCounts
int t4Options
int colorMapOffset
ImageData image
LEDataOutputStream out
static final int NO_VALUE
static final short TAG_NewSubfileType
static final short TAG_SubfileType
static final short TAG_ImageWidth
static final short TAG_ImageLength
static final short TAG_BitsPerSample
static final short TAG_Compression
static final short TAG_PhotometricInterpretation
static final short TAG_FillOrder
static final short TAG_ImageDescription
static final short TAG_StripOffsets
static final short TAG_Orientation
static final short TAG_SamplesPerPixel
static final short TAG_RowsPerStrip
static final short TAG_StripByteCounts
static final short TAG_XResolution
static final short TAG_YResolution
static final short TAG_PlanarConfiguration
static final short TAG_T4Options
static final short TAG_ResolutionUnit
static final short TAG_Software
static final short TAG_DateTime
static final short TAG_ColorMap
static final int TYPE_BYTE
static final int TYPE_ASCII
static final int TYPE_SHORT
static final int TYPE_LONG
static final int TYPE_RATIONAL
static final int FILETYPE_REDUCEDIMAGE
static final int FILETYPE_PAGE
static final int FILETYPE_MASK
static final int OFILETYPE_IMAGE
static final int OFILETYPE_REDUCEDIMAGE
static final int OFILETYPE_PAGE
static final int COMPRESSION_NONE
static final int COMPRESSION_CCITT_3_1
static final int COMPRESSION_PACKBITS
static final int IFD_ENTRY_SIZE
public TIFFDirectory(TIFFRandomFileAccess file, boolean isLittleEndian, ImageLoader loader)
public TIFFDirectory(ImageData image)
int decodePackBits(byte[] src,
byte[] dest,
int offsetDest)
int getEntryValue(int type,
byte[] buffer,
int index)
void getEntryValue(int type,
byte[] buffer,
int index,
int[] values)
throws java.io.IOException
java.io.IOExceptionvoid decodePixels(ImageData image) throws java.io.IOException
java.io.IOExceptionPaletteData getColorMap() throws java.io.IOException
java.io.IOExceptionPaletteData getGrayPalette()
PaletteData getRGBPalette(int bitsR, int bitsG, int bitsB)
int formatStrips(int rowByteSize,
int nbrRows,
byte[] data,
int maxStripByteSize,
int offsetPostIFD,
int extraBytes,
int[][] strips)
int[] formatColorMap(RGB[] rgbs)
void parseEntries(byte[] buffer)
throws java.io.IOException
java.io.IOExceptionpublic ImageData read(int[] nextIFDOffset) throws java.io.IOException
java.io.IOExceptionint toInt(byte[] buffer,
int i,
int type)
void write(int photometricInterpretation)
throws java.io.IOException
java.io.IOExceptionvoid writeEntry(short tag,
int type,
int count,
int value)
throws java.io.IOException
java.io.IOExceptionvoid writeHeader()
throws java.io.IOException
java.io.IOExceptionvoid writeToStream(LEDataOutputStream byteStream) throws java.io.IOException
java.io.IOException