HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

ModuleJuicyPixels-3.3.9Haskell2010

Codec.Picture.Png.Internal.Type

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

Contents
  1. Low level types
Synopsis
datadata PngIHdr

Generic header used in PNG images.

Constructors

Instances2Show, Binary
  • Show PngIHdrDefined in JuicyPixels-3.3.9 · Codec.Picture.Png.Internal.Type
  • Binary PngIHdrDefined in JuicyPixels-3.3.9 · 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.9 · Codec.Picture.Png.Internal.Type
  • Show PngFilterDefined in JuicyPixels-3.3.9 · Codec.Picture.Png.Internal.Type
  • Binary PngFilterDefined in JuicyPixels-3.3.9 · Codec.Picture.Png.Internal.Type

Different known interlace methods for PNG image

Constructors

Instances3Enum, Show, Binary

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