![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Include dependency graph for gpx.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | dt_gpx_track_point_t |
| struct | dt_gpx_track_segment_t |
Macros | |
| #define | EARTH_RADIUS 6378100.0 /* in meters */ |
| #define | DT_MINIMUM_DISTANCE_FOR_GEODESIC 100000.0 /* in meters */ |
| #define | DT_MINIMUM_ANGULAR_DELTA_FOR_GEODESIC 1.0 |
Typedefs | |
| typedef struct dt_gpx_track_point_t | dt_gpx_track_point_t |
| typedef struct dt_gpx_track_segment_t | dt_gpx_track_segment_t |
Functions | |
| struct dt_gpx_t * | dt_gpx_new (const gchar *filename) |
| void | dt_gpx_destroy (struct dt_gpx_t *gpx) |
| gboolean | dt_gpx_get_location (struct dt_gpx_t *, GDateTime *timestamp, dt_image_geoloc_t *geoloc) |
| GList * | dt_gpx_get_trkseg (struct dt_gpx_t *gpx) |
| GList * | dt_gpx_get_trkpts (struct dt_gpx_t *gpx, const guint segid) |
| void | dt_gpx_geodesic_distance (double lat1, double lon1, double lat2, double lon2, double *d, double *delta) |
| void | dt_gpx_geodesic_intermediate_point (const double lat1, const double lon1, const double lat2, const double lon2, const double delta, const gboolean first_time, double f, double *lat, double *lon) |
| #define DT_MINIMUM_DISTANCE_FOR_GEODESIC 100000.0 /* in meters */ |
| typedef struct dt_gpx_track_point_t dt_gpx_track_point_t |
| typedef struct dt_gpx_track_segment_t dt_gpx_track_segment_t |
Definition at line 152 of file gpx.c.
References _track_pts_free(), _track_seg_free(), dt_free, IS_NULL_PTR, dt_gpx_t::trkpts, and dt_gpx_t::trksegs.
Referenced by _preview_gpx_file(), and dt_control_gpx_apply_job_run().
| void dt_gpx_geodesic_distance | ( | double | lat1, |
| double | lon1, | ||
| double | lat2, | ||
| double | lon2, | ||
| double * | d, | ||
| double * | delta | ||
| ) |
Definition at line 470 of file gpx.c.
References d, delta, EARTH_RADIUS, and M_PI.
Referenced by _track_add_point(), and dt_gpx_get_location().
| void dt_gpx_geodesic_intermediate_point | ( | const double | lat1, |
| const double | lon1, | ||
| const double | lat2, | ||
| const double | lon2, | ||
| const double | delta, | ||
| const gboolean | first_time, | ||
| double | f, | ||
| double * | lat, | ||
| double * | lon | ||
| ) |
Definition at line 491 of file gpx.c.
References delta, f, lat, lon, M_PI, and x.
Referenced by _track_add_point(), and dt_gpx_get_location().
| gboolean dt_gpx_get_location | ( | struct dt_gpx_t * | gpx, |
| GDateTime * | timestamp, | ||
| dt_image_geoloc_t * | geoloc | ||
| ) |
Definition at line 170 of file gpx.c.
References d, delta, double(), dt_gpx_geodesic_distance(), dt_gpx_geodesic_intermediate_point(), DT_MINIMUM_ANGULAR_DELTA_FOR_GEODESIC, dt_gpx_track_point_t::elevation, dt_image_geoloc_t::elevation, f, FALSE, g_list_shorter_than(), IS_NULL_PTR, lat, dt_gpx_track_point_t::latitude, dt_image_geoloc_t::latitude, lon, dt_gpx_track_point_t::longitude, dt_image_geoloc_t::longitude, dt_gpx_track_point_t::time, dt_gpx_t::trkpts, and TRUE.
Referenced by dt_control_gpx_apply_job_run().
| GList * dt_gpx_get_trkpts | ( | struct dt_gpx_t * | gpx, |
| const guint | segid | ||
| ) |
Definition at line 446 of file gpx.c.
References IS_NULL_PTR, dt_gpx_track_point_t::latitude, dt_gpx_track_point_t::longitude, p, dt_gpx_track_point_t::segid, dt_gpx_track_segment_t::trkpt, dt_gpx_t::trkpts, and dt_gpx_t::trksegs.
| GList * dt_gpx_get_trkseg | ( | struct dt_gpx_t * | gpx | ) |
Definition at line 441 of file gpx.c.
References dt_gpx_t::trksegs.
Referenced by _preview_gpx_file().
| struct dt_gpx_t * dt_gpx_new | ( | const gchar * | filename | ) |
Definition at line 88 of file gpx.c.
References _gpx_parser, _sort_segment(), _sort_track(), dt_free, error(), FALSE, IS_NULL_PTR, dt_gpx_t::trkpts, and dt_gpx_t::trksegs.
Referenced by _preview_gpx_file(), and dt_control_gpx_apply_job_run().