| 1 | /*
|
|---|
| 2 | * Copyright 2002-2015 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 |
|
|---|
| 22 | package com.drew.metadata.exif.makernotes;
|
|---|
| 23 |
|
|---|
| 24 | import com.drew.lang.annotations.NotNull;
|
|---|
| 25 | import com.drew.metadata.Directory;
|
|---|
| 26 |
|
|---|
| 27 | import java.util.HashMap;
|
|---|
| 28 |
|
|---|
| 29 | /**
|
|---|
| 30 | * Describes tags specific to Sanyo cameras.
|
|---|
| 31 | *
|
|---|
| 32 | * @author Drew Noakes https://drewnoakes.com
|
|---|
| 33 | */
|
|---|
| 34 | public class SanyoMakernoteDirectory extends Directory
|
|---|
| 35 | {
|
|---|
| 36 | public static final int TAG_MAKERNOTE_OFFSET = 0x00ff;
|
|---|
| 37 |
|
|---|
| 38 | public static final int TAG_SANYO_THUMBNAIL = 0x0100;
|
|---|
| 39 |
|
|---|
| 40 | public static final int TAG_SPECIAL_MODE = 0x0200;
|
|---|
| 41 | public static final int TAG_SANYO_QUALITY = 0x0201;
|
|---|
| 42 | public static final int TAG_MACRO = 0x0202;
|
|---|
| 43 | public static final int TAG_DIGITAL_ZOOM = 0x0204;
|
|---|
| 44 | public static final int TAG_SOFTWARE_VERSION = 0x0207;
|
|---|
| 45 | public static final int TAG_PICT_INFO = 0x0208;
|
|---|
| 46 | public static final int TAG_CAMERA_ID = 0x0209;
|
|---|
| 47 | public static final int TAG_SEQUENTIAL_SHOT = 0x020e;
|
|---|
| 48 | public static final int TAG_WIDE_RANGE = 0x020f;
|
|---|
| 49 | public static final int TAG_COLOR_ADJUSTMENT_MODE = 0x0210;
|
|---|
| 50 | public static final int TAG_QUICK_SHOT = 0x0213;
|
|---|
| 51 | public static final int TAG_SELF_TIMER = 0x0214;
|
|---|
| 52 | public static final int TAG_VOICE_MEMO = 0x0216;
|
|---|
| 53 | public static final int TAG_RECORD_SHUTTER_RELEASE = 0x0217;
|
|---|
| 54 | public static final int TAG_FLICKER_REDUCE = 0x0218;
|
|---|
| 55 | public static final int TAG_OPTICAL_ZOOM_ON = 0x0219;
|
|---|
| 56 | public static final int TAG_DIGITAL_ZOOM_ON = 0x021b;
|
|---|
| 57 | public static final int TAG_LIGHT_SOURCE_SPECIAL = 0x021d;
|
|---|
| 58 | public static final int TAG_RESAVED = 0x021e;
|
|---|
| 59 | public static final int TAG_SCENE_SELECT = 0x021f;
|
|---|
| 60 | public static final int TAG_MANUAL_FOCUS_DISTANCE_OR_FACE_INFO = 0x0223;
|
|---|
| 61 | public static final int TAG_SEQUENCE_SHOT_INTERVAL = 0x0224;
|
|---|
| 62 | public static final int TAG_FLASH_MODE = 0x0225;
|
|---|
| 63 |
|
|---|
| 64 | public static final int TAG_PRINT_IM = 0x0e00;
|
|---|
| 65 |
|
|---|
| 66 | public static final int TAG_DATA_DUMP = 0x0f00;
|
|---|
| 67 |
|
|---|
| 68 | @NotNull
|
|---|
| 69 | protected static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
|
|---|
| 70 |
|
|---|
| 71 | static
|
|---|
| 72 | {
|
|---|
| 73 | _tagNameMap.put(TAG_MAKERNOTE_OFFSET, "Makernote Offset");
|
|---|
| 74 |
|
|---|
| 75 | _tagNameMap.put(TAG_SANYO_THUMBNAIL, "Sanyo Thumbnail");
|
|---|
| 76 |
|
|---|
| 77 | _tagNameMap.put(TAG_SPECIAL_MODE, "Special Mode");
|
|---|
| 78 | _tagNameMap.put(TAG_SANYO_QUALITY, "Sanyo Quality");
|
|---|
| 79 | _tagNameMap.put(TAG_MACRO, "Macro");
|
|---|
| 80 | _tagNameMap.put(TAG_DIGITAL_ZOOM, "Digital Zoom");
|
|---|
| 81 | _tagNameMap.put(TAG_SOFTWARE_VERSION, "Software Version");
|
|---|
| 82 | _tagNameMap.put(TAG_PICT_INFO, "Pict Info");
|
|---|
| 83 | _tagNameMap.put(TAG_CAMERA_ID, "Camera ID");
|
|---|
| 84 | _tagNameMap.put(TAG_SEQUENTIAL_SHOT, "Sequential Shot");
|
|---|
| 85 | _tagNameMap.put(TAG_WIDE_RANGE, "Wide Range");
|
|---|
| 86 | _tagNameMap.put(TAG_COLOR_ADJUSTMENT_MODE, "Color Adjustment Node");
|
|---|
| 87 | _tagNameMap.put(TAG_QUICK_SHOT, "Quick Shot");
|
|---|
| 88 | _tagNameMap.put(TAG_SELF_TIMER, "Self Timer");
|
|---|
| 89 | _tagNameMap.put(TAG_VOICE_MEMO, "Voice Memo");
|
|---|
| 90 | _tagNameMap.put(TAG_RECORD_SHUTTER_RELEASE, "Record Shutter Release");
|
|---|
| 91 | _tagNameMap.put(TAG_FLICKER_REDUCE, "Flicker Reduce");
|
|---|
| 92 | _tagNameMap.put(TAG_OPTICAL_ZOOM_ON, "Optical Zoom On");
|
|---|
| 93 | _tagNameMap.put(TAG_DIGITAL_ZOOM_ON, "Digital Zoom On");
|
|---|
| 94 | _tagNameMap.put(TAG_LIGHT_SOURCE_SPECIAL, "Light Source Special");
|
|---|
| 95 | _tagNameMap.put(TAG_RESAVED, "Resaved");
|
|---|
| 96 | _tagNameMap.put(TAG_SCENE_SELECT, "Scene Select");
|
|---|
| 97 | _tagNameMap.put(TAG_MANUAL_FOCUS_DISTANCE_OR_FACE_INFO, "Manual Focus Distance or Face Info");
|
|---|
| 98 | _tagNameMap.put(TAG_SEQUENCE_SHOT_INTERVAL, "Sequence Shot Interval");
|
|---|
| 99 | _tagNameMap.put(TAG_FLASH_MODE, "Flash Mode");
|
|---|
| 100 |
|
|---|
| 101 | _tagNameMap.put(TAG_PRINT_IM, "Print IM");
|
|---|
| 102 |
|
|---|
| 103 | _tagNameMap.put(TAG_DATA_DUMP, "Data Dump");
|
|---|
| 104 | }
|
|---|
| 105 |
|
|---|
| 106 | public SanyoMakernoteDirectory()
|
|---|
| 107 | {
|
|---|
| 108 | this.setDescriptor(new SanyoMakernoteDescriptor(this));
|
|---|
| 109 | }
|
|---|
| 110 |
|
|---|
| 111 | @Override
|
|---|
| 112 | @NotNull
|
|---|
| 113 | public String getName()
|
|---|
| 114 | {
|
|---|
| 115 | return "Sanyo Makernote";
|
|---|
| 116 | }
|
|---|
| 117 |
|
|---|
| 118 | @Override
|
|---|
| 119 | @NotNull
|
|---|
| 120 | protected HashMap<Integer, String> getTagNameMap()
|
|---|
| 121 | {
|
|---|
| 122 | return _tagNameMap;
|
|---|
| 123 | }
|
|---|
| 124 | }
|
|---|