com.drew.metadata.exif
Class CanonMakernoteDirectory

java.lang.Object
  extended by com.drew.metadata.Directory
      extended by com.drew.metadata.exif.CanonMakernoteDirectory

public class CanonMakernoteDirectory
extends Directory

Describes tags specific to Canon cameras. Thanks to Bill Richards for his contribution to this makernote directory. Many tag definitions explained here: http://www.ozhiker.com/electronics/pjmt/jpeg_info/canon_mn.html

Author:
Drew Noakes http://drewnoakes.com

Nested Class Summary
static class CanonMakernoteDirectory.AFInfo
           
static class CanonMakernoteDirectory.CameraSettings
           
static class CanonMakernoteDirectory.FocalLength
           
static class CanonMakernoteDirectory.Panorama
           
static class CanonMakernoteDirectory.ShotInfo
           
 
Field Summary
protected static HashMap<Integer,String> _tagNameMap
           
static int TAG_AF_INFO_ARRAY_2
           
static int TAG_AF_POINTS_IN_FOCUS_1D
           
static int TAG_AMBIANCE_INFO_ARRAY
           
static int TAG_ASPECT_INFO_ARRAY
           
static int TAG_CAMERA_INFO_ARRAY
           
static int TAG_CANON_CUSTOM_FUNCTIONS_ARRAY
           
static int TAG_CANON_FILE_LENGTH
           
static int TAG_CANON_FIRMWARE_VERSION
           
static int TAG_CANON_FLAGS_ARRAY
           
static int TAG_CANON_IMAGE_NUMBER
           
static int TAG_CANON_IMAGE_TYPE
           
static int TAG_CANON_OWNER_NAME
           
static int TAG_CANON_SERIAL_NUMBER
           
static int TAG_CATEGORIES
           
static int TAG_COLOR_BALANCE_ARRAY
           
static int TAG_COLOR_DATA_ARRAY_2
           
static int TAG_COLOR_INFO_ARRAY
           
static int TAG_COLOR_INFO_ARRAY_2
           
static int TAG_COLOR_SPACE
           
static int TAG_COLOR_TEMPERATURE
           
static int TAG_CROP_INFO
           
static int TAG_CUSTOM_FUNCTIONS_1D_ARRAY
           
static int TAG_CUSTOM_FUNCTIONS_ARRAY_2
           
static int TAG_CUSTOM_PICTURE_STYLE_FILE_NAME
           
static int TAG_DATE_STAMP_MODE
           
static int TAG_DUST_REMOVAL_DATA
           
static int TAG_FACE_DETECT_ARRAY_1
           
static int TAG_FACE_DETECT_ARRAY_2
           
static int TAG_FILE_INFO_ARRAY
           
static int TAG_FILTER_INFO_ARRAY
           
static int TAG_FIRMWARE_REVISION
           
static int TAG_IMAGE_UNIQUE_ID
           
static int TAG_LENS_INFO_ARRAY
           
static int TAG_LENS_MODEL
           
static int TAG_LIGHTING_OPTIMIZER_ARRAY
           
static int TAG_MEASURED_COLOR_ARRAY
           
static int TAG_MODEL_ID
           
static int TAG_MODIFIED_INFO_ARRAY
           
static int TAG_MOVIE_INFO_ARRAY
           
static int TAG_MY_COLORS
           
static int TAG_ORIGINAL_DECISION_DATA_OFFSET
           
static int TAG_PERSONAL_FUNCTION_VALUES_ARRAY
           
static int TAG_PERSONAL_FUNCTIONS_ARRAY
           
static int TAG_PREVIEW_IMAGE_INFO_ARRAY
           
static int TAG_PROCESSING_INFO_ARRAY
           
static int TAG_RAW_DATA_OFFSET
           
static int TAG_SENSOR_INFO_ARRAY
           
static int TAG_SERIAL_INFO_ARRAY
           
static int TAG_SERIAL_NUMBER_FORMAT
           
static int TAG_SHARPNESS_FREQ_TABLE
           
static int TAG_SHARPNESS_TABLE
           
static int TAG_SUPER_MACRO
           
static int TAG_THUMBNAIL_IMAGE_VALID_AREA
           
static int TAG_TONE_CURVE_MATCHING
           
static int TAG_TONE_CURVE_TABLE
           
static int TAG_VIGNETTING_CORRECTION_ARRAY_1
           
static int TAG_VIGNETTING_CORRECTION_ARRAY_2
           
static int TAG_VRD_OFFSET
           
static int TAG_WHITE_BALANCE_MATCHING
           
static int TAG_WHITE_BALANCE_TABLE
           
 
Fields inherited from class com.drew.metadata.Directory
_definedTagList, _descriptor, _tagMap
 
Constructor Summary
CanonMakernoteDirectory()
           
 
Method Summary
 String getName()
          Provides the name of the directory, for display purposes.
protected  HashMap<Integer,String> getTagNameMap()
          Provides the map of tag names, hashed by tag type identifier.
 void setIntArray(int tagType, int[] ints)
          Sets an int[] (array) for the specified tag.
 
Methods inherited from class com.drew.metadata.Directory
addError, containsTag, getBoolean, getBooleanObject, getByteArray, getDate, getDate, getDescription, getDouble, getDoubleObject, getErrorCount, getErrors, getFloat, getFloatObject, getInt, getIntArray, getInteger, getLong, getLongObject, getObject, getRational, getRationalArray, getString, getString, getStringArray, getTagCount, getTagName, getTags, hasErrors, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setDoubleArray, setFloat, setFloatArray, setInt, setLong, setObject, setObjectArray, setRational, setRationalArray, setString, setStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_CANON_IMAGE_TYPE

public static final int TAG_CANON_IMAGE_TYPE
See Also:
Constant Field Values

TAG_CANON_FIRMWARE_VERSION

public static final int TAG_CANON_FIRMWARE_VERSION
See Also:
Constant Field Values

TAG_CANON_IMAGE_NUMBER

public static final int TAG_CANON_IMAGE_NUMBER
See Also:
Constant Field Values

TAG_CANON_OWNER_NAME

public static final int TAG_CANON_OWNER_NAME
See Also:
Constant Field Values

TAG_CANON_SERIAL_NUMBER

public static final int TAG_CANON_SERIAL_NUMBER
See Also:
Constant Field Values

TAG_CAMERA_INFO_ARRAY

public static final int TAG_CAMERA_INFO_ARRAY
See Also:
Constant Field Values

TAG_CANON_FILE_LENGTH

public static final int TAG_CANON_FILE_LENGTH
See Also:
Constant Field Values

TAG_CANON_CUSTOM_FUNCTIONS_ARRAY

public static final int TAG_CANON_CUSTOM_FUNCTIONS_ARRAY
See Also:
Constant Field Values

TAG_MODEL_ID

public static final int TAG_MODEL_ID
See Also:
Constant Field Values

TAG_MOVIE_INFO_ARRAY

public static final int TAG_MOVIE_INFO_ARRAY
See Also:
Constant Field Values

TAG_THUMBNAIL_IMAGE_VALID_AREA

public static final int TAG_THUMBNAIL_IMAGE_VALID_AREA
See Also:
Constant Field Values

TAG_SERIAL_NUMBER_FORMAT

public static final int TAG_SERIAL_NUMBER_FORMAT
See Also:
Constant Field Values

TAG_SUPER_MACRO

public static final int TAG_SUPER_MACRO
See Also:
Constant Field Values

TAG_DATE_STAMP_MODE

public static final int TAG_DATE_STAMP_MODE
See Also:
Constant Field Values

TAG_MY_COLORS

public static final int TAG_MY_COLORS
See Also:
Constant Field Values

TAG_FIRMWARE_REVISION

public static final int TAG_FIRMWARE_REVISION
See Also:
Constant Field Values

TAG_CATEGORIES

public static final int TAG_CATEGORIES
See Also:
Constant Field Values

TAG_FACE_DETECT_ARRAY_1

public static final int TAG_FACE_DETECT_ARRAY_1
See Also:
Constant Field Values

TAG_FACE_DETECT_ARRAY_2

public static final int TAG_FACE_DETECT_ARRAY_2
See Also:
Constant Field Values

TAG_AF_INFO_ARRAY_2

public static final int TAG_AF_INFO_ARRAY_2
See Also:
Constant Field Values

TAG_IMAGE_UNIQUE_ID

public static final int TAG_IMAGE_UNIQUE_ID
See Also:
Constant Field Values

TAG_RAW_DATA_OFFSET

public static final int TAG_RAW_DATA_OFFSET
See Also:
Constant Field Values

TAG_ORIGINAL_DECISION_DATA_OFFSET

public static final int TAG_ORIGINAL_DECISION_DATA_OFFSET
See Also:
Constant Field Values

TAG_CUSTOM_FUNCTIONS_1D_ARRAY

public static final int TAG_CUSTOM_FUNCTIONS_1D_ARRAY
See Also:
Constant Field Values

TAG_PERSONAL_FUNCTIONS_ARRAY

public static final int TAG_PERSONAL_FUNCTIONS_ARRAY
See Also:
Constant Field Values

TAG_PERSONAL_FUNCTION_VALUES_ARRAY

public static final int TAG_PERSONAL_FUNCTION_VALUES_ARRAY
See Also:
Constant Field Values

TAG_FILE_INFO_ARRAY

public static final int TAG_FILE_INFO_ARRAY
See Also:
Constant Field Values

TAG_AF_POINTS_IN_FOCUS_1D

public static final int TAG_AF_POINTS_IN_FOCUS_1D
See Also:
Constant Field Values

TAG_LENS_MODEL

public static final int TAG_LENS_MODEL
See Also:
Constant Field Values

TAG_SERIAL_INFO_ARRAY

public static final int TAG_SERIAL_INFO_ARRAY
See Also:
Constant Field Values

TAG_DUST_REMOVAL_DATA

public static final int TAG_DUST_REMOVAL_DATA
See Also:
Constant Field Values

TAG_CROP_INFO

public static final int TAG_CROP_INFO
See Also:
Constant Field Values

TAG_CUSTOM_FUNCTIONS_ARRAY_2

public static final int TAG_CUSTOM_FUNCTIONS_ARRAY_2
See Also:
Constant Field Values

TAG_ASPECT_INFO_ARRAY

public static final int TAG_ASPECT_INFO_ARRAY
See Also:
Constant Field Values

TAG_PROCESSING_INFO_ARRAY

public static final int TAG_PROCESSING_INFO_ARRAY
See Also:
Constant Field Values

TAG_TONE_CURVE_TABLE

public static final int TAG_TONE_CURVE_TABLE
See Also:
Constant Field Values

TAG_SHARPNESS_TABLE

public static final int TAG_SHARPNESS_TABLE
See Also:
Constant Field Values

TAG_SHARPNESS_FREQ_TABLE

public static final int TAG_SHARPNESS_FREQ_TABLE
See Also:
Constant Field Values

TAG_WHITE_BALANCE_TABLE

public static final int TAG_WHITE_BALANCE_TABLE
See Also:
Constant Field Values

TAG_COLOR_BALANCE_ARRAY

public static final int TAG_COLOR_BALANCE_ARRAY
See Also:
Constant Field Values

TAG_MEASURED_COLOR_ARRAY

public static final int TAG_MEASURED_COLOR_ARRAY
See Also:
Constant Field Values

TAG_COLOR_TEMPERATURE

public static final int TAG_COLOR_TEMPERATURE
See Also:
Constant Field Values

TAG_CANON_FLAGS_ARRAY

public static final int TAG_CANON_FLAGS_ARRAY
See Also:
Constant Field Values

TAG_MODIFIED_INFO_ARRAY

public static final int TAG_MODIFIED_INFO_ARRAY
See Also:
Constant Field Values

TAG_TONE_CURVE_MATCHING

public static final int TAG_TONE_CURVE_MATCHING
See Also:
Constant Field Values

TAG_WHITE_BALANCE_MATCHING

public static final int TAG_WHITE_BALANCE_MATCHING
See Also:
Constant Field Values

TAG_COLOR_SPACE

public static final int TAG_COLOR_SPACE
See Also:
Constant Field Values

TAG_PREVIEW_IMAGE_INFO_ARRAY

public static final int TAG_PREVIEW_IMAGE_INFO_ARRAY
See Also:
Constant Field Values

TAG_VRD_OFFSET

public static final int TAG_VRD_OFFSET
See Also:
Constant Field Values

TAG_SENSOR_INFO_ARRAY

public static final int TAG_SENSOR_INFO_ARRAY
See Also:
Constant Field Values

TAG_COLOR_DATA_ARRAY_2

public static final int TAG_COLOR_DATA_ARRAY_2
See Also:
Constant Field Values

TAG_COLOR_INFO_ARRAY_2

public static final int TAG_COLOR_INFO_ARRAY_2
See Also:
Constant Field Values

TAG_CUSTOM_PICTURE_STYLE_FILE_NAME

public static final int TAG_CUSTOM_PICTURE_STYLE_FILE_NAME
See Also:
Constant Field Values

TAG_COLOR_INFO_ARRAY

public static final int TAG_COLOR_INFO_ARRAY
See Also:
Constant Field Values

TAG_VIGNETTING_CORRECTION_ARRAY_1

public static final int TAG_VIGNETTING_CORRECTION_ARRAY_1
See Also:
Constant Field Values

TAG_VIGNETTING_CORRECTION_ARRAY_2

public static final int TAG_VIGNETTING_CORRECTION_ARRAY_2
See Also:
Constant Field Values

TAG_LIGHTING_OPTIMIZER_ARRAY

public static final int TAG_LIGHTING_OPTIMIZER_ARRAY
See Also:
Constant Field Values

TAG_LENS_INFO_ARRAY

public static final int TAG_LENS_INFO_ARRAY
See Also:
Constant Field Values

TAG_AMBIANCE_INFO_ARRAY

public static final int TAG_AMBIANCE_INFO_ARRAY
See Also:
Constant Field Values

TAG_FILTER_INFO_ARRAY

public static final int TAG_FILTER_INFO_ARRAY
See Also:
Constant Field Values

_tagNameMap

protected static final HashMap<Integer,String> _tagNameMap
Constructor Detail

CanonMakernoteDirectory

public CanonMakernoteDirectory()
Method Detail

getName

public String getName()
Description copied from class: Directory
Provides the name of the directory, for display purposes. E.g. Exif

Specified by:
getName in class Directory
Returns:
the name of the directory

getTagNameMap

protected HashMap<Integer,String> getTagNameMap()
Description copied from class: Directory
Provides the map of tag names, hashed by tag type identifier.

Specified by:
getTagNameMap in class Directory
Returns:
the map of tag names

setIntArray

public void setIntArray(int tagType,
                        int[] ints)
Description copied from class: Directory
Sets an int[] (array) for the specified tag.

Overrides:
setIntArray in class Directory
Parameters:
tagType - the tag identifier
ints - the int array to store


Copyright © 2012. All Rights Reserved.