gstreamer/tests/check
Paulo Neves 5dd720e064 exiftag: Increase serialized geo precision
The serialization of double typed geographical
coordinates to DMS system supported by the exif
standards was previously truncated without need.

The previous code truncated the seconds part of
the coordinate to a fraction with denominator
equal to 1 causing a bug on the deserialization
when the test for the coordinate to be serialized
was more precise.

This patch applies a 10E6 multiplier to the numerator
equal to the denominator of the rational number.

Eg. Latitude = 89.5688643 Serialization

DMS Old code = 89/1 deg, 34/1 min, 7/1 sec
DMS New code = 89/1 deg, 34/1 min, 79114800UL/10000000UL

Deserialization

DMS Old code = 89.5686111111
DMS New code = 89.5688643

The new test tries to serialize a higher precision
coordinate.

The types of the coordinates are also guint32 instead
of gint like previously. guint32 is the type of the
fraction components in the exif.

https://bugzilla.gnome.org/show_bug.cgi?id=767537
2016-06-13 09:29:52 +03:00
..
elements tests: playbin: add test for new "element-setup" signal 2016-05-16 09:52:35 +01:00
generic check: Rename states unit test 2015-08-14 11:12:30 +02:00
gst tests: typefindfunctions: fix error leaks 2015-10-23 11:48:47 +03:00
libs exiftag: Increase serialized geo precision 2016-06-13 09:29:52 +03:00
pipelines tests: vorbisenc: fix with CK_FORK=no 2016-04-19 14:18:07 +01:00
.gitignore Ignore registries in any format. 2007-09-19 18:16:58 +00:00
gst-plugins-base.supp valgrind: add ALSA leaks fixed by snd_config_update_free_global 2011-11-07 12:20:12 +00:00
Makefile.am tests: playsink: add minimal test for playsink element 2016-05-14 16:02:16 +01:00