Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
baAlex committed Mar 15, 2022
1 parent 5215461 commit 22cc1bb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ It supports/implements:
- Configurable quality loss ([examples](#examples) below).
- 8 bits per component. 4 channels.
- Reversible YCoCg color transformation.
- Elias coding + Rle compression. Nonetheless the codec can handle ratios of 1:12 before artifacts became visible.
- Elias coding + Rle compression. Nonetheless can handle ratios of 1:12 before artifacts became visible.
- Good performance. There is care on cache and memory usage.
- Everything is done with integers. This ensure always identical outputs (even in lossy compression) and provides gain in performance.
- Everything is done with integers. Ensure always identical outputs (even in lossy compression) and provides gain in performance.

And in a more experimental state:
And in an experimental state:
- Lossless compression.


Expand Down Expand Up @@ -47,9 +47,7 @@ akoenc -q 16 -i "input.png" -o "out.ako"

Examples
--------
Following examples are mere illustrations. Chosen compression ratios are too high to be useful in real life.

Note how fine details are discarded while sharp lines and overall shapes remain intact, this whitout visible blocks. And all modern codecs do this, however here it is remarkable since Ako lacks of quality estimation or rate-distortion optimizations (tasks to improve the codec further).
Note how fine details are discarded while sharp lines and overall shapes remain intact, this whitout visible blocks. And while all modern codecs do this, here it is remarkable since Ako lacks of quality estimation, rate-distortion optimizations or filters (tasks to improve the codec further).

> **TODO, upss, already outdated**
Expand Down
4 changes: 2 additions & 2 deletions tests/cdf53-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static void sHorizontalTest(size_t len, int16_t q, int16_t callback_data, int16_
// clang-format on

// DWT (buffer a to b)
akoCdf53LiftH(w, 1, 1, (len + plus_one_rule) / 2, plus_one_rule, 0, buffer_a, buffer_b);
akoCdf53LiftH(w, 1, (len + plus_one_rule) / 2, plus_one_rule, 0, buffer_a, buffer_b);

sHorizontalPrint(sMin((len + plus_one_rule) / 2, PRINT_MAX / 2), 1, "Lp:\t", "\t\t", buffer_b);
sHorizontalPrint(sMin((len + plus_one_rule) / 2, PRINT_MAX / 2), 1, "Hp:\t", "\t\t",
Expand Down Expand Up @@ -169,7 +169,7 @@ static void sVerticalTest(size_t height, int16_t q, int16_t callback_data,
// clang-format on

// DWT (buffer a to b)
akoCdf53LiftV(w, 1, width, height / 2, buffer_a, buffer_b);
akoCdf53LiftV(w, width, height / 2, buffer_a, buffer_b);

sVerticalPrint(sMin(height / 2, PRINT_MAX / 2), width, 1, "Lp:\t", "\t\t", buffer_b);
sVerticalPrint(sMin(height / 2, PRINT_MAX / 2), width, 1, "Hp:\t", "\t\t", buffer_b + (width * (height / 2)));
Expand Down
4 changes: 2 additions & 2 deletions tests/dd137-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static void sHorizontalTest(size_t len, int16_t callback_data, int16_t (*callbac
// clang-format on

// DWT (buffer a to b)
akoDd137LiftH(wr, 1, 1, (len + plus_one_rule) / 2, plus_one_rule, 0, buffer_a, buffer_b);
akoDd137LiftH(wr, 1, (len + plus_one_rule) / 2, plus_one_rule, 0, buffer_a, buffer_b);

sHorizontalPrint(sMin((len + plus_one_rule) / 2, PRINT_MAX / 2), 1, "Lp:\t", "\t\t", buffer_b);
sHorizontalPrint(sMin((len + plus_one_rule) / 2, PRINT_MAX / 2), 1, "Hp:\t", "\t\t",
Expand Down Expand Up @@ -176,7 +176,7 @@ static void sVerticalTest(size_t height, int16_t callback_data, int16_t (*callba
// clang-format on

// DWT (buffer a to b)
akoDd137LiftV(w, 1, width, height / 2, buffer_a, buffer_b);
akoDd137LiftV(w, width, height / 2, buffer_a, buffer_b);

sVerticalPrint(sMin(height / 2, PRINT_MAX / 2), width, 1, "Lp:\t", "\t\t", buffer_b);
sVerticalPrint(sMin(height / 2, PRINT_MAX / 2), width, 1, "Hp:\t", "\t\t", buffer_b + (width * (height / 2)));
Expand Down

0 comments on commit 22cc1bb

Please sign in to comment.