X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fjpeg%2FJpegData.java;h=8a25f6d276cf0d4355439b7495ba44ef463d2a34;hb=649c5da6ee1bbc590699e11a92316ece2ea8512d;hp=e1ed4c4753aa12c100d06f70925b57b7465f07d2;hpb=c0387c124840c9407e040600fda88f3c3e8f6aa6;p=GpsPrune.git diff --git a/tim/prune/jpeg/JpegData.java b/tim/prune/jpeg/JpegData.java index e1ed4c4..8a25f6d 100644 --- a/tim/prune/jpeg/JpegData.java +++ b/tim/prune/jpeg/JpegData.java @@ -18,8 +18,10 @@ public class JpegData private int[] _gpsTimestamp = null; private int[] _gpsDatestamp = null; private String _originalTimestamp = null; + private String _digitizedTimestamp = null; private int _orientationCode = -1; private byte[] _thumbnail = null; + private double _bearing = -1.0; private ArrayList _errors = null; @@ -124,6 +126,15 @@ public class JpegData _originalTimestamp = inStamp; } + /** + * Set the digitized timestamp + * @param inStamp digitized (creation) timestamp of photo + */ + public void setDigitizedTimestamp(String inStamp) + { + _digitizedTimestamp = inStamp; + } + /** * Set the orientation code * @param inCode code from exif (1 to 8) @@ -135,6 +146,15 @@ public class JpegData } } + /** + * Set the bearing (0 - 360) + * @param inBearing bearing in degrees + */ + public void setBearing(double inBearing) + { + _bearing = inBearing; + } + /** @return latitude ref as char */ public char getLatitudeRef() { return _latitudeRef; } /** @return latitude as array of 3 Rationals */ @@ -157,6 +177,10 @@ public class JpegData public int getOrientationCode() { return _orientationCode; } /** @return original timestamp as string */ public String getOriginalTimestamp() { return _originalTimestamp; } + /** @return digitized timestamp as string */ + public String getDigitizedTimestamp() { return _digitizedTimestamp; } + /** @return bearing in degrees or -1 */ + public double getBearing() { return _bearing; } /** * Set the thumbnail