16 lines
298 B
C
16 lines
298 B
C
#ifndef JUNIORCAMP_DISTANCE_H
|
|
#define JUNIORCAMP_DISTANCE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define MASK_MULTIPLIER 500
|
|
|
|
typedef struct {
|
|
int64_t distance;
|
|
int8_t direction;
|
|
} distance_T;
|
|
|
|
int64_t pixel_distance(uint32_t pixel_a, uint32_t pixel_b, uint32_t pixel_m);
|
|
|
|
#endif //JUNIORCAMP_DISTANCE_H
|