summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEarl Ou <shunhsingou@google.com>2012-10-05 07:22:33 (GMT)
committerEarl Ou <shunhsingou@google.com>2012-10-11 18:19:18 (GMT)
commit74054c450aa39eee11743bef68b9d55531dbd3b1 (patch)
treee57293b24590441107db1e5ba86d15afc0945e03 /tests
parentf5bab021272fb7b0a1da5d3b796d6631cb059def (diff)
downloadandroid_packages_apps_Snap-74054c450aa39eee11743bef68b9d55531dbd3b1.zip
android_packages_apps_Snap-74054c450aa39eee11743bef68b9d55531dbd3b1.tar.gz
android_packages_apps_Snap-74054c450aa39eee11743bef68b9d55531dbd3b1.tar.bz2
Use exiftool as ground truth for Exif API test
The ground truth XML file was generated by parsing the output from Phil Harvey's exiftool. Then we can test photos from 5000+ different camera provided by exiftool's website. Change-Id: Ida2c0409929be450a3cbb4331504aadb41138bea
Diffstat (limited to 'tests')
-rw-r--r--tests/res/xml/galaxy_nexus.xml86
1 files changed, 40 insertions, 46 deletions
diff --git a/tests/res/xml/galaxy_nexus.xml b/tests/res/xml/galaxy_nexus.xml
index cefd078..0c80cb8 100644
--- a/tests/res/xml/galaxy_nexus.xml
+++ b/tests/res/xml/galaxy_nexus.xml
@@ -1,48 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
<exif>
- <ifd name="ifd0">
- <tag id="0x100" name="ImageWidth">2560</tag>
- <tag id="0x101" name="ImageHeight">1920</tag>
- <tag id="0x10f" name="Make">google</tag>
- <tag id="0x110" name="Model">Nexus S</tag>
- <tag id="0x112" name="Orientation">1</tag>
- <tag id="0x131" name="Software">MASTER</tag>
- <tag id="0x132" name="DateTime">2012:07:30 16:28:42</tag>
- <tag id="0x213" name="YCbCrPositioning">1</tag>
- <tag id="0x8769" name="ExifOffset">164</tag>
- </ifd>
- <ifd name="exif-ifd">
- <tag id="0x829A" name="ExposureTime">1/40</tag>
- <tag id="0x829D" name="FNumber">26/10</tag>
- <tag id="0x8822" name="ExposureProgram">3</tag>
- <tag id="0x8827" name="IsoSpeedRatings">100</tag>
- <tag id="0x9000" name="ExifVersion">30 32 32 30</tag>
- <tag id="0x9003" name="DateTimeTimeOriginal">2012:07:30 16:28:42</tag>
- <tag id="0x9004" name="DateTimeTimeDigitized">2012:07:30 16:28:42</tag>
- <tag id="0x9201" name="ShutterSpeed">50/10</tag>
- <tag id="0x9202" name="ApertureValue">30/10</tag>
- <tag id="0x9203" name="BrightnessValue">30/10</tag>
- <tag id="0x9204" name="ExposureBiasValue">0/0</tag>
- <tag id="0x9205" name="MaxApertureValue">30/10</tag>
- <tag id="0x9207" name="MeteringMode">2</tag>
- <tag id="0x9209" name="Flash">0</tag>
- <tag id="0x920A" name="FocalLength">343/100</tag>
- <tag id="0x9286" name="UserComment">00 00 00 49 49 43 53 41 55 73 65 72 20 63 6f 6d 6d 65 6e 74 73 00</tag>
- <tag id="0xA001" name="ColoSpace">1</tag>
- <tag id="0xA002" name="PixelXDimension">2560</tag>
- <tag id="0xA003" name="PixelYDimension">1920</tag>
- <tag id="0xA402" name="ExposureMode">0</tag>
- <tag id="0xA403" name="WhithBalance">0</tag>
- <tag id="0xA406" name="SceneCaptureType">0</tag>
- </ifd>
- <ifd name="ifd1">
- <tag id="0x103" name="Compression">6</tag>
- <tag id="0x11A" name="XResolution">72/1</tag>
- <tag id="0x11B" name="YResolution">72/1</tag>
- <tag id="0x128" name="ResolutionUnit">2</tag>
- <tag id="0x100" name="ImageWidth">320</tag>
- <tag id="0x101" name="ImageHeight">240</tag>
- <tag id="0x112" name="Orientation">1</tag>
- <tag id="0x201" name="JpegInterchangeFormat">690</tag>
- <tag id="0x202" name="JpegInterchangeFormatLength">10447</tag>
- </ifd>
+ <tag ifd="IFD0" id="0x0100" name="ImageWidth">2560</tag>
+ <tag ifd="IFD0" id="0x0101" name="ImageHeight">1920</tag>
+ <tag ifd="IFD0" id="0x010f" name="Make">google</tag>
+ <tag ifd="IFD0" id="0x0110" name="Model">Nexus S</tag>
+ <tag ifd="IFD0" id="0x0112" name="Orientation">1</tag>
+ <tag ifd="IFD0" id="0x0131" name="Software">MASTER</tag>
+ <tag ifd="IFD0" id="0x0132" name="ModifyDate">2012:07:30 16:28:42</tag>
+ <tag ifd="IFD0" id="0x0213" name="YCbCrPositioning">1</tag>
+ <tag ifd="ExifIFD" id="0x829a" name="ExposureTime">1/40</tag>
+ <tag ifd="ExifIFD" id="0x829d" name="FNumber">26/10</tag>
+ <tag ifd="ExifIFD" id="0x8822" name="ExposureProgram">3</tag>
+ <tag ifd="ExifIFD" id="0x8827" name="ISO">100</tag>
+ <tag ifd="ExifIFD" id="0x9000" name="ExifVersion">0220</tag>
+ <tag ifd="ExifIFD" id="0x9003" name="DateTimeOriginal">2012:07:30 16:28:42</tag>
+ <tag ifd="ExifIFD" id="0x9004" name="CreateDate">2012:07:30 16:28:42</tag>
+ <tag ifd="ExifIFD" id="0x9201" name="ShutterSpeedValue">50/10</tag>
+ <tag ifd="ExifIFD" id="0x9202" name="ApertureValue">30/10</tag>
+ <tag ifd="ExifIFD" id="0x9203" name="BrightnessValue">30/10</tag>
+ <tag ifd="ExifIFD" id="0x9204" name="ExposureCompensation">0/0</tag>
+ <tag ifd="ExifIFD" id="0x9205" name="MaxApertureValue">30/10</tag>
+ <tag ifd="ExifIFD" id="0x9207" name="MeteringMode">2</tag>
+ <tag ifd="ExifIFD" id="0x9209" name="Flash">0</tag>
+ <tag ifd="ExifIFD" id="0x920a" name="FocalLength">343/100</tag>
+ <tag ifd="ExifIFD" id="0x9286" name="UserComment">IICSAUser comments</tag>
+ <tag ifd="ExifIFD" id="0xa001" name="ColorSpace">1</tag>
+ <tag ifd="ExifIFD" id="0xa002" name="ExifImageWidth">2560</tag>
+ <tag ifd="ExifIFD" id="0xa003" name="ExifImageHeight">1920</tag>
+ <tag ifd="ExifIFD" id="0xa402" name="ExposureMode">0</tag>
+ <tag ifd="ExifIFD" id="0xa403" name="WhiteBalance">0</tag>
+ <tag ifd="ExifIFD" id="0xa406" name="SceneCaptureType">0</tag>
+ <tag ifd="IFD1" id="0x0100" name="ImageWidth">320</tag>
+ <tag ifd="IFD1" id="0x0101" name="ImageHeight">240</tag>
+ <tag ifd="IFD1" id="0x0103" name="Compression">6</tag>
+ <tag ifd="IFD1" id="0x0112" name="Orientation">1</tag>
+ <tag ifd="IFD1" id="0x011a" name="XResolution">72/1</tag>
+ <tag ifd="IFD1" id="0x011b" name="YResolution">72/1</tag>
+ <tag ifd="IFD1" id="0x0128" name="ResolutionUnit">2</tag>
+ <tag ifd="IFD1" id="0x0201" name="ThumbnailOffset">690</tag>
+ <tag ifd="IFD1" id="0x0202" name="ThumbnailLength">10447</tag>
</exif>