| 1 | /*
|
|---|
| 2 | * Copyright 2002-2016 Drew Noakes
|
|---|
| 3 | *
|
|---|
| 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
|---|
| 5 | * you may not use this file except in compliance with the License.
|
|---|
| 6 | * You may obtain a copy of the License at
|
|---|
| 7 | *
|
|---|
| 8 | * http://www.apache.org/licenses/LICENSE-2.0
|
|---|
| 9 | *
|
|---|
| 10 | * Unless required by applicable law or agreed to in writing, software
|
|---|
| 11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
|---|
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|---|
| 13 | * See the License for the specific language governing permissions and
|
|---|
| 14 | * limitations under the License.
|
|---|
| 15 | *
|
|---|
| 16 | * More information about this project is available at:
|
|---|
| 17 | *
|
|---|
| 18 | * https://drewnoakes.com/code/exif/
|
|---|
| 19 | * https://github.com/drewnoakes/metadata-extractor
|
|---|
| 20 | */
|
|---|
| 21 | package com.drew.metadata.exif.makernotes;
|
|---|
| 22 |
|
|---|
| 23 | import com.drew.lang.annotations.NotNull;
|
|---|
| 24 | import com.drew.metadata.Directory;
|
|---|
| 25 |
|
|---|
| 26 | import java.util.HashMap;
|
|---|
| 27 |
|
|---|
| 28 | /**
|
|---|
| 29 | * Describes tags specific to Kodak cameras.
|
|---|
| 30 | *
|
|---|
| 31 | * @author Drew Noakes https://drewnoakes.com
|
|---|
| 32 | */
|
|---|
| 33 | public class KodakMakernoteDirectory extends Directory
|
|---|
| 34 | {
|
|---|
| 35 | public final static int TAG_KODAK_MODEL = 0;
|
|---|
| 36 | public final static int TAG_QUALITY = 9;
|
|---|
| 37 | public final static int TAG_BURST_MODE = 10;
|
|---|
| 38 | public final static int TAG_IMAGE_WIDTH = 12;
|
|---|
| 39 | public final static int TAG_IMAGE_HEIGHT = 14;
|
|---|
| 40 | public final static int TAG_YEAR_CREATED = 16;
|
|---|
| 41 | public final static int TAG_MONTH_DAY_CREATED = 18;
|
|---|
| 42 | public final static int TAG_TIME_CREATED = 20;
|
|---|
| 43 | public final static int TAG_BURST_MODE_2 = 24;
|
|---|
| 44 | public final static int TAG_SHUTTER_MODE = 27;
|
|---|
| 45 | public final static int TAG_METERING_MODE = 28;
|
|---|
| 46 | public final static int TAG_SEQUENCE_NUMBER = 29;
|
|---|
| 47 | public final static int TAG_F_NUMBER = 30;
|
|---|
| 48 | public final static int TAG_EXPOSURE_TIME = 32;
|
|---|
| 49 | public final static int TAG_EXPOSURE_COMPENSATION = 36;
|
|---|
| 50 | public final static int TAG_FOCUS_MODE = 56;
|
|---|
| 51 | public final static int TAG_WHITE_BALANCE = 64;
|
|---|
| 52 | public final static int TAG_FLASH_MODE = 92;
|
|---|
| 53 | public final static int TAG_FLASH_FIRED = 93;
|
|---|
| 54 | public final static int TAG_ISO_SETTING = 94;
|
|---|
| 55 | public final static int TAG_ISO = 96;
|
|---|
| 56 | public final static int TAG_TOTAL_ZOOM = 98;
|
|---|
| 57 | public final static int TAG_DATE_TIME_STAMP = 100;
|
|---|
| 58 | public final static int TAG_COLOR_MODE = 102;
|
|---|
| 59 | public final static int TAG_DIGITAL_ZOOM = 104;
|
|---|
| 60 | public final static int TAG_SHARPNESS = 107;
|
|---|
| 61 |
|
|---|
| 62 | @NotNull
|
|---|
| 63 | protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
|
|---|
| 64 |
|
|---|
| 65 | static
|
|---|
| 66 | {
|
|---|
| 67 | _tagNameMap.put(TAG_KODAK_MODEL, "Kodak Model");
|
|---|
| 68 | _tagNameMap.put(TAG_QUALITY, "Quality");
|
|---|
| 69 | _tagNameMap.put(TAG_BURST_MODE, "Burst Mode");
|
|---|
| 70 | _tagNameMap.put(TAG_IMAGE_WIDTH, "Image Width");
|
|---|
| 71 | _tagNameMap.put(TAG_IMAGE_HEIGHT, "Image Height");
|
|---|
| 72 | _tagNameMap.put(TAG_YEAR_CREATED, "Year Created");
|
|---|
| 73 | _tagNameMap.put(TAG_MONTH_DAY_CREATED, "Month/Day Created");
|
|---|
| 74 | _tagNameMap.put(TAG_TIME_CREATED, "Time Created");
|
|---|
| 75 | _tagNameMap.put(TAG_BURST_MODE_2, "Burst Mode 2");
|
|---|
| 76 | _tagNameMap.put(TAG_SHUTTER_MODE, "Shutter Speed");
|
|---|
| 77 | _tagNameMap.put(TAG_METERING_MODE, "Metering Mode");
|
|---|
| 78 | _tagNameMap.put(TAG_SEQUENCE_NUMBER, "Sequence Number");
|
|---|
| 79 | _tagNameMap.put(TAG_F_NUMBER, "F Number");
|
|---|
| 80 | _tagNameMap.put(TAG_EXPOSURE_TIME, "Exposure Time");
|
|---|
| 81 | _tagNameMap.put(TAG_EXPOSURE_COMPENSATION, "Exposure Compensation");
|
|---|
| 82 | _tagNameMap.put(TAG_FOCUS_MODE, "Focus Mode");
|
|---|
| 83 | _tagNameMap.put(TAG_WHITE_BALANCE, "White Balance");
|
|---|
| 84 | _tagNameMap.put(TAG_FLASH_MODE, "Flash Mode");
|
|---|
| 85 | _tagNameMap.put(TAG_FLASH_FIRED, "Flash Fired");
|
|---|
| 86 | _tagNameMap.put(TAG_ISO_SETTING, "ISO Setting");
|
|---|
| 87 | _tagNameMap.put(TAG_ISO, "ISO");
|
|---|
| 88 | _tagNameMap.put(TAG_TOTAL_ZOOM, "Total Zoom");
|
|---|
| 89 | _tagNameMap.put(TAG_DATE_TIME_STAMP, "Date/Time Stamp");
|
|---|
| 90 | _tagNameMap.put(TAG_COLOR_MODE, "Color Mode");
|
|---|
| 91 | _tagNameMap.put(TAG_DIGITAL_ZOOM, "Digital Zoom");
|
|---|
| 92 | _tagNameMap.put(TAG_SHARPNESS, "Sharpness");
|
|---|
| 93 | }
|
|---|
| 94 |
|
|---|
| 95 | public KodakMakernoteDirectory()
|
|---|
| 96 | {
|
|---|
| 97 | this.setDescriptor(new KodakMakernoteDescriptor(this));
|
|---|
| 98 | }
|
|---|
| 99 |
|
|---|
| 100 | @Override
|
|---|
| 101 | @NotNull
|
|---|
| 102 | public String getName()
|
|---|
| 103 | {
|
|---|
| 104 | return "Kodak Makernote";
|
|---|
| 105 | }
|
|---|
| 106 |
|
|---|
| 107 | @Override
|
|---|
| 108 | @NotNull
|
|---|
| 109 | protected HashMap<Integer, String> getTagNameMap()
|
|---|
| 110 | {
|
|---|
| 111 | return _tagNameMap;
|
|---|
| 112 | }
|
|---|
| 113 | }
|
|---|