ws-tex: Bcn BC4 / BC5 encoder: a smaller endpoint nudge search (3.7x faster, PSNR within 0.4 dB)
This commit is contained in:
1 parent
918c8310af
commit
50d856ac4a
1 file changed
+2
-2
@@ -333,8 +333,8 @@ local function channelBlock(out: buffer, o: number)
|
|||||||
else
|
else
|
||||||
-- 8-value ramp, then a few nudged endpoints
|
-- 8-value ramp, then a few nudged endpoints
|
||||||
local bestErr, b0, b1 = math.huge, hi, lo
|
local bestErr, b0, b1 = math.huge, hi, lo
|
||||||
for d0 = 0, 2 do
|
for d0 = 0, 1 do
|
||||||
for d1 = 0, 2 do
|
for d1 = 0, 1 do
|
||||||
local x0, x1 = hi - d0, lo + d1
|
local x0, x1 = hi - d0, lo + d1
|
||||||
if x0 > x1 then
|
if x0 > x1 then
|
||||||
ramp(x0, x1)
|
ramp(x0, x1)
|
||||||
|
|||||||
Reference in new issue
Block a user