| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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 |
|
| 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 |
|
| 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 |
} |