fix:更新gps数据处理

This commit is contained in:
nnbcccscdscdsc committed 2026-04-11 16:33:26 +08:00
1 parent 09dd9e24c0
commit 7ca136870d
5 files changed
+81 -37

No files matched your search

+16 -11
View File
@@ -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
+6 -1
View File
@@ -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;