]> Cypherpunks repositories - gostls13.git/commit
image/jpeg: prepare for new FDCT/IDCT implementations
authorRuss Cox <rsc@golang.org>
Thu, 18 Sep 2025 16:16:07 +0000 (12:16 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 25 Sep 2025 14:12:44 +0000 (07:12 -0700)
commit27c7bbc51c812570e534d0aa0a8dc8733e5e3abf
tree13bb980d3ec89129706f5d3343ac1eb09c4255d4
parentf15cd63ec4860c4f2c23cc992843546e0265c332
image/jpeg: prepare for new FDCT/IDCT implementations

Preparation for a new unencumbered implementation of fdct.go and idct.go.

- Change benchmark not to allocate O(b.N) storage.
- Make tests point out where differences are.
- Parameterize differ tolerance.

Change-Id: Id5dfee40f86de894bad72dd6178ba61ec81ea2da
Reviewed-on: https://go-review.googlesource.com/c/go/+/705516
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/image/jpeg/dct_test.go