Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.swt.internal.image
Class TIFFDirectory  view TIFFDirectory download TIFFDirectory.java

java.lang.Object
  extended byorg.eclipse.swt.internal.image.TIFFDirectory

final class TIFFDirectory
extends java.lang.Object


Field Summary
(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 IFD_ENTRY_SIZE
           
(package private)  org.eclipse.swt.graphics.ImageData image
           
(package private)  int imageLength
           
(package private)  int imageWidth
           
(package private)  boolean isLittleEndian
           
(package private)  org.eclipse.swt.graphics.ImageLoader loader
           
(package private) static int NO_VALUE
           
(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 t4Options
           
(package private) static short TAG_BitsPerSample
           
(package private) static short TAG_ColorMap
           
(package private) static short TAG_Compression
           
(package private) static short TAG_ImageLength
           
(package private) static short TAG_ImageWidth
           
(package private) static short TAG_PhotometricInterpretation
           
(package private) static short TAG_ResolutionUnit
           
(package private) static short TAG_RowsPerStrip
           
(package private) static short TAG_SamplesPerPixel
           
(package private) static short TAG_StripByteCounts
           
(package private) static short TAG_StripOffsets
           
(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 Summary
TIFFDirectory(org.eclipse.swt.graphics.ImageData image)
           
TIFFDirectory(TIFFRandomFileAccess file, boolean isLittleEndian, org.eclipse.swt.graphics.ImageLoader loader)
           
 
Method Summary
(package private)  int decodePackBits(byte[] src, byte[] dest, int offsetDest)
           
(package private)  void decodePixels(org.eclipse.swt.graphics.ImageData image)
           
(package private)  int[] formatColorMap(org.eclipse.swt.graphics.RGB[] rgbs)
           
(package private)  int formatStrips(int rowByteSize, int nbrRows, byte[] data, int maxStripByteSize, int offsetPostIFD, int extraBytes, int[][] strips)
           
(package private)  org.eclipse.swt.graphics.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)  org.eclipse.swt.graphics.PaletteData getGrayPalette()
           
(package private)  org.eclipse.swt.graphics.PaletteData getRGBPalette(int bitsR, int bitsG, int bitsB)
           
(package private)  void parseEntries(byte[] buffer)
           
 org.eclipse.swt.graphics.ImageData read()
           
(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

TIFFRandomFileAccess file

isLittleEndian

boolean isLittleEndian

loader

org.eclipse.swt.graphics.ImageLoader loader

depth

int depth

imageWidth

int imageWidth

imageLength

int imageLength

bitsPerSample

int[] bitsPerSample

compression

int compression

photometricInterpretation

int photometricInterpretation

stripOffsets

int[] stripOffsets

samplesPerPixel

int samplesPerPixel

rowsPerStrip

int rowsPerStrip

stripByteCounts

int[] stripByteCounts

t4Options

int t4Options

colorMapOffset

int colorMapOffset

image

org.eclipse.swt.graphics.ImageData image

out

LEDataOutputStream out

NO_VALUE

static final int NO_VALUE
See Also:
Constant Field Values

TAG_ImageWidth

static final short TAG_ImageWidth
See Also:
Constant Field Values

TAG_ImageLength

static final short TAG_ImageLength
See Also:
Constant Field Values

TAG_BitsPerSample

static final short TAG_BitsPerSample
See Also:
Constant Field Values

TAG_Compression

static final short TAG_Compression
See Also:
Constant Field Values

TAG_PhotometricInterpretation

static final short TAG_PhotometricInterpretation
See Also:
Constant Field Values

TAG_StripOffsets

static final short TAG_StripOffsets
See Also:
Constant Field Values

TAG_SamplesPerPixel

static final short TAG_SamplesPerPixel
See Also:
Constant Field Values

TAG_RowsPerStrip

static final short TAG_RowsPerStrip
See Also:
Constant Field Values

TAG_StripByteCounts

static final short TAG_StripByteCounts
See Also:
Constant Field Values

TAG_XResolution

static final short TAG_XResolution
See Also:
Constant Field Values

TAG_YResolution

static final short TAG_YResolution
See Also:
Constant Field Values

TAG_T4Options

static final short TAG_T4Options
See Also:
Constant Field Values

TAG_ResolutionUnit

static final short TAG_ResolutionUnit
See Also:
Constant Field Values

TAG_ColorMap

static final short TAG_ColorMap
See Also:
Constant Field Values

TYPE_BYTE

static final int TYPE_BYTE
See Also:
Constant Field Values

TYPE_ASCII

static final int TYPE_ASCII
See Also:
Constant Field Values

TYPE_SHORT

static final int TYPE_SHORT
See Also:
Constant Field Values

TYPE_LONG

static final int TYPE_LONG
See Also:
Constant Field Values

TYPE_RATIONAL

static final int TYPE_RATIONAL
See Also:
Constant Field Values

COMPRESSION_NONE

static final int COMPRESSION_NONE
See Also:
Constant Field Values

COMPRESSION_CCITT_3_1

static final int COMPRESSION_CCITT_3_1
See Also:
Constant Field Values

COMPRESSION_PACKBITS

static final int COMPRESSION_PACKBITS
See Also:
Constant Field Values

IFD_ENTRY_SIZE

static final int IFD_ENTRY_SIZE
See Also:
Constant Field Values
Constructor Detail

TIFFDirectory

public TIFFDirectory(TIFFRandomFileAccess file,
                     boolean isLittleEndian,
                     org.eclipse.swt.graphics.ImageLoader loader)

TIFFDirectory

public TIFFDirectory(org.eclipse.swt.graphics.ImageData image)
Method Detail

decodePackBits

int decodePackBits(byte[] src,
                   byte[] dest,
                   int offsetDest)

getEntryValue

int getEntryValue(int type,
                  byte[] buffer,
                  int index)

getEntryValue

void getEntryValue(int type,
                   byte[] buffer,
                   int index,
                   int[] values)
             throws java.io.IOException

decodePixels

void decodePixels(org.eclipse.swt.graphics.ImageData image)
            throws java.io.IOException

getColorMap

org.eclipse.swt.graphics.PaletteData getColorMap()
                                           throws java.io.IOException

getGrayPalette

org.eclipse.swt.graphics.PaletteData getGrayPalette()

getRGBPalette

org.eclipse.swt.graphics.PaletteData getRGBPalette(int bitsR,
                                                   int bitsG,
                                                   int bitsB)

formatStrips

int formatStrips(int rowByteSize,
                 int nbrRows,
                 byte[] data,
                 int maxStripByteSize,
                 int offsetPostIFD,
                 int extraBytes,
                 int[][] strips)

formatColorMap

int[] formatColorMap(org.eclipse.swt.graphics.RGB[] rgbs)

parseEntries

void parseEntries(byte[] buffer)
            throws java.io.IOException

read

public org.eclipse.swt.graphics.ImageData read()
                                        throws java.io.IOException

toInt

int toInt(byte[] buffer,
          int i,
          int type)

write

void write(int photometricInterpretation)
     throws java.io.IOException

writeEntry

void writeEntry(short tag,
                int type,
                int count,
                int value)
          throws java.io.IOException

writeHeader

void writeHeader()
           throws java.io.IOException

writeToStream

void writeToStream(LEDataOutputStream byteStream)
             throws java.io.IOException