Debian Codegraph @

src/com/drew/metadata/mov/media/QuickTimeVideoDirectory.java

raw symbols SCIP
1 /*
2 * Copyright 2002-2019 Drew Noakes and contributors
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.mov.media;
22
23 import com.drew.lang.annotations.NotNull;
24
25 import java.util.HashMap;
26
27 /**
28 * @author Payton Garland
29 */
30 public class QuickTimeVideoDirectory extends QuickTimeMediaDirectory
31 {
32 // Video Sample Description Atom
33 public static final int TAG_VENDOR = 1;
34 public static final int TAG_TEMPORAL_QUALITY = 2;
35 public static final int TAG_SPATIAL_QUALITY = 3;
36 public static final int TAG_WIDTH = 4;
37 public static final int TAG_HEIGHT = 5;
38 public static final int TAG_HORIZONTAL_RESOLUTION = 6;
39 public static final int TAG_VERTICAL_RESOLUTION = 7;
40 public static final int TAG_COMPRESSOR_NAME = 8;
41 public static final int TAG_DEPTH = 9;
42 public static final int TAG_COMPRESSION_TYPE = 10;
43
44 // Video Media Information Header Atom
45 public static final int TAG_GRAPHICS_MODE = 11;
46 public static final int TAG_OPCOLOR = 12;
47 public static final int TAG_COLOR_TABLE = 13;
48 public static final int TAG_FRAME_RATE = 14;
49
50 public QuickTimeVideoDirectory()
51 {
52 this.setDescriptor(new QuickTimeVideoDescriptor(this));
53 }
54
55 @NotNull
56 private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
57
58 static
59 {
60 QuickTimeMediaDirectory.addQuickTimeMediaTags(_tagNameMap);
61 _tagNameMap.put(TAG_VENDOR, "Vendor");
62 _tagNameMap.put(TAG_TEMPORAL_QUALITY, "Temporal Quality");
63 _tagNameMap.put(TAG_SPATIAL_QUALITY, "Spatial Quality");
64 _tagNameMap.put(TAG_WIDTH, "Width");
65 _tagNameMap.put(TAG_HEIGHT, "Height");
66 _tagNameMap.put(TAG_HORIZONTAL_RESOLUTION, "Horizontal Resolution");
67 _tagNameMap.put(TAG_VERTICAL_RESOLUTION, "Vertical Resolution");
68 _tagNameMap.put(TAG_COMPRESSOR_NAME, "Compressor Name");
69 _tagNameMap.put(TAG_DEPTH, "Depth");
70 _tagNameMap.put(TAG_COMPRESSION_TYPE, "Compression Type");
71
72 _tagNameMap.put(TAG_GRAPHICS_MODE, "Graphics Mode");
73 _tagNameMap.put(TAG_OPCOLOR, "Opcolor");
74 _tagNameMap.put(TAG_COLOR_TABLE, "Color Table");
75 _tagNameMap.put(TAG_FRAME_RATE, "Frame Rate");
76 }
77
78 @Override
79 @NotNull
80 public String getName()
81 {
82 return "QuickTime Video";
83 }
84
85 @Override
86 @NotNull
87 protected HashMap<Integer, String> getTagNameMap()
88 {
89 return _tagNameMap;
90 }
91 }