fix: 对接GPS数据
This commit is contained in:
11
include/gps_buffer.h
Normal file
11
include/gps_buffer.h
Normal 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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user