Enumeration Caseswift-png 4.4.5PNG
invalidHistogramChunkLength(_:expected:)
A hIST
chunk had the wrong length.
case invalidHistogramChunkLength(Int, expected: Int)
Parameters
Other cases
case invalidHeaderChunkLength(Int)
An
IHDR
chunk had the wrong length.case invalidHeaderPixelFormatCode((UInt8, UInt8))
An
IHDR
chunk had an invalid pixel format code.case invalidHeaderPixelFormat(PNG.Format.Pixel, standard: PNG.Standard)
An
IHDR
chunk specified a pixel format that is disallowed according to the PNG standard used by the image.case invalidHeaderCompressionMethodCode(UInt8)
An
IHDR
chunk had an invalid compression method code.case invalidHeaderFilterCode(UInt8)
An
IHDR
chunk had an invalid filter code.case invalidHeaderInterlacingCode(UInt8)
An
IHDR
chunk had an invalid interlacing code.case invalidHeaderSize((x: Int, y: Int))
An
IHDR
chunk specified an invalid image size.case unexpectedPalette(pixel: PNG.Format.Pixel)
The parser encountered a
PLTE
chunk in an image with a pixel format that forbids it.case invalidPaletteChunkLength(Int)
A
PLTE
chunk had a length that is not divisible by3
.case invalidPaletteCount(Int, max: Int)
A
PLTE
chunk contained more entries than allowed.case unexpectedTransparency(pixel: PNG.Format.Pixel)
The parser encountered a
tRNS
chunk in an image with a pixel format that forbids it.case invalidTransparencyChunkLength(Int, expected: Int)
A
tRNS
chunk had the wrong length.case invalidTransparencySample(UInt16, max: UInt16)
A
tRNS
chunk contained an invalid chroma key sample.case invalidTransparencyCount(Int, max: Int)
A
tRNS
chunk contained too many alpha samples.case invalidBackgroundChunkLength(Int, expected: Int)
A
bKGD
chunk had the wrong length.case invalidBackgroundSample(UInt16, max: UInt16)
A
bKGD
chunk contained an invalid background sample.case invalidBackgroundIndex(Int, max: Int)
A
bKGD
chunk specified an out-of-range palette index.case invalidGammaChunkLength(Int)
A
gAMA
chunk had the wrong length.case invalidChromaticityChunkLength(Int)
A
cHRM
chunk had the wrong length.case invalidColorRenderingChunkLength(Int)
An
sRGB
chunk had the wrong length.case invalidColorRenderingCode(UInt8)
An
sRGB
chunk had an invalid color rendering code.case invalidSignificantBitsChunkLength(Int, expected: Int)
An
sBIT
chunk had the wrong length.case invalidSignificantBitsPrecision(Int, max: Int)
An
sBIT
chunk specified an invalid precision value.case invalidColorProfileChunkLength(Int, min: Int)
An
iCCP
chunk had an invalid length.case invalidColorProfileName(String?)
An
iCCP
chunk had an invalid profile name.case invalidColorProfileCompressionMethodCode(UInt8)
An
iCCP
chunk had an invalid compression method code.case incompleteColorProfileCompressedDatastream
The compressed data stream in an
iCCP
chunk was not properly terminated.case invalidPhysicalDimensionsChunkLength(Int)
A
pHYs
chunk had the wrong length.case invalidPhysicalDimensionsDensityUnitCode(UInt8)
A
pHYs
chunk had an invalid density unit code.case invalidSuggestedPaletteChunkLength(Int, min: Int)
An
sPLT
chunk had an invalid length.case invalidSuggestedPaletteName(String?)
An
sPLT
chunk had an invalid palette name.case invalidSuggestedPaletteDataLength(Int, stride: Int)
The length of the palette data in an
sPLT
chunk was not divisible by its expected stride.case invalidSuggestedPaletteDepthCode(UInt8)
An
sPLT
chunk had an invalid depth code.case invalidSuggestedPaletteFrequency
The entries in an
sPLT
chunk were not ordered by descending frequency.case invalidTimeModifiedChunkLength(Int)
A
tIME
chunk had the wrong length.case invalidTimeModifiedTime(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int)
A
tIME
chunk specified an invalid timestamp.case invalidTextEnglishKeyword(String?)
A
tEXt
,zTXt
, oriTXt
chunk had an invalid english keyword.case invalidTextChunkLength(Int, min: Int)
A
tEXt
,zTXt
, oriTXt
chunk had an invalid length.case invalidTextCompressionCode(UInt8)
An
iTXt
chunk had an invalid compression code.case invalidTextCompressionMethodCode(UInt8)
A
zTXt
oriTXt
chunk had an invalid compression method code.case invalidTextLanguageTag(String?)
An
iTXt
chunk had an invalid language tag.case invalidTextLocalizedKeyword
The parser could not find the null-terminator of the localized keyword string in an
iTXt
chunk.case incompleteTextCompressedDatastream
The compressed data stream in a
zTXt
oriTXt
chunk was not properly terminated.