morepretty
This commit is contained in:
parent
1f953f975a
commit
b59ab89044
2 changed files with 11 additions and 9 deletions
|
@ -7,14 +7,14 @@ const
|
||||||
]
|
]
|
||||||
knownTags = [
|
knownTags = [
|
||||||
0x0100.uint16, # ImageWidth
|
0x0100.uint16, # ImageWidth
|
||||||
0x0101, # ImageLength
|
0x0101, # ImageLength
|
||||||
0x0102, # BitsPerSample
|
0x0102, # BitsPerSample
|
||||||
0x0103, # Compression
|
0x0103, # Compression
|
||||||
0x0106, # PhotometricInterpretation
|
0x0106, # PhotometricInterpretation
|
||||||
0x0111, # StripOffsets
|
0x0111, # StripOffsets
|
||||||
0x0116, # RowsPerStrip
|
0x0116, # RowsPerStrip
|
||||||
0x0117, # StripByteCounts
|
0x0117, # StripByteCounts
|
||||||
0x0140, # ColorMap
|
0x0140, # ColorMap
|
||||||
]
|
]
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
@ -1357,7 +1357,9 @@ proc fillCoverage(
|
||||||
sourceOdd = mm_srli_epi16(mm_mulhi_epu16(sourceOdd, div255), 7)
|
sourceOdd = mm_srli_epi16(mm_mulhi_epu16(sourceOdd, div255), 7)
|
||||||
result = mm_or_si128(sourceEven, mm_slli_epi16(sourceOdd, 8))
|
result = mm_or_si128(sourceEven, mm_slli_epi16(sourceOdd, 8))
|
||||||
|
|
||||||
iterator simd(coverages: seq[uint8], x: var int, startX: int): (M128i, bool, bool) =
|
iterator simd(
|
||||||
|
coverages: seq[uint8], x: var int, startX: int
|
||||||
|
): (M128i, bool, bool) =
|
||||||
for _ in 0 ..< coverages.len div 16:
|
for _ in 0 ..< coverages.len div 16:
|
||||||
let
|
let
|
||||||
coverageVec = mm_loadu_si128(coverages[x - startX].unsafeAddr)
|
coverageVec = mm_loadu_si128(coverages[x - startX].unsafeAddr)
|
||||||
|
|
Loading…
Reference in a new issue