better implementation

This commit is contained in:
2023-05-17 18:21:05 +02:00
parent 569ac6715f
commit aeb034581d
8 changed files with 184 additions and 147 deletions

View File

@@ -1,9 +1,10 @@
#ifndef CLUSTER_READER_H
#define CLUSTER_READER_H
#include <stdint.h>
#include <vector>
#include <cstdio>
#define MAXPH 100000000
struct cluster {
int16_t x;
int16_t y;
@@ -11,7 +12,7 @@ struct cluster {
int32_t data[9];
} ;
void cpp_read_clusters(int &iiph, std::vector<struct cluster> &v, int &ok, int maxframes=-1);
void cpp_read_clusters(struct cluster *clust, int &iiph, int &nframes, int &ok, int maxph=MAXPH);
void cpp_open_cluster_file(char *fname, int &ok);