HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleJuicyPixels-3.3.8Haskell2010

Codec.Picture.Png.Internal.Type

Low level png module, you should import Codec.Picture.Png.Internal instead.

  • 17 types
  • 15 values
datadata PngIHdr
#

Generic header used in PNG images.

Constructors

Instances2Show, Binary
  • Show PngIHdrDefined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.Type
  • Binary PngIHdrDefined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.Type
datadata PngFilter
#

The pixels value should be : +---+---+ | c | b | +---+---+ | a | x | +---+---+ x being the current filtered pixel

Constructors

  • FilterNone

    Filt(x) = Orig(x), Recon(x) = Filt(x)

  • FilterSub

    Filt(x) = Orig(x) - Orig(a), Recon(x) = Filt(x) + Recon(a)

  • FilterUp

    Filt(x) = Orig(x) - Orig(b), Recon(x) = Filt(x) + Recon(b)

  • FilterAverage

    Filt(x) = Orig(x) - floor((Orig(a) + Orig(b)) / 2), Recon(x) = Filt(x) + floor((Recon(a) + Recon(b)) / 2)

  • FilterPaeth

    Filt(x) = Orig(x) - PaethPredictor(Orig(a), Orig(b), Orig(c)), Recon(x) = Filt(x) + PaethPredictor(Recon(a), Recon(b), Recon(c))

Instances3Enum, Show, Binary
  • Enum PngFilterDefined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.Type
  • Show PngFilterDefined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.Type
  • Binary PngFilterDefined in JuicyPixels-3.3.8 · Codec.Picture.Png.Internal.Type
datadata PngInterlaceMethod
#

Different known interlace methods for PNG image

Constructors

Instances3Enum, Show, Binary
datadata APngFrameDisposal
#

Encoded in a Word8

Constructors

  • APngDisposeNone

    No disposal is done on this frame before rendering the next; the contents of the output buffer are left as is. Has Value 0

  • APngDisposeBackground

    The frame's region of the output buffer is to be cleared to fully transparent black before rendering the next frame. Has Value 1

  • APngDisposePrevious

    the frame's region of the output buffer is to be reverted to the previous contents before rendering the next frame. Has Value 2

Instances1Show

Low level types

7 declarations