Skip to content

Commit

Permalink
jpeg: Fix typo, renamed idtc to idct.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Aug 26, 2023
1 parent 109862b commit 179a511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/specs/jpeg/spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ struct Image {

/* --- Decoding --------------------------------------------------------- */

void idtc(Array<short, 64> &mcu) {
void idct(Array<short, 64> &mcu) {
f32 m0 = 2.0 * Math::cos(1.0 / 16.0 * 2.0 * Math::PI);
f32 m1 = 2.0 * Math::cos(2.0 / 16.0 * 2.0 * Math::PI);
f32 m3 = 2.0 * Math::cos(2.0 / 16.0 * 2.0 * Math::PI);
Expand Down Expand Up @@ -845,7 +845,7 @@ struct Image {
mcu[k] *= quant[k];
}

idtc(mcu);
idct(mcu);
}

auto &yMcu = _mcus[i + 0];
Expand Down

0 comments on commit 179a511

Please sign in to comment.