magoffin.matt.meta.image.camera
Class Canon20D

java.lang.Object
  extended by magoffin.matt.meta.support.AbstractMetadataResource
      extended by magoffin.matt.meta.support.AbstractEnumMetadataResource<ImageMetadataType>
          extended by magoffin.matt.meta.image.EXIFJpegMetadataResource
              extended by magoffin.matt.meta.image.camera.Canon
                  extended by magoffin.matt.meta.image.camera.Canon20D
All Implemented Interfaces:
MetadataResource

public class Canon20D
extends Canon

A Canon 20D-specific implementation of EXIFJpegMetadataResource.

Version:
$Revision: 3 $ $Date: 2008-12-27 08:09:28 +1300 (Sat, 27 Dec 2008) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
static float FOCAL_EQUIV_35MM_X_FACTOR
          The field of view crop factor from the 20D focal length to a 35mm equivilent.
 
Fields inherited from class magoffin.matt.meta.image.EXIFJpegMetadataResource
EXIF_BASIC_DATE_FORMAT
 
Fields inherited from class magoffin.matt.meta.support.AbstractMetadataResource
log
 
Constructor Summary
Canon20D(java.io.InputStream in)
          Construct from an InputStream.
Canon20D(com.drew.metadata.Metadata exif)
          Construct from an existing EXIF Metadata instance.
 
Method Summary
protected  float getFocalLength35mmEquivFactor()
          Get a multiplication factor to convert the EXIF focal length into a 35mm equivalent length, for cameras that work this way.
 
Methods inherited from class magoffin.matt.meta.image.EXIFJpegMetadataResource
extractAperture, extractCameraMake, extractCameraModel, extractCreationDate, extractExposureBias, extractExposureTime, extractFlash, extractFocalLength, extractFocalLength35mmEquiv, extractFstop, extractGpsLatitude, extractGpsLongitude, extractOrientation, extractShutterSpeed, getExifInt, getExifRational, getExifString, getMetaInt, getMetaRational, getMetaString, parseExif, roundDecimal
 
Methods inherited from class magoffin.matt.meta.support.AbstractEnumMetadataResource
addError, addValue, getValue, getValues, setValue, setValues
 
Methods inherited from class magoffin.matt.meta.support.AbstractMetadataResource
addError, addValue, clearValues, getParsedKeys, getParseErrors, getValue, getValueList, getValues, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface magoffin.matt.meta.MetadataResource
getParsedKeys, getParseErrors, getValue, getValues
 

Field Detail

FOCAL_EQUIV_35MM_X_FACTOR

public static final float FOCAL_EQUIV_35MM_X_FACTOR
The field of view crop factor from the 20D focal length to a 35mm equivilent.

See Also:
Constant Field Values
Constructor Detail

Canon20D

public Canon20D(java.io.InputStream in)
Construct from an InputStream.

Parameters:
in - the JPEG input stream

Canon20D

public Canon20D(com.drew.metadata.Metadata exif)
Construct from an existing EXIF Metadata instance.

Parameters:
exif - the EXIF metadata
Method Detail

getFocalLength35mmEquivFactor

protected float getFocalLength35mmEquivFactor()
Description copied from class: EXIFJpegMetadataResource
Get a multiplication factor to convert the EXIF focal length into a 35mm equivalent length, for cameras that work this way.

This implementation returns 1, i.e. no multiplication factor. Extending classes can override this to provide a camera-specific value.

Overrides:
getFocalLength35mmEquivFactor in class EXIFJpegMetadataResource
Returns:
the focalLength35mmEquivFactor