X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdrew%2Fjpeg%2FJpegData.java;h=3d16733392d8c394d4e33f3725cd108ef74bea38;hp=51995c96922b90f30ad117f6394f2e1b0424c758;hb=da0b1f449260a0b4a94318006382a9039726ef3e;hpb=5625a1abadb5f2ca5f017fe7dbda1d5141cb637b diff --git a/tim/prune/drew/jpeg/JpegData.java b/tim/prune/drew/jpeg/JpegData.java index 51995c9..3d16733 100644 --- a/tim/prune/drew/jpeg/JpegData.java +++ b/tim/prune/drew/jpeg/JpegData.java @@ -16,8 +16,10 @@ public class JpegData private Rational[] _latitude = null; private Rational[] _longitude = null; private Rational _altitude = null; - private Rational[] _timestamp = null; - private Rational[] _datestamp = null; + private Rational[] _gpsTimestamp = null; + private Rational[] _gpsDatestamp = null; + private String _originalTimestamp = null; + private byte[] _thumbnail = null; private ArrayList _errors = null; @@ -113,21 +115,30 @@ public class JpegData } /** - * Set the timestamp + * Set the Gps timestamp * @param inValues array of Rationals holding timestamp */ - public void setTimestamp(Rational[] inValues) + public void setGpsTimestamp(Rational[] inValues) { - _timestamp = inValues; + _gpsTimestamp = inValues; } /** - * Set the datestamp + * Set the Gps datestamp * @param inValues array of Rationals holding datestamp */ - public void setDatestamp(Rational[] inValues) + public void setGpsDatestamp(Rational[] inValues) { - _datestamp = inValues; + _gpsDatestamp = inValues; + } + + /** + * Set the original timestamp + * @param inStamp original timestamp of photo + */ + public void setOriginalTimestamp(String inStamp) + { + _originalTimestamp = inStamp; } /** @return latitude ref as char */ @@ -142,10 +153,24 @@ public class JpegData public byte getAltitudeRef() { return _altitudeRef; } /** @return altitude as Rational */ public Rational getAltitude() { return _altitude; } - /** @return timestamp as array of 3 Rationals */ - public Rational[] getTimestamp() { return _timestamp; } - /** @return timestamp as array of 3 Rationals */ - public Rational[] getDatestamp() { return _datestamp; } + /** @return Gps timestamp as array of 3 Rationals */ + public Rational[] getGpsTimestamp() { return _gpsTimestamp; } + /** @return Gps datestamp as array of 3 Rationals */ + public Rational[] getGpsDatestamp() { return _gpsDatestamp; } + /** @return original timestamp as string */ + public String getOriginalTimestamp() { return _originalTimestamp; } + + /** + * Set the thumbnail + * @param inBytes byte array containing thumbnail + */ + public void setThumbnailImage(byte[] inBytes) { + _thumbnail = inBytes; + } + /** @return thumbnail as byte array */ + public byte[] getThumbnailImage() { + return _thumbnail; + } /** * @return true if data looks valid, ie has at least lat and long