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

Quick Search    Search Deep

non_com.media.jai.codec
Class FPXImage  view FPXImage download FPXImage.java

java.lang.Object
  extended bynon_com.media.jai.codec.SimpleRenderedImage
      extended bynon_com.media.jai.codec.FPXImage
All Implemented Interfaces:
java.awt.image.RenderedImage

public class FPXImage
extends SimpleRenderedImage


Field Summary
(package private)  int[] bandOffsets
           
private static java.awt.image.ComponentColorModel colorModelRGB8
           
private static java.lang.String[] COLORSPACE_NAME
           
(package private)  int[] decimationMethod
           
(package private)  float[] decimationPrefilterWidth
           
(package private)  float defaultDisplayHeight
           
(package private)  float defaultDisplayWidth
           
(package private)  int displayHeightWidthUnits
           
(package private)  int highestResHeight
           
(package private)  int highestResolution
           
(package private)  int highestResWidth
           
(package private)  byte[][] JPEGTable
           
(package private)  int maxJPEGTableIndex
           
(package private)  int numChannels
           
(package private)  int numResolutions
           
private static byte[] PhotoYCCToRGBLUT
           
(package private)  java.util.Hashtable properties
           
(package private)  int resolution
           
private static int[] RGBBits8
           
(package private)  StructuredStorage storage
           
private static int SUBIMAGE_COLOR_SPACE_COLORLESS
           
private static int SUBIMAGE_COLOR_SPACE_MONOCHROME
           
private static int SUBIMAGE_COLOR_SPACE_NIFRGB
           
private static int SUBIMAGE_COLOR_SPACE_PHOTOYCC
           
(package private)  int[][] subimageColor
           
(package private)  SeekableStream subimageDataStream
           
(package private)  SeekableStream subimageHeaderStream
           
(package private)  int[] subimageHeight
           
(package private)  boolean[] subimageValid
           
(package private)  int[] subimageWidth
           
(package private)  int tileHeaderEntryLength
           
(package private)  int tileHeaderTableOffset
           
(package private)  int tilesAcross
           
 
Fields inherited from class non_com.media.jai.codec.SimpleRenderedImage
colorModel, height, minX, minY, sampleModel, sources, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
 
Constructor Summary
FPXImage(SeekableStream stream, FPXDecodeParam param)
          Constructor for the FPXImage object
 
Method Summary
private  void addLPSTRProperty(java.lang.String name, PropertySet ps, int id)
           
private  void addLPWSTRProperty(java.lang.String name, PropertySet ps, int id)
           
private  void addUI4Property(java.lang.String name, PropertySet ps, int id)
           
private  int getCompressionSubtype(int tileIndex)
           
private  int getCompressionType(int tileIndex)
           
private  void getImageInfo()
           
private  java.awt.image.Raster getJPEGCompressedTile(int tileX, int tileY)
           
private  void getProperties()
           
 java.lang.Object getProperty(java.lang.String name)
          Gets the Property attribute of the FPXImage object
 java.lang.String[] getPropertyNames()
          Gets the PropertyNames attribute of the FPXImage object
private  java.awt.image.Raster getSingleColorCompressedTile(int tileX, int tileY)
           
private  void getSummaryInformation()
           
 java.awt.image.Raster getTile(int tileX, int tileY)
          Gets the Tile attribute of the FPXImage object
private  int getTileOffset(int tileIndex)
           
private  int getTileSize(int tileIndex)
           
private  java.awt.image.Raster getUncompressedTile(int tileX, int tileY)
           
private  byte PhotoYCCToNIFBlue(float scaledY, float Cb, float Cr)
           
private  byte PhotoYCCToNIFGreen(float scaledY, float Cb, float Cr)
           
private  byte PhotoYCCToNIFRed(float scaledY, float Cb, float Cr)
           
private  void readImageContents()
           
private  void readResolution()
           
private  byte YCCToNIFBlue(float Y, float Cb, float Cr)
           
private  byte YCCToNIFGreen(float Y, float Cb, float Cr)
           
private  byte YCCToNIFRed(float Y, float Cb, float Cr)
           
 
Methods inherited from class non_com.media.jai.codec.SimpleRenderedImage
copyData, getBounds, getColorModel, getData, getData, getHeight, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, tileXToX, tileXToX, tileYToY, tileYToY, XToTileX, XToTileX, YToTileY, YToTileY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBIMAGE_COLOR_SPACE_COLORLESS

private static final int SUBIMAGE_COLOR_SPACE_COLORLESS
See Also:
Constant Field Values

SUBIMAGE_COLOR_SPACE_MONOCHROME

private static final int SUBIMAGE_COLOR_SPACE_MONOCHROME
See Also:
Constant Field Values

SUBIMAGE_COLOR_SPACE_PHOTOYCC

private static final int SUBIMAGE_COLOR_SPACE_PHOTOYCC
See Also:
Constant Field Values

SUBIMAGE_COLOR_SPACE_NIFRGB

private static final int SUBIMAGE_COLOR_SPACE_NIFRGB
See Also:
Constant Field Values

COLORSPACE_NAME

private static final java.lang.String[] COLORSPACE_NAME

RGBBits8

private static final int[] RGBBits8

colorModelRGB8

private static final java.awt.image.ComponentColorModel colorModelRGB8

PhotoYCCToRGBLUT

private static final byte[] PhotoYCCToRGBLUT

storage

StructuredStorage storage

numResolutions

int numResolutions

highestResWidth

int highestResWidth

highestResHeight

int highestResHeight

defaultDisplayHeight

float defaultDisplayHeight

defaultDisplayWidth

float defaultDisplayWidth

displayHeightWidthUnits

int displayHeightWidthUnits

subimageValid

boolean[] subimageValid

subimageWidth

int[] subimageWidth

subimageHeight

int[] subimageHeight

subimageColor

int[][] subimageColor

decimationMethod

int[] decimationMethod

decimationPrefilterWidth

float[] decimationPrefilterWidth

highestResolution

int highestResolution

maxJPEGTableIndex

int maxJPEGTableIndex

JPEGTable

byte[][] JPEGTable

numChannels

int numChannels

tileHeaderTableOffset

int tileHeaderTableOffset

tileHeaderEntryLength

int tileHeaderEntryLength

subimageHeaderStream

SeekableStream subimageHeaderStream

subimageDataStream

SeekableStream subimageDataStream

resolution

int resolution

tilesAcross

int tilesAcross

bandOffsets

int[] bandOffsets

properties

java.util.Hashtable properties
Constructor Detail

FPXImage

public FPXImage(SeekableStream stream,
                FPXDecodeParam param)
         throws java.io.IOException
Constructor for the FPXImage object

Method Detail

getTile

public java.awt.image.Raster getTile(int tileX,
                                     int tileY)
Gets the Tile attribute of the FPXImage object


getPropertyNames

public java.lang.String[] getPropertyNames()
Gets the PropertyNames attribute of the FPXImage object

Specified by:
getPropertyNames in interface java.awt.image.RenderedImage
Overrides:
getPropertyNames in class SimpleRenderedImage

getProperty

public java.lang.Object getProperty(java.lang.String name)
Gets the Property attribute of the FPXImage object

Specified by:
getProperty in interface java.awt.image.RenderedImage
Overrides:
getProperty in class SimpleRenderedImage

getTileOffset

private int getTileOffset(int tileIndex)
                   throws java.io.IOException

getTileSize

private int getTileSize(int tileIndex)
                 throws java.io.IOException

getCompressionType

private int getCompressionType(int tileIndex)
                        throws java.io.IOException

getCompressionSubtype

private int getCompressionSubtype(int tileIndex)
                           throws java.io.IOException

getUncompressedTile

private java.awt.image.Raster getUncompressedTile(int tileX,
                                                  int tileY)
                                           throws java.io.IOException

getSingleColorCompressedTile

private java.awt.image.Raster getSingleColorCompressedTile(int tileX,
                                                           int tileY)
                                                    throws java.io.IOException

getJPEGCompressedTile

private java.awt.image.Raster getJPEGCompressedTile(int tileX,
                                                    int tileY)
                                             throws java.io.IOException

getSummaryInformation

private void getSummaryInformation()

getImageInfo

private void getImageInfo()

getProperties

private void getProperties()

readImageContents

private void readImageContents()
                        throws java.io.IOException

readResolution

private void readResolution()
                     throws java.io.IOException

PhotoYCCToNIFRed

private final byte PhotoYCCToNIFRed(float scaledY,
                                    float Cb,
                                    float Cr)

PhotoYCCToNIFGreen

private final byte PhotoYCCToNIFGreen(float scaledY,
                                      float Cb,
                                      float Cr)

PhotoYCCToNIFBlue

private final byte PhotoYCCToNIFBlue(float scaledY,
                                     float Cb,
                                     float Cr)

YCCToNIFRed

private final byte YCCToNIFRed(float Y,
                               float Cb,
                               float Cr)

YCCToNIFGreen

private final byte YCCToNIFGreen(float Y,
                                 float Cb,
                                 float Cr)

YCCToNIFBlue

private final byte YCCToNIFBlue(float Y,
                                float Cb,
                                float Cr)

addLPSTRProperty

private void addLPSTRProperty(java.lang.String name,
                              PropertySet ps,
                              int id)

addLPWSTRProperty

private void addLPWSTRProperty(java.lang.String name,
                               PropertySet ps,
                               int id)

addUI4Property

private void addUI4Property(java.lang.String name,
                            PropertySet ps,
                            int id)