source: josm/trunk/src/com/drew/metadata/exif/PanasonicMakernoteDirectory.java@ 4231

Last change on this file since 4231 was 4231, checked in by stoecker, 14 years ago

add signpost and metadata extractor code to repository directly

File size: 2.1 KB
Line 
1/*
2 * This is public domain software - that is, you can do whatever you want
3 * with it, and include it software that is licensed under the GNU or the
4 * BSD license, or whatever other licence you choose, including proprietary
5 * closed source licenses. I do ask that you leave this header in tact.
6 *
7 * If you make modifications to this code that you think would benefit the
8 * wider community, please send me a copy and I'll post it on my site.
9 *
10 * If you make use of this code, I'd appreciate hearing about it.
11 * drew@drewnoakes.com
12 * Latest version of this software kept at
13 * http://drewnoakes.com/
14 *
15 * Created by dnoakes on 27-Nov-2002 10:10:47 using IntelliJ IDEA.
16 */
17package com.drew.metadata.exif;
18
19import com.drew.metadata.Directory;
20
21import java.util.HashMap;
22
23/**
24 *
25 */
26public class PanasonicMakernoteDirectory extends Directory
27{
28 public static final int TAG_PANASONIC_QUALITY_MODE = 0x0001;
29 public static final int TAG_PANASONIC_VERSION = 0x0002;
30 /**
31 * 1 = On
32 * 2 = Off
33 */
34 public static final int TAG_PANASONIC_MACRO_MODE = 0x001C;
35 /**
36 * 1 = Normal
37 * 2 = Portrait
38 * 9 = Macro
39 */
40 public static final int TAG_PANASONIC_RECORD_MODE = 0x001F;
41 public static final int TAG_PANASONIC_PRINT_IMAGE_MATCHING_INFO = 0x0E00;
42
43 protected static final HashMap tagNameMap = new HashMap();
44
45 static
46 {
47 tagNameMap.put(new Integer(TAG_PANASONIC_QUALITY_MODE), "Quality Mode");
48 tagNameMap.put(new Integer(TAG_PANASONIC_VERSION), "Version");
49 tagNameMap.put(new Integer(TAG_PANASONIC_MACRO_MODE), "Macro Mode");
50 tagNameMap.put(new Integer(TAG_PANASONIC_RECORD_MODE), "Record Mode");
51 tagNameMap.put(new Integer(TAG_PANASONIC_PRINT_IMAGE_MATCHING_INFO), "Print Image Matching (PIM) Info");
52 }
53
54 public PanasonicMakernoteDirectory()
55 {
56 this.setDescriptor(new PanasonicMakernoteDescriptor(this));
57 }
58
59 public String getName()
60 {
61 return "Panasonic Makernote";
62 }
63
64 protected HashMap getTagNameMap()
65 {
66 return tagNameMap;
67 }
68}
Note: See TracBrowser for help on using the repository browser.