diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-12-17 22:03:33 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-12-17 22:03:33 +0100 |
| commit | 6df92db4d23dd6e2c3aba48caf1e0ea30265abb2 (patch) | |
| tree | d798a2717ed9ee266e6070a3fd018de5dbcf1cd2 /src/steps.c | |
| parent | 2f924f942bd6e7126e8f1d8692e475c95bd9fe82 (diff) | |
| download | nissy-6df92db4d23dd6e2c3aba48caf1e0ea30265abb2.tar.gz nissy-6df92db4d23dd6e2c3aba48caf1e0ea30265abb2.zip | |
some progress
Diffstat (limited to 'src/steps.c')
| -rw-r--r-- | src/steps.c | 30 |
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 | ||
| 1469 | void | 1469 | void |
| 1470 | free_estimatedata(EstimateData *ed) | ||
| 1471 | { | ||
| 1472 | free(ed); | ||
| 1473 | } | ||
| 1474 | |||
| 1475 | void | ||
| 1476 | invert_estimatedata(EstimateData *ed) | 1470 | invert_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 | ||
| 1483 | EstimateData * | 1477 | void |
| 1484 | new_estimatedata() | 1478 | reset_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 | ||
| 1500 | void | 1490 | void |
