JpegDirectory Class Reference

Inherits com::drew::metadata::Directory.

Collaboration diagram for JpegDirectory:

Collaboration graph
[legend]

List of all members.

Public Member Functions

JpegComponent getComponent (int componentNumber)
int getImageHeight () throws MetadataException
int getImageWidth () throws MetadataException
String getName ()
int getNumberOfComponents () throws MetadataException
 JpegDirectory ()

Static Public Attributes

static final int TAG_JPEG_COMPONENT_DATA_1 = 6
static final int TAG_JPEG_COMPONENT_DATA_2 = 7
static final int TAG_JPEG_COMPONENT_DATA_3 = 8
static final int TAG_JPEG_COMPONENT_DATA_4 = 9
static final int TAG_JPEG_DATA_PRECISION = 0
static final int TAG_JPEG_IMAGE_HEIGHT = 1
static final int TAG_JPEG_IMAGE_WIDTH = 3
static final int TAG_JPEG_NUMBER_OF_COMPONENTS = 5

Protected Member Functions

HashMap getTagNameMap ()

Static Protected Attributes

static final HashMap tagNameMap = new HashMap()

Static Package Functions

 [static initializer]


Detailed Description

Directory of tags and values for the SOF0 Jpeg segment. This segment holds basic metadata about the image. Date: Aug 2, 2003
Author:
Darrell Silver http://www.darrellsilver.com & Drew Noakes

Constructor & Destructor Documentation

JpegDirectory (  ) 


Member Function Documentation

[static initializer] (  )  [static, package]

JpegComponent getComponent ( int  componentNumber  ) 

Parameters:
componentNumber The zero-based index of the component. This number is normally between 0 and 3. Use getNumberOfComponents for bounds-checking.
Returns:

int getImageHeight (  )  throws MetadataException

int getImageWidth (  )  throws MetadataException

String getName (  )  [virtual]

Provides the name of the directory, for display purposes. E.g. Exif

Returns:
the name of the directory

Implements Directory.

int getNumberOfComponents (  )  throws MetadataException

HashMap getTagNameMap (  )  [protected, virtual]

Provides the map of tag names, hashed by tag type identifier.

Returns:
the map of tag names

Implements Directory.


Member Data Documentation

final int TAG_JPEG_COMPONENT_DATA_1 = 6 [static]

the first of a possible 4 color components. Number of components specified in TAG_JPEG_NUMBER_OF_COMPONENTS.

final int TAG_JPEG_COMPONENT_DATA_2 = 7 [static]

the second of a possible 4 color components. Number of components specified in TAG_JPEG_NUMBER_OF_COMPONENTS.

final int TAG_JPEG_COMPONENT_DATA_3 = 8 [static]

the third of a possible 4 color components. Number of components specified in TAG_JPEG_NUMBER_OF_COMPONENTS.

final int TAG_JPEG_COMPONENT_DATA_4 = 9 [static]

the fourth of a possible 4 color components. Number of components specified in TAG_JPEG_NUMBER_OF_COMPONENTS.

final int TAG_JPEG_DATA_PRECISION = 0 [static]

This is in bits/sample, usually 8 (12 and 16 not supported by most software).

final int TAG_JPEG_IMAGE_HEIGHT = 1 [static]

The image's height. Necessary for decoding the image, so it should always be there.

final int TAG_JPEG_IMAGE_WIDTH = 3 [static]

The image's width. Necessary for decoding the image, so it should always be there.

final int TAG_JPEG_NUMBER_OF_COMPONENTS = 5 [static]

Usually 1 = grey scaled, 3 = color YcbCr or YIQ, 4 = color CMYK Each component TAG_COMPONENT_DATA_[1-4], has the following meaning: component Id(1byte)(1 = Y, 2 = Cb, 3 = Cr, 4 = I, 5 = Q), sampling factors (1byte) (bit 0-3 vertical., 4-7 horizontal.), quantization table number (1 byte).

This info is from http://www.funducode.com/freec/Fileformats/format3/format3b.htm

final HashMap tagNameMap = new HashMap() [static, protected]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:30 2012 for Project Wonder by  doxygen 1.5.8