Class MetadataExtractor.PanasonicMakernoteDirectory

  • Enclosing class:
    MetadataExtractor

    public class MetadataExtractor.PanasonicMakernoteDirectory
    extends MetadataExtractor.Directory
    Describes tags specific to Panasonic and Leica cameras.
    Author:
    Drew Noakes https://drewnoakes.com, Philipp Sandhaus
    • Field Detail

      • TAG_QUALITY_MODE

        public static final int TAG_QUALITY_MODE

        2 = High
        3 = Normal
        6 = Very High
        7 = Raw
        9 = Motion Picture
        See Also:
        Constant Field Values
      • TAG_WHITE_BALANCE

        public static final int TAG_WHITE_BALANCE

        1 = Auto
        2 = Daylight
        3 = Cloudy
        4 = Incandescent
        5 = Manual
        8 = Flash
        10 = Black & White
        11 = Manual
        12 = Shade
        See Also:
        Constant Field Values
      • TAG_FOCUS_MODE

        public static final int TAG_FOCUS_MODE

        1 = Auto
        2 = Manual
        4 = Auto, Focus Button
        5 = Auto, Continuous
        See Also:
        Constant Field Values
      • TAG_AF_AREA_MODE

        public static final int TAG_AF_AREA_MODE

        2 bytes
        (DMC-FZ10)
        '0 1' = Spot Mode On
        '0 16' = Spot Mode Off
        '(other models)
        16 = Normal?
        '0 1' = 9-area
        '0 16' = 3-area (high speed)
        '1 0' = Spot Focusing
        '1 1' = 5-area
        '16 0' = 1-area
        '16 16' = 1-area (high speed)
        '32 0' = Auto or Face Detect
        '32 1' = 3-area (left)?
        '32 2' = 3-area (center)?
        '32 3' = 3-area (right)?
        '64 0' = Face Detect
        See Also:
        Constant Field Values
      • TAG_IMAGE_STABILIZATION

        public static final int TAG_IMAGE_STABILIZATION

        2 = On, Mode 1
        3 = Off
        4 = On, Mode 2
        See Also:
        Constant Field Values
      • TAG_RECORD_MODE

        public static final int TAG_RECORD_MODE

        1 = Normal
        2 = Portrait
        3 = Scenery
        4 = Sports
        5 = Night Portrait
        6 = Program
        7 = Aperture Priority
        8 = Shutter Priority
        9 = Macro
        10= Spot
        11= Manual
        12= Movie Preview
        13= Panning
        14= Simple
        15= Color Effects
        16= Self Portrait
        17= Economy
        18= Fireworks
        19= Party
        20= Snow
        21= Night Scenery
        22= Food
        23= Baby
        24= Soft Skin
        25= Candlelight
        26= Starry Night
        27= High Sensitivity
        28= Panorama Assist
        29= Underwater
        30= Beach
        31= Aerial Photo
        32= Sunset
        33= Pet
        34= Intelligent ISO
        35= Clipboard
        36= High Speed Continuous Shooting
        37= Intelligent Auto
        39= Multi-aspect
        41= Transform
        42= Flash Burst
        43= Pin Hole
        44= Film Grain
        45= My Color
        46= Photo Frame
        51= HDR
        See Also:
        Constant Field Values
      • TAG_UNKNOWN_DATA_DUMP

        public static final int TAG_UNKNOWN_DATA_DUMP
        No idea, what this is
        See Also:
        Constant Field Values
      • TAG_INTERNAL_SERIAL_NUMBER

        public static final int TAG_INTERNAL_SERIAL_NUMBER
        this number is unique, and contains the date of manufacture, but is not the same as the number printed on the camera body
        See Also:
        Constant Field Values
      • TAG_EXIF_VERSION

        public static final int TAG_EXIF_VERSION
        Panasonic Exif Version
        See Also:
        Constant Field Values
      • TAG_COLOR_EFFECT

        public static final int TAG_COLOR_EFFECT
        1 = Off
        2 = Warm
        3 = Cool
        4 = Black & White
        5 = Sepia
        See Also:
        Constant Field Values
      • TAG_UPTIME

        public static final int TAG_UPTIME
        4 Bytes
        Time in 1/100 s from when the camera was powered on to when the image is written to memory card
        See Also:
        Constant Field Values
      • TAG_BURST_MODE

        public static final int TAG_BURST_MODE
        0 = Off
        1 = On
        2 = Infinite
        4 = Unlimited
        See Also:
        Constant Field Values
      • TAG_CONTRAST_MODE

        public static final int TAG_CONTRAST_MODE
        (this decoding seems to work for some models such as the LC1, LX2, FZ7, FZ8, FZ18 and FZ50, but may not be correct for other models such as the FX10, G1, L1, L10 and LC80)
        0x0 = Normal
        0x1 = Low
        0x2 = High
        0x6 = Medium Low
        0x7 = Medium High
        0x100 = Low
        0x110 = Normal
        0x120 = High
        (these values are used by the GF1)
        0 = -2
        1 = -1
        2 = Normal
        3 = +1
        4 = +2
        7 = Nature (Color Film)
        12 = Smooth (Color Film) or Pure (My Color)
        17 = Dynamic (B&W Film)
        22 = Smooth (B&W Film)
        27 = Dynamic (Color Film)
        32 = Vibrant (Color Film) or Expressive (My Color)
        33 = Elegant (My Color)
        37 = Nostalgic (Color Film)
        41 = Dynamic Art (My Color)
        42 = Retro (My Color)
        See Also:
        Constant Field Values
      • TAG_NOISE_REDUCTION

        public static final int TAG_NOISE_REDUCTION
        0 = Standard
        1 = Low (-1)
        2 = High (+1)
        3 = Lowest (-2)
        4 = Highest (+2)
        See Also:
        Constant Field Values
      • TAG_SELF_TIMER

        public static final int TAG_SELF_TIMER
        1 = Off
        2 = 10 s
        3 = 2 s
        See Also:
        Constant Field Values
      • TAG_ROTATION

        public static final int TAG_ROTATION
        1 = 0 DG
        3 = 180 DG
        6 = 90 DG
        8 = 270 DG
        See Also:
        Constant Field Values
      • TAG_AF_ASSIST_LAMP

        public static final int TAG_AF_ASSIST_LAMP
        1 = Fired
        2 = Enabled nut not used
        3 = Disabled but required
        4 = Disabled and not required
        See Also:
        Constant Field Values
      • TAG_COLOR_MODE

        public static final int TAG_COLOR_MODE
        0 = Normal
        1 = Natural
        2 = Vivid
        See Also:
        Constant Field Values
      • TAG_OPTICAL_ZOOM_MODE

        public static final int TAG_OPTICAL_ZOOM_MODE
        1 = Standard
        2 = Extended
        See Also:
        Constant Field Values
      • TAG_CONVERSION_LENS

        public static final int TAG_CONVERSION_LENS
        1 = Off
        2 = Wide
        3 = Telephoto
        4 = Macro
        See Also:
        Constant Field Values
      • TAG_WORLD_TIME_LOCATION

        public static final int TAG_WORLD_TIME_LOCATION

        1 = Home
        2 = Destination
        See Also:
        Constant Field Values
      • TAG_ADVANCED_SCENE_MODE

        public static final int TAG_ADVANCED_SCENE_MODE

        1 = Normal
        2 = Outdoor/Illuminations/Flower/HDR Art
        3 = Indoor/Architecture/Objects/HDR B&W
        4 = Creative
        5 = Auto
        7 = Expressive
        8 = Retro
        9 = Pure
        10 = Elegant
        12 = Monochrome
        13 = Dynamic Art
        14 = Silhouette
        See Also:
        Constant Field Values
      • TAG_TEXT_STAMP_1

        public static final int TAG_TEXT_STAMP_1
        1 = Off
        2 = On
        See Also:
        Constant Field Values
      • TAG_WB_ADJUST_AB

        public static final int TAG_WB_ADJUST_AB
        WB adjust AB. Positive is a shift toward blue.
        See Also:
        Constant Field Values
      • TAG_WB_ADJUST_GM

        public static final int TAG_WB_ADJUST_GM
        WB adjust GM. Positive is a shift toward green.
        See Also:
        Constant Field Values
      • TAG_LONG_EXPOSURE_NOISE_REDUCTION

        public static final int TAG_LONG_EXPOSURE_NOISE_REDUCTION
        See Also:
        Constant Field Values
      • TAG_PANASONIC_IMAGE_WIDTH

        public static final int TAG_PANASONIC_IMAGE_WIDTH
        See Also:
        Constant Field Values
      • TAG_PANASONIC_IMAGE_HEIGHT

        public static final int TAG_PANASONIC_IMAGE_HEIGHT
        See Also:
        Constant Field Values
      • TAG_FACE_DETECTION_INFO

        public static final int TAG_FACE_DETECTION_INFO

        Integer (16Bit) Indexes:
        0 Number Face Positions (maybe less than Faces Detected)
        1-4 Face Position 1
        5-8 Face Position 2
        and so on

        The four Integers are interpreted as follows:
        (XYWH) X,Y Center of Face, (W,H) Width and Height
        All values are in respect to double the size of the thumbnail image
        See Also:
        Constant Field Values
      • TAG_ACCESSORY_SERIAL_NUMBER

        public static final int TAG_ACCESSORY_SERIAL_NUMBER
        See Also:
        Constant Field Values
      • TAG_TRANSFORM

        public static final int TAG_TRANSFORM
        (decoded as two 16-bit signed integers) '-1 1' = Slim Low '-3 2' = Slim High '0 0' = Off '1 1' = Stretch Low '3 2' = Stretch High
        See Also:
        Constant Field Values
      • TAG_INTELLIGENT_EXPOSURE

        public static final int TAG_INTELLIGENT_EXPOSURE
        0 = Off
        1 = Low
        2 = Standard
        3 = High
        See Also:
        Constant Field Values
      • TAG_LENS_FIRMWARE_VERSION

        public static final int TAG_LENS_FIRMWARE_VERSION
        See Also:
        Constant Field Values
      • TAG_INTELLIGENT_D_RANGE

        public static final int TAG_INTELLIGENT_D_RANGE
        See Also:
        Constant Field Values
      • TAG_SHADING_COMPENSATION

        public static final int TAG_SHADING_COMPENSATION
        See Also:
        Constant Field Values
      • TAG_SWEEP_PANORAMA_DIRECTION

        public static final int TAG_SWEEP_PANORAMA_DIRECTION
        See Also:
        Constant Field Values
      • TAG_SWEEP_PANORAMA_FIELD_OF_VIEW

        public static final int TAG_SWEEP_PANORAMA_FIELD_OF_VIEW
        See Also:
        Constant Field Values
      • TAG_CLEAR_RETOUCH_VALUE

        public static final int TAG_CLEAR_RETOUCH_VALUE
        See Also:
        Constant Field Values
      • TAG_PRINT_IMAGE_MATCHING_INFO

        public static final int TAG_PRINT_IMAGE_MATCHING_INFO
        Info at http://www.ozhiker.com/electronics/pjmt/jpeg_info/pim.html
        See Also:
        Constant Field Values
      • TAG_FACE_RECOGNITION_INFO

        public static final int TAG_FACE_RECOGNITION_INFO
        Byte Indexes:
        0 Int (2 Byte) Number of Recognized Faces
        4 String(20 Byte) Recognized Face 1 Name
        24 4 Int (8 Byte) Recognized Face 1 Position (Same Format as Face Detection)
        32 String(20 Byte) Recognized Face 1 Age
        52 String(20 Byte) Recognized Face 2 Name
        72 4 Int (8 Byte) Recognized Face 2 Position (Same Format as Face Detection)
        80 String(20 Byte) Recognized Face 2 Age

        And so on

        The four Integers are interpreted as follows:
        (XYWH) X,Y Center of Face, (W,H) Width and Height
        All values are in respect to double the size of the thumbnail image
        See Also:
        Constant Field Values
      • TAG_FLASH_WARNING

        public static final int TAG_FLASH_WARNING
        0 = No
        1 = Yes
        See Also:
        Constant Field Values
      • TAG_RECOGNIZED_FACE_FLAGS

        public static final int TAG_RECOGNIZED_FACE_FLAGS
        See Also:
        Constant Field Values
      • TAG_INTELLIGENT_RESOLUTION

        public static final int TAG_INTELLIGENT_RESOLUTION
        0 = Off
        2 = Auto
        3 = On
        See Also:
        Constant Field Values
      • TAG_TRANSFORM_1

        public static final int TAG_TRANSFORM_1
        (decoded as two 16-bit signed integers) '-1 1' = Slim Low '-3 2' = Slim High '0 0' = Off '1 1' = Stretch Low '3 2' = Stretch High
        See Also:
        Constant Field Values
      • _tagNameMap

        private final java.util.HashMap<java.lang.Integer,​java.lang.String> _tagNameMap
    • Constructor Detail

      • PanasonicMakernoteDirectory

        public PanasonicMakernoteDirectory()
    • Method Detail

      • getAge

        public MetadataExtractor.Age getAge​(int tag)
        Attempts to convert the underlying string value (as stored in the directory) into an Age object.
        Parameters:
        tag - The tag identifier.
        Returns:
        The parsed Age object, or null if the tag was empty of the value unable to be parsed.