Skip to content

Commit

Permalink
Update ExifDirectoryBase.java
Browse files Browse the repository at this point in the history
Added Exif 0x4749 (Rating Percent)
  • Loading branch information
Skyfish1 authored Jul 28, 2022
1 parent ae792e7 commit f7e7025
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/com/drew/metadata/exif/ExifDirectoryBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public abstract class ExifDirectoryBase extends Directory
public static final int TAG_RELATED_IMAGE_HEIGHT = 0x1002;

public static final int TAG_RATING = 0x4746;
public static final int TAG_RATING_PERCENT = 0x4749;

public static final int TAG_CFA_REPEAT_PATTERN_DIM = 0x828D;
/** There are two definitions for CFA pattern, I don't know the difference... */
Expand Down Expand Up @@ -679,6 +680,7 @@ protected static void addExifTagNames(HashMap<Integer, String> map)
map.put(TAG_RELATED_IMAGE_WIDTH, "Related Image Width");
map.put(TAG_RELATED_IMAGE_HEIGHT, "Related Image Height");
map.put(TAG_RATING, "Rating");
map.put(TAG_RATING_PERCENT, "Rating Percent");
map.put(TAG_CFA_REPEAT_PATTERN_DIM, "CFA Repeat Pattern Dim");
map.put(TAG_CFA_PATTERN_2, "CFA Pattern");
map.put(TAG_BATTERY_LEVEL, "Battery Level");
Expand Down

0 comments on commit f7e7025

Please sign in to comment.