| 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.mov.media; |
| 22 |
|
| 23 |
import com.drew.lang.annotations.NotNull; |
| 24 |
|
| 25 |
import java.util.HashMap; |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
public class QuickTimeVideoDirectory extends QuickTimeMediaDirectory |
| 31 |
{ |
| 32 |
|
| 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 |
|
| 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 |
} |