23 lines
403 B
C
23 lines
403 B
C
#ifndef CLUSTER_READER_H
|
|
#define CLUSTER_READER_H
|
|
#include <stdint.h>
|
|
#include <cstdio>
|
|
|
|
#define MAXPH 100000000
|
|
|
|
struct cluster {
|
|
int16_t x;
|
|
int16_t y;
|
|
//data[iy * 3 + ix ]
|
|
int32_t data[9];
|
|
} ;
|
|
|
|
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);
|
|
|
|
void cpp_close_cluster_file(int &ok);
|
|
|
|
#endif
|