| Home >> All >> non_com >> media >> [ jai Javadoc ] |
| | non_com.media.jai.codec.* (60) | | non_com.media.jai.codec.jpeg.* (5) |
non_com.media.jai: Javadoc index of package non_com.media.jai.
Package Samples:
non_com.media.jai.codec
non_com.media.jai.codec.jpeg
Classes:
SeekableStream: An abstract subclass of java.io.InputStream that allows seeking within the input, similar to the RandomAccessFile class. Additionally, the DataInput interface is supported and extended to include support for little-endian representations of fundamental data types. In addition to the familiar methods from InputStream , the methods getFilePointer() , seek() , are defined as in the RandomAccessFile class. The canSeekBackwards() method will return true if it is permissible to seek to a position earlier in the stream than the current value of getFilePointer() . Some subclasses of SeekableStream guarantee ...
PNGDecodeParam: An instance of ImageDecodeParam for decoding images in the PNG format. PNGDecodeParam allows several aspects of the decoding process for PNG images to be controlled. By default, decoding produces output images with the following properties: Images with a bit depth of 8 or less use a DataBufferByte to hold the pixel data. 16-bit images use a DataBufferUShort . Palette color images and non-transparent grayscale images with bit depths of 1, 2, or 4 will have a MultiPixelPackedSampleModel and an IndexColorModel . For palette color images, the ColorModel palette contains the red, green, blue, and optionally ...
SegmentedSeekableStream: A SegmentedSeekableStream provides a view of a subset of another SeekableStream consiting of a series of segments with given starting positions in the source stream and lengths. The resulting stream behaves like an ordinary SeekableStream . For example, given a SeekableStream containing data in a format consisting of a number of sub-streams stored in non-contiguous sectors indexed by a directory, it is possible to construct a set of SegmentedSeekableStream s, one for each sub-stream, that each provide a view of the sectors comprising a particular stream by providing the positions and lengths of ...
TIFFDecodeParam: An instance of ImageDecodeParam for decoding images in the TIFF format. To determine the number of images present in a TIFF file, use the getNumPages() method on the ImageDecoder object that will be used to perform the decoding. The desired page number may be passed as an argument to the ImageDecoder.decodeAsRaster)() or decodeAsRenderedImage() methods. For TIFF Palette color images, the colorMap always has entries of short data type, the color Black being represented by 0,0,0 and White by 65536,65536,65536. In order to display these images, the default behavior is to dither the short values down ...
FloatDoubleColorModel: A ColorModel class that works with pixel values that represent color and alpha information as separate samples, using float or double elements. This class can be used with an arbitrary ColorSpace . The number of color samples in the pixel values must be same as the number of color components in the ColorSpace . There may be a single alpha sample. Sample values are taken as ranging from 0.0 to 1.0; that is, when converting to 8-bit RGB, a multiplication by 255 is performed and values outside of the range 0-255 are clamped at the closest endpoint. For maximum efficiency, pixel data being interpreted ...
StreamSegmentMapper: An interface for use with the SegmentedSeekableStream class. An instance of the StreamSegmentMapper interface provides the location and length of a segment of a source SeekableStream corresponding to the initial portion of a desired segment of the output stream. As an example, consider a mapping between a source SeekableStream src and a SegmentedSeekableStream dst comprising bytes 100-149 and 200-249 of the source stream. The dst stream has a reference to an instance mapper of StreamSegmentMapper . A call to dst.seek(0); dst.read(buf, 0, 10) will result in a call to mapper.getStreamSegment(0, 10) ...
ComponentSampleModelJAI: This class represents image data which is stored such that each sample of a pixel occupies one data element of the DataBuffer . It stores the N samples which make up a pixel in N separate data array elements. Different bands may be in different banks of the DataBuffer . Accessor methods are provided so that image data can be manipulated directly. This class can support different kinds of interleaving, e.g. band interleaving, scanline interleaving, and pixel interleaving. Pixel stride is the number of data array elements between two samples for the same band on the same scanline. Scanline stride ...
ImageCodec: An abstract class allowing the creation of image decoders and encoders. Instances of ImageCodec may be registered. Once a codec has been registered, the format name associated with it may be used as the name parameter in the createImageEncoder() and createImageDecoder() methods. Additionally, subclasses of ImageCodec are able to perform recognition of their particular format, wither by inspection of a fixed-length file header or by arbitrary access to the source data stream. Format recognition is performed by two variants of the isFormatRecognized() method. Which variant should be called is determined ...
TIFFDirectory: A class representing an Image File Directory (IFD) from a TIFF 6.0 stream. The TIFF file format is described in more detail in the comments for the TIFFDescriptor class. A TIFF IFD consists of a set of TIFFField tags. Methods are provided to query the set of tags and to obtain the raw field array. In addition, convenience methods are provided for acquiring the values of tags that contain a single value that fits into a byte, int, long, float, or double. Every TIFF file is made up of one or more public IFDs that are joined in a linked list, rooted in the file header. A file may also contain so-called ...
TIFFEncodeParam: An instance of ImageEncodeParam for encoding images in the TIFF format. This class allows for the specification of encoding parameters. By default, the image is encoded without any compression, and is written out consisting of strips, not tiles. The particular compression scheme to be used can be specified by using the setCompression() method. The compression scheme specified will be honored only if it is compatible with the type of image being written out. For example, Group3 and Group4 compressions can only be used with Bilevel images. Writing of tiled TIFF images can be enabled by calling the ...
TIFFImageDecoder: A baseline TIFF reader. The reader has some functionality in addition to the baseline specifications for Bilevel images, for which the group 3 and group 4 decompression schemes have been implemented. Support for LZW decompression has also been added. Support for Horizontal differencing predictor decoding is also included, when used with LZW compression. However, this support is limited to data with bitsPerSample value of 8. When reading in RGB images, support for alpha and extraSamples being present has been added. Support for reading in images with 16 bit samples has been added. Support for the ...
JPEGEncodeParam: A class which encapsulates the most common functionality required for the parameters to a Jpeg encode operation. It does not include all of the parameters of the com.sun.image.codec.jpeg classes. Users needing that additional functionality should use those classes directly, bearing in mind that they are part of an uncommitted non-core interface that may be modified or removed in the future. This class makes very simple assumptions about the image colorspaces. Images with a single band are assumed to be grayscale. Images with three bands are assumed to be RGB and are encoded to YCbCr. This class ...
BMPImageEncoder: An ImageEncoder for the various versions of the BMP image file format. Unless specified otherwise by the BMPDecodeParam object passed to the constructor, Version 3 will be the default version used. If the image to be encoded has an IndexColorModel and can be encoded using upto 8 bits per pixel, the image will be written out as a Palette color image with an appropriate number of bits per pixel. For example an image having a 256 color IndexColorModel will be written out as a Palette image with 8 bits per pixel while one with a 16 color palette will be written out as a Palette image with 4 bits per ...
PNMImageEncoder: An ImageEncoder for the PNM family of file formats. The PNM file format includes PBM for monochrome images, PGM for grey scale images, and PPM for color images. When writing the source data out, the encoder chooses the appropriate file variant based on the actual SampleModel of the source image. In case the source image data is unsuitable for the PNM file format, for example when source has 4 bands or float data type, the encoder throws an Error. The raw file format is used wherever possible, unless the PNMEncodeParam object supplied to the constructor returns true from its getRaw() method.
FileCacheSeekableStream: A subclass of SeekableStream that may be used to wrap a regular InputStream . Seeking backwards is supported by means of a file cache. In circumstances that do not allow the creation of a temporary file (for example, due to security consideration or the absence of local disk), the MemoryCacheSeekableStream class may be used instead. The mark() and reset() methods are supported. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
RasterFactory: A convenience class for the construction of various types of WritableRaster and SampleModel objects. This class provides the capability of creating Raster s with the enumerated data types in the java.awt.image.DataBuffer. In some cases, instances of ComponentSampleModelJAI , a subclass of java.awt.image.ComponentSampleModel are instantiated instead of java.awt.image.BandedSampleModel in order to work around bugs in the current release of the Java 2 SDK.
TIFFField: A class representing a field in a TIFF 6.0 Image File Directory. The TIFF file format is described in more detail in the comments for the TIFFDescriptor class. A field in a TIFF Image File Directory (IFD). A field is defined as a sequence of values of identical data type. TIFF 6.0 defines 12 data types, which are mapped internally onto the Java datatypes byte, int, long, float, and double. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
BMPEncodeParam: An instance of ImageEncodeParam for encoding images in the BMP format. This class allows for the specification of various parameters while encoding (writing) a BMP format image file. By default, the version used is VERSION_3, no compression is used, and the data layout is bottom_up, such that the pixels are stored in bottom-up order, the first scanline being stored last. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
MemoryCacheSeekableStream: A subclass of SeekableStream that may be used to wrap a regular InputStream . Seeking backwards is supported by means of an in-memory cache. For greater efficiency, FileCacheSeekableStream should be used in circumstances that allow the creation of a temporary file. The mark() and reset() methods are supported. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
JPEGDecodeParam: An instance of ImageDecodeParam for decoding images in the JPEG format. This class allows for the specification of whether to decode the JPEG data into an image having a SampleModel which is a ComponentSampleModel or a subclass thereof. By default data are decoded into an image having a ComponentSampleModel . This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
SimpleRenderedImage: A simple class implemented the RenderedImage interface. Only the getTile() method needs to be implemented by subclasses. The instance variables must also be filled in properly. Normally in JAI PlanarImage is used for this purpose, but in the interest of making com.sun.media.jai.codec and com.sun.media.jai.codecimpl be as modular as possible the use of PlanarImage has been avoided.
PNMEncodeParam: An instance of ImageEncodeParam for encoding images in the PNM format. This class allows for the specification of whether to encode in the ASCII or raw variants of the PBM, PGM, and PPM formats. By default, raw encoding is used. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
PNMCodec: A subclass of ImageCodec that handles the PNM family of formats (PBM, PGM, PPM). The PBM format encodes a single-banded, 1-bit image. The PGM format encodes a single-banded image of any bit depth between 1 and 32. The PPM format encodes three-banded images of any bit depth between 1 and 32. All formats have an ASCII and a raw representation.
FileSeekableStream: A subclass of SeekableStream that takes its input from a File or RandomAccessFile . Backwards seeking is supported. The mark() and resest() methods are supported. This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
JPEGImageEncoder: An ImageEncoder for the JPEG (JFIF) file format. The common cases of single band grayscale and three or four band RGB images are handled so as to minimize the amount of information required of the programmer. See the comments pertaining to the constructor and the writeToStream() method for more detailed information.
| Home | Contact Us | Privacy Policy | Terms of Service |