| 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.gif; |
| 22 |
|
| 23 |
import com.drew.lang.annotations.NotNull; |
| 24 |
import com.drew.metadata.Directory; |
| 25 |
|
| 26 |
import java.util.HashMap; |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
@SuppressWarnings("WeakerAccess") |
| 33 |
public class GifAnimationDirectory extends Directory |
| 34 |
{ |
| 35 |
public static final int TAG_ITERATION_COUNT = 1; |
| 36 |
|
| 37 |
@NotNull |
| 38 |
private static final HashMap<Integer, String> _tagNameMap = new HashMap<Integer, String>(); |
| 39 |
|
| 40 |
static |
| 41 |
{ |
| 42 |
_tagNameMap.put(TAG_ITERATION_COUNT, "Iteration Count"); |
| 43 |
} |
| 44 |
|
| 45 |
public GifAnimationDirectory() |
| 46 |
{ |
| 47 |
this.setDescriptor(new GifAnimationDescriptor(this)); |
| 48 |
} |
| 49 |
|
| 50 |
@Override |
| 51 |
@NotNull |
| 52 |
public String getName() |
| 53 |
{ |
| 54 |
return "GIF Animation"; |
| 55 |
} |
| 56 |
|
| 57 |
@Override |
| 58 |
@NotNull |
| 59 |
protected HashMap<Integer, String> getTagNameMap() |
| 60 |
{ |
| 61 |
return _tagNameMap; |
| 62 |
} |
| 63 |
} |