mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-11 13:41:50 +09:00
hw impl of ipf codec (encoding not tested)
This commit is contained in:
@@ -153,8 +153,8 @@ function ycocgToRGB(co, cg, ys, as) { // ys: 4 Y-values
|
||||
// cocg = 0x7777
|
||||
// ys = 0x7777
|
||||
|
||||
co = (co - 7) / 8
|
||||
cg = (cg - 7) / 8
|
||||
co = (co - 7) / 8.0
|
||||
cg = (cg - 7) / 8.0
|
||||
|
||||
let y1 = (ys & 15) / 15.0
|
||||
let a1 = as & 15
|
||||
|
||||
Reference in New Issue
Block a user