better implementation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user