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)]
|
||||
case filterType:
|
||||
of 0: # None
|
||||
for x in 0 ..< rowBytes:
|
||||
var value = uncompressed[uncompressedIdx(x + 1, y)]
|
||||
result[unfiteredIdx(x, y)] = value
|
||||
copyMem(
|
||||
result[unfiteredIdx(0, y)].addr,
|
||||
uncompressed[uncompressedIdx(1, y)].unsafeAddr,
|
||||
rowBytes
|
||||
)
|
||||
of 1: # Sub
|
||||
for x in 0 ..< rowBytes:
|
||||
var value = uncompressed[uncompressedIdx(x + 1, y)]
|
||||
|
|
Loading…
Reference in a new issue