Debian Codegraph @

src/com/drew/metadata/mp4/media/Mp4VideoDirectory.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.mp4.media;
22
23 import com.drew.lang.annotations.NotNull;
24
25 import java.util.HashMap;
26
27 public class Mp4VideoDirectory extends Mp4MediaDirectory
28 {
29 // Video Sample Description Atom
30 public static final int TAG_VENDOR = 201;
31 public static final int TAG_TEMPORAL_QUALITY = 202;
32 public static final int TAG_SPATIAL_QUALITY = 203;
33 public static final int TAG_WIDTH = 204;
34 public static final int TAG_HEIGHT = 205;
35 public static final int TAG_HORIZONTAL_RESOLUTION = 206;
36 public static final int TAG_VERTICAL_RESOLUTION = 207;
37 public static final int TAG_COMPRESSOR_NAME = 208;
38 public static final int TAG_DEPTH = 209;
39 public static final int TAG_COMPRESSION_TYPE = 210;
40
41 // Video Media Information Header Atom
42 public static final int TAG_GRAPHICS_MODE = 211;
43 public static final int TAG_OPCOLOR = 212;
44 public static final int TAG_COLOR_TABLE = 213;
45 public static final int TAG_FRAME_RATE = 214;
46
47 public Mp4VideoDirectory()
48 {
49 this.setDescriptor(new Mp4VideoDescriptor(this));
50 }
51
52 @NotNull
53 private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
54
55 static
56 {
57 Mp4MediaDirectory.addMp4MediaTags(_tagNameMap);
58 _tagNameMap.put(TAG_VENDOR, "Vendor");
59 _tagNameMap.put(TAG_TEMPORAL_QUALITY, "Temporal Quality");
60 _tagNameMap.put(TAG_SPATIAL_QUALITY, "Spatial Quality");
61 _tagNameMap.put(TAG_WIDTH, "Width");
62 _tagNameMap.put(TAG_HEIGHT, "Height");
63 _tagNameMap.put(TAG_HORIZONTAL_RESOLUTION, "Horizontal Resolution");
64 _tagNameMap.put(TAG_VERTICAL_RESOLUTION, "Vertical Resolution");
65 _tagNameMap.put(TAG_COMPRESSOR_NAME, "Compressor Name");
66 _tagNameMap.put(TAG_DEPTH, "Depth");
67 _tagNameMap.put(TAG_COMPRESSION_TYPE, "Compression Type");
68
69 _tagNameMap.put(TAG_GRAPHICS_MODE, "Graphics Mode");
70 _tagNameMap.put(TAG_OPCOLOR, "Opcolor");
71 _tagNameMap.put(TAG_COLOR_TABLE, "Color Table");
72 _tagNameMap.put(TAG_FRAME_RATE, "Frame Rate");
73 }
74
75 @Override
76 @NotNull
77 public String getName()
78 {
79 return "MP4 Video";
80 }
81
82 @Override
83 @NotNull
84 protected HashMap<Integer, String> getTagNameMap()
85 {
86 return _tagNameMap;
87 }
88 }