Debian Codegraph @

src/com/drew/metadata/mov/media/QuickTimeSubtitleDirectory.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 import com.drew.metadata.mov.QuickTimeDirectory;
25
26 import java.util.HashMap;
27
28 /**
29 * @author Payton Garland
30 */
31 public class QuickTimeSubtitleDirectory extends QuickTimeDirectory
32 {
33 public static final int TAG_VERTICAL_PLACEMENT = 1;
34 public static final int TAG_SOME_SAMPLES_FORCED = 2;
35 public static final int TAG_ALL_SAMPLES_FORCED = 3;
36 public static final int TAG_DEFAULT_TEXT_BOX = 4;
37 public static final int TAG_FONT_IDENTIFIER = 5;
38 public static final int TAG_FONT_FACE = 6;
39 public static final int TAG_FONT_SIZE = 7;
40 public static final int TAG_FOREGROUND_COLOR = 8;
41
42 public QuickTimeSubtitleDirectory()
43 {
44 this.setDescriptor(new QuickTimeSubtitleDescriptor(this));
45 }
46
47 @NotNull
48 private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>();
49
50 static
51 {
52 QuickTimeMediaDirectory.addQuickTimeMediaTags(_tagNameMap);
53 _tagNameMap.put(TAG_VERTICAL_PLACEMENT, "Vertical Placement");
54 _tagNameMap.put(TAG_SOME_SAMPLES_FORCED, "Some Samples Forced");
55 _tagNameMap.put(TAG_ALL_SAMPLES_FORCED, "All Samples Forced");
56 _tagNameMap.put(TAG_DEFAULT_TEXT_BOX, "Default Text Box");
57 _tagNameMap.put(TAG_FONT_IDENTIFIER, "Font Identifier");
58 _tagNameMap.put(TAG_FONT_FACE, "Font Face");
59 _tagNameMap.put(TAG_FONT_SIZE, "Font Size");
60 _tagNameMap.put(TAG_FOREGROUND_COLOR, "Foreground Color");
61 }
62
63 @Override
64 @NotNull
65 public String getName()
66 {
67 return "QuickTime Subtitle";
68 }
69
70 @Override
71 @NotNull
72 protected HashMap<Integer, String> getTagNameMap()
73 {
74 return _tagNameMap;
75 }
76 }