Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanDoggie committed Apr 1, 2021
1 parent ef0363a commit c8186ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension Image {
let channelBytesOffset = channel.bitRange.lowerBound >> 3
let channelBitsShift = channel.bitRange.lowerBound & 7

let chunks: LazyChunkSequence = channel.bitRange.lazy.chunks(ofCount: 8)
let chunks = channel.bitRange.chunks(ofCount: 8)

let _base = (1 as UInt64) << (channel.bitRange.count - 1)
let _mask = ((1 as UInt64) << channel.bitRange.count) &- 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension Image {
let channelBytesOffset = channel.bitRange.lowerBound >> 3
let channelBitsShift = channel.bitRange.lowerBound & 7

let chunks: LazyChunkSequence = channel.bitRange.lazy.chunks(ofCount: 8)
let chunks = channel.bitRange.chunks(ofCount: 8)

@inline(__always)
func read_pixel(_ source: UnsafePointer<UInt8>, _ offset: Int, _ i: Int) -> UInt8 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ extension PDFRenderer {
patch_data.decode(functions: functions, colorSpace: colorSpace, bitsPerCoordinate: bitsPerCoordinate, bitsPerComponent: bitsPerComponent, decode: decode)

let points = patch_data.coords.chunks(ofCount: 2).map { Point(x: $0.first!, y: $0.last!) }
let colors = patch_data.colors.chunks(ofCount: colorSpace.numberOfComponents)
let colors = Array(patch_data.colors.chunks(ofCount: colorSpace.numberOfComponents))

switch patch_data.flag {

Expand Down

0 comments on commit c8186ed

Please sign in to comment.