copymem for unfiltered rows
This commit is contained in:
parent
6c9abf4084
commit
4804293a4a
1 changed files with 5 additions and 3 deletions
|
@ -104,9 +104,11 @@ proc unfilter(
|
||||||
let filterType = uncompressed[uncompressedIdx(0, y)]
|
let filterType = uncompressed[uncompressedIdx(0, y)]
|
||||||
case filterType:
|
case filterType:
|
||||||
of 0: # None
|
of 0: # None
|
||||||
for x in 0 ..< rowBytes:
|
copyMem(
|
||||||
var value = uncompressed[uncompressedIdx(x + 1, y)]
|
result[unfiteredIdx(0, y)].addr,
|
||||||
result[unfiteredIdx(x, y)] = value
|
uncompressed[uncompressedIdx(1, y)].unsafeAddr,
|
||||||
|
rowBytes
|
||||||
|
)
|
||||||
of 1: # Sub
|
of 1: # Sub
|
||||||
for x in 0 ..< rowBytes:
|
for x in 0 ..< rowBytes:
|
||||||
var value = uncompressed[uncompressedIdx(x + 1, y)]
|
var value = uncompressed[uncompressedIdx(x + 1, y)]
|
||||||
|
|
Loading…
Reference in a new issue