Skip to content

Commit 9900b1e

Browse files
committed
Merge branch 'sra' into foss2
2 parents 5cbb546 + 3dea5a2 commit 9900b1e

File tree

6 files changed

+18
-2
lines changed

6 files changed

+18
-2
lines changed

Inc/matd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ static inline float sgn(float v)
9393
}
9494

9595
// random number between [0, 1)
96-
static inline float randf()
96+
static inline float randf(void)
9797
{
9898
return ((float)rand()) / (RAND_MAX + 1.0);
9999
}
100100

101-
static inline float signed_randf()
101+
static inline float signed_randf(void)
102102
{
103103
return randf() * 2 - 1;
104104
}

Inc/stm32ipl_imlib_int.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ void imlib_find_circles(list_t *out, image_t *ptr, rectangle_t *roi, unsigned in
247247
bool stm32ipl_get_regression_points(const point_t *points, uint16_t nPoints, find_lines_list_lnk_data_t *out,
248248
bool robust); // STM32IPL
249249

250+
// STM32IPL: added prototypes.
251+
void merge_alot(list_t *out, int threshold, int theta_threshold);
252+
size_t trace_line(image_t *ptr, line_t *l, int *theta_buffer, uint32_t *mag_buffer, point_t *point_buffer);
250253
/// @endcond
251254

252255
#endif //__STM32IPL_IMLIB_INT_H__

Src/apriltag.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ either expressed or implied, of the Regents of The University of Michigan.
100100
#define fmaxf(a, b) ({ a > b ? a : b; }) // STM32IPL
101101
#endif // STM32IPL
102102

103+
/* Prototypes. */
104+
void quat_to_matrix(const float q[4], matd_t *M);
105+
103106
////////////////////////////////////////////////////////////////////////////////////////////////////
104107
//////// "zarray.h"
105108
////////////////////////////////////////////////////////////////////////////////////////////////////

Src/mathop.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ void imlib_gamma_corr(image_t *img, float gamma, float contrast, float brightnes
154154
}
155155
}
156156

157+
#ifndef STM32IPL
157158
void imlib_negate(image_t *img)
158159
{
159160
switch(img->bpp) {
@@ -207,6 +208,7 @@ void imlib_negate(image_t *img)
207208
}
208209
}
209210
}
211+
#endif // STM32IPL
210212

211213
typedef struct imlib_replace_line_op_state {
212214
bool hmirror, vflip, transpose;

Src/stats.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#include "imlib.h"
1313

1414
#ifdef IMLIB_ENABLE_GET_SIMILARITY
15+
16+
/* Prototypes. */
17+
void imlib_similarity_line_op(image_t *img, int line, void *other, void *data, bool vflipped); // STM32IPL
18+
1519
typedef struct imlib_similatiry_line_op_state {
1620
int *sumBucketsOfX, *sumBucketsOfY, *sum2BucketsOfX, *sum2BucketsOfY, *sum2Buckets;
1721
float similarity_sum, similarity_sum_2, similarity_min, similarity_max;

Src/stm32ipl_mem_alloc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ static uint32_t g_fb_alloc_inext = 0;
3636
static uint32_t g_fb_alloc_imark = 0;
3737

3838
/* Prototypes. */
39+
void* STM32Ipl_Alloc(uint32_t size);
40+
void* STM32Ipl_Alloc0(uint32_t size);
41+
void STM32Ipl_Free(void *mem);
42+
void* STM32Ipl_Realloc(void *mem, uint32_t size);
3943
__attribute__((weak)) void STM32Ipl_FaultHandler(const char *error);
4044
///@endcond
4145

0 commit comments

Comments
 (0)