Enumerationswift-png 4.4.5PNG
DecodingError
A decoding error.
PNG.DecodingError.swift:5enum DecodingError
Cases
case required(chunk: PNG.Chunk, before: PNG.Chunk)
The decoder encountered a chunk of a type that is not allowed to appear after a previously encountered chunk of a particular type.
case duplicate(chunk: PNG.Chunk)
case unexpected(chunk: PNG.Chunk, after: PNG.Chunk)
case incompleteImageDataCompressedDatastream
The decoder finished processing the last
IDAT
chunk before the compressed image data stream was properly terminated.case extraneousImageDataCompressedData
The decoder encountered additional
IDAT
chunks after the end of the compressed image data stream.case extraneousImageData
The compressed image data stream produces more uncompressed image data than expected.
See also
protocol Error
Functionality common to all library error types.
enum LexingError
A lexing error.
enum ParsingError
A parsing error.
enum FormattingError
A formatting error.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (47) members.
Protocols
protocol BytestreamDestination
A destination bytestream.
protocol BytestreamSource
A source bytestream.
protocol Color<Aggregate>
A color target.
Types
struct Background
A background descriptor.
struct Chromaticity
A chromaticity descriptor.
struct Chunk
A chunk type identifier.
struct ColorProfile
An embedded color profile.
enum ColorRendering
A color rendering mode.
struct Context
A decoding context.
enum Format
A color format.
struct Gamma
A gamma descriptor.
struct Header
An image header.
struct Histogram
A palette frequency histogram.
struct Image
A rectangular image.
struct Layout
An image layout.
struct Metadata
The metadata in a PNG image.
struct Palette
An image palette.
struct Percentmille
A rational percentmille value.
struct PhysicalDimensions
A physical dimensions descriptor.
struct RGBA<T>
An RGBA color target.
struct SignificantBits
A color precision descriptor.
enum Standard
A PNG standard.
struct SuggestedPalette
A suggested image palette.
struct Text
A text comment.
struct TimeModified
An image modification time.
struct Transparency
A transparency descriptor.
struct VA<T>
A grayscale-alpha color target.
Show obsolete interfaces (2)
Hide obsolete interfaces
enum Bytestream
A namespace for bytestream utilities.
enum Data
A namespace containing the
Image
type.
Type members
static func convolve<A, T, C>([UInt8], dereference: (Int) -> A, kernel: (T) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel and dereferencing function.
static func convolve<A, T, C>([UInt8], dereference: (Int) -> (A, A), kernel: ((T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel and dereferencing function.
static func convolve<A, T, C>([UInt8], dereference: (Int) -> (A, A, A), kernel: ((T, T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel and dereferencing function.
static func convolve<A, T, C>([UInt8], dereference: (Int) -> (A, A, A, A), kernel: ((T, T, T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel and dereferencing function.
static func convolve<A, T, C>([UInt8], of: A.Type, depth: Int, kernel: ((T, T, T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel.
static func convolve<A, T, C>([UInt8], of: A.Type, depth: Int, kernel: ((T, T, T), (A, A, A)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel.
static func convolve<A, T, C>([UInt8], of: A.Type, depth: Int, kernel: ((T, T)) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel.
static func convolve<A, T, C>([UInt8], of: A.Type, depth: Int, kernel: (T, A) -> C
) -> [C] Converts an image data buffer to a pixel array, using the given pixel kernel.
static func deconvolve<A, T, C>([C], as: A.Type, depth: Int, kernel: (C) -> (T, T, T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel.
static func deconvolve<A, T, C>([C], as: A.Type, depth: Int, kernel: (C) -> (T, T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel.
static func deconvolve<A, T, C>([C], as: A.Type, depth: Int, kernel: (C) -> (T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel.
static func deconvolve<A, T, C>([C], as: A.Type, depth: Int, kernel: (C) -> T
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel.
static func deconvolve<A, T, C>([C], reference: (A) -> Int, kernel: (C) -> T
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel and referencing function.
static func deconvolve<A, T, C>([C], reference: ((A, A)) -> Int, kernel: (C) -> (T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel and referencing function.
static func deconvolve<A, T, C>([C], reference: ((A, A, A)) -> Int, kernel: (C) -> (T, T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel and referencing function.
static func deconvolve<A, T, C>([C], reference: ((A, A, A, A)) -> Int, kernel: (C) -> (T, T, T, T)
) -> [UInt8] Converts a pixel array to an image data buffer, using the given pixel kernel and referencing function.
static func premultiply<T>(T, alpha: T
) -> T Premultiplies a color component with an alpha value.
static func straighten<T>(T, alpha: T
) -> T Straightens a premultiplied color component given an alpha value.
Citizens in PNG
Conformances
protocol Error
A type representing an error value that can be thrown.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Type members
static var namespace: String
The string
"decoding error"
.
Instance members
Instance features
var fatal: Never
Halts execution by converting this error into a fatal error.