aboutsummaryrefslogtreecommitdiff
path: root/src/steps.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-12-17 22:03:33 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-12-17 22:03:33 +0100
commit6df92db4d23dd6e2c3aba48caf1e0ea30265abb2 (patch)
treed798a2717ed9ee266e6070a3fd018de5dbcf1cd2 /src/steps.c
parent2f924f942bd6e7126e8f1d8692e475c95bd9fe82 (diff)
downloadnissy-6df92db4d23dd6e2c3aba48caf1e0ea30265abb2.tar.gz
nissy-6df92db4d23dd6e2c3aba48caf1e0ea30265abb2.zip
some progress
Diffstat (limited to '')
-rw-r--r--src/steps.c30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/steps.c b/src/steps.c
index 014b206..933d823 100644
--- a/src/steps.c
+++ b/src/steps.c
@@ -1467,12 +1467,6 @@ copy_estimatedata(EstimateData *src, EstimateData *dst)
1467} 1467}
1468 1468
1469void 1469void
1470free_estimatedata(EstimateData *ed)
1471{
1472 free(ed);
1473}
1474
1475void
1476invert_estimatedata(EstimateData *ed) 1470invert_estimatedata(EstimateData *ed)
1477{ 1471{
1478 swap(&(ed->normal_ud), &(ed->inverse_ud)); 1472 swap(&(ed->normal_ud), &(ed->inverse_ud));
@@ -1480,21 +1474,17 @@ invert_estimatedata(EstimateData *ed)
1480 swap(&(ed->normal_rl), &(ed->inverse_rl)); 1474 swap(&(ed->normal_rl), &(ed->inverse_rl));
1481} 1475}
1482 1476
1483EstimateData * 1477void
1484new_estimatedata() 1478reset_estimatedata(EstimateData *ed)
1485{ 1479{
1486 EstimateData *ret = malloc(sizeof(EstimateData)); 1480 ed->corners = -1;
1487 1481 ed->normal_ud = -1;
1488 ret->corners = -1; 1482 ed->normal_fb = -1;
1489 ret->normal_ud = -1; 1483 ed->normal_rl = -1;
1490 ret->normal_fb = -1; 1484 ed->inverse_ud = -1;
1491 ret->normal_rl = -1; 1485 ed->inverse_fb = -1;
1492 ret->inverse_ud = -1; 1486 ed->inverse_rl = -1;
1493 ret->inverse_fb = -1; 1487 ed->oldret = -1;
1494 ret->inverse_rl = -1;
1495 ret->oldret = -1;
1496
1497 return ret;
1498} 1488}
1499 1489
1500void 1490void

Generated with cgit - Back to sebastiano.tronto.net