fix: 对接GPS数据

This commit is contained in:
nnbcccscdscdsc
2026-04-11 12:15:27 +08:00
parent 84e0cc54d2
commit 757e6da2b2
5 changed files with 314 additions and 7 deletions

11
include/gps_buffer.h Normal file
View File

@@ -0,0 +1,11 @@
#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

View File

@@ -5,12 +5,18 @@
#include <signal.h>
#include <stdint.h>
#include "gps_buffer.h"
#include "peer_kcp_client.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct video_pipeline_packet_metadata {
uint64_t timestamp_ms;
uint64_t gps_data;
} video_pipeline_packet_metadata_t;
typedef struct video_pipeline_config {
const char *camera_device;
const char *server_addr;