fix:更新gps数据处理
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
#ifndef GPS_BUFFER_H
|
||||
#define GPS_BUFFER_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
uint64_t get_latest_gps_for_video(void);
|
||||
|
||||
|
||||
int gps_buffer_init(const char* host);
|
||||
void gps_buffer_cleanup(void);
|
||||
#endif
|
||||
#ifndef GPS_BUFFER_H
|
||||
#define GPS_BUFFER_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct gps_video_sample {
|
||||
double latitude;
|
||||
double longitude;
|
||||
} gps_video_sample_t;
|
||||
|
||||
gps_video_sample_t get_latest_gps_for_video(void);
|
||||
|
||||
|
||||
int gps_buffer_init(const char* host);
|
||||
void gps_buffer_cleanup(void);
|
||||
#endif
|
||||
|
||||
@@ -14,9 +14,14 @@ extern "C" {
|
||||
|
||||
typedef struct video_pipeline_packet_metadata {
|
||||
uint64_t timestamp_ms;
|
||||
uint64_t gps_data;
|
||||
float latitude;
|
||||
float longitude;
|
||||
} video_pipeline_packet_metadata_t;
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
||||
_Static_assert(sizeof(video_pipeline_packet_metadata_t) == 24, "video trailer metadata must be 24 bytes");
|
||||
#endif
|
||||
|
||||
typedef struct video_pipeline_config {
|
||||
const char *camera_device;
|
||||
const char *server_addr;
|
||||
|
||||
Reference in New Issue
Block a user