gstreamer/gst-libs/gst
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
..
allocators g-i: pass compiler env to g-ir-scanner 2016-05-24 00:44:21 +01:00
app g-i: pass compiler env to g-ir-scanner 2016-05-24 00:44:21 +01:00
audio g-i: pass compiler env to g-ir-scanner 2016-05-24 00:44:21 +01:00
fft g-i: pass compiler env to g-ir-scanner 2016-05-24 00:44:21 +01:00
pbutils audiovisualizer: Fix calculations for bytes<->samples conversions 2016-06-11 11:45:51 +03:00
riff g-i: pass compiler env to g-ir-scanner 2016-05-24 00:44:21 +01:00
rtp g-i: pass compiler env to g-ir-scanner 2016-05-24 00:44:21 +01:00
rtsp g-i: pass compiler env to g-ir-scanner 2016-05-24 00:44:21 +01:00
sdp g-i: pass compiler env to g-ir-scanner 2016-05-24 00:44:21 +01:00
tag exiftag: Increase serialized geo precision 2016-06-13 09:29:52 +03:00
video videodecoder: handle buffer's flags at offset 2016-06-09 19:13:46 +03:00
gettext.h Fix FSF address 2012-11-03 23:05:09 +00:00
glib-compat-private.h Fix FSF address 2012-11-03 23:05:09 +00:00
gst-i18n-app.h tools: add simple command-line gst-play utility for testing purposes 2013-08-16 15:45:23 +01:00
gst-i18n-plugin.h Fix FSF address 2012-11-03 23:05:09 +00:00
Makefile.am rtp: build audio library before rtp 2016-02-16 17:42:44 +02:00