hw impl of ipf codec (encoding not tested)

This commit is contained in:
minjaesong
2022-05-03 11:55:09 +09:00
parent 89bb944869
commit d7a271a40f
3 changed files with 559 additions and 6 deletions

View File

@@ -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