accelerate-io-JuicyPixels-0.1.0.0: Convert between Accelerate arrays and JuicyPixels images

Copyright[2019..2020] The Accelerate Team
LicenseBSD3
MaintainerTrevor L. McDonell <trevor.mcdonell@gmail.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.IO.Codec.Picture.Types

Contents

Description

 
Synopsis

Documentation

data Image a #

The main type of this package, one that most functions work on, is Image.

Parameterized by the underlying pixel format it forms a rigid type. If you wish to store images of different or unknown pixel formats use DynamicImage.

Image is essentially a rectangular pixel buffer of specified width and height. The coordinates are assumed to start from the upper-left corner of the image, with the horizontal position first and vertical second.

Constructors

Image 

Fields

  • imageWidth :: !Int

    Width of the image in pixels

  • imageHeight :: !Int

    Height of the image in pixels.

  • imageData :: Vector (PixelBaseComponent a)

    Image pixel data. To extract pixels at a given position you should use the helper functions.

    Internally pixel data is stored as consecutively packed lines from top to bottom, scanned from left to right within individual lines, from first to last color component within each pixel.

Instances
(Eq (PixelBaseComponent a), Storable (PixelBaseComponent a)) => Eq (Image a) 
Instance details

Defined in Codec.Picture.Types

Methods

(==) :: Image a -> Image a -> Bool #

(/=) :: Image a -> Image a -> Bool #

NFData (Image a) 
Instance details

Defined in Codec.Picture.Types

Methods

rnf :: Image a -> () #

class (Storable (PixelBaseComponent a), Num (PixelBaseComponent a), Eq a) => Pixel a #

Definition of pixels used in images. Each pixel has a color space, and a representative component (Word8 or Float).

Associated Types

type PixelBaseComponent a :: Type #

Type of the pixel component, "classical" images would have Word8 type as their PixelBaseComponent, HDR image would have Float for instance

Instances
Pixel Pixel8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent Pixel8 :: Type #

Pixel Pixel16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent Pixel16 :: Type #

Pixel Pixel32 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent Pixel32 :: Type #

Pixel PixelF 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelF :: Type #

Pixel PixelYA8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelYA8 :: Type #

Pixel PixelYA16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelYA16 :: Type #

Pixel PixelRGB8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGB8 :: Type #

Pixel PixelYCbCrK8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelYCbCrK8 :: Type #

Pixel PixelRGB16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGB16 :: Type #

Pixel PixelRGBF 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGBF :: Type #

Pixel PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelYCbCr8 :: Type #

Pixel PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelCMYK8 :: Type #

Pixel PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelCMYK16 :: Type #

Pixel PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGBA8 :: Type #

Pixel PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGBA16 :: Type #

type Pixel8 = Word8 #

Type alias for 8bit greyscale pixels. For simplicity, greyscale pixels use plain numbers instead of a separate type.

type Pixel16 = Word16 #

Type alias for 16bit greyscale pixels.

type Pixel32 = Word32 #

Type alias for 32bit greyscale pixels.

type PixelF = Float #

Type alias for 32bit floating point greyscale pixels. The standard bounded value range is mapped to the closed interval [0,1] i.e.

map promotePixel [0, 1 .. 255 :: Pixel8] == [0/255, 1/255 .. 1.0 :: PixelF]

data PixelYA8 #

Pixel type storing 8bit Luminance (Y) and alpha (A) information. Values are stored in the following order:

  • Luminance
  • Alpha

Constructors

PixelYA8 !Pixel8 !Pixel8 
Instances
Eq PixelYA8 
Instance details

Defined in Codec.Picture.Types

Ord PixelYA8 
Instance details

Defined in Codec.Picture.Types

Show PixelYA8 
Instance details

Defined in Codec.Picture.Types

Pixel PixelYA8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelYA8 :: Type #

LumaPlaneExtractable PixelYA8 
Instance details

Defined in Codec.Picture.Types

PackeablePixel PixelYA8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PackedRepresentation PixelYA8 :: Type #

Elt PixelYA8 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelYA8 :: Type

Methods

eltR :: TypeR (EltR PixelYA8)

tagsR :: [TagR (EltR PixelYA8)]

fromElt :: PixelYA8 -> EltR PixelYA8

toElt :: EltR PixelYA8 -> PixelYA8

ColorPlane PixelYA8 PlaneAlpha 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelYA8 PlaneLuma 
Instance details

Defined in Codec.Picture.Types

TransparentPixel PixelYA8 Pixel8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible Pixel8 PixelYA8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA8 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA8 PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelYA8 
Instance details

Defined in Codec.Picture.Types

type PackedRepresentation PixelYA8 
Instance details

Defined in Codec.Picture.Types

type EltR PixelYA8 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelYA8 = Vec2 Pixel8

data PixelYA16 #

Pixel type storing 16bit Luminance (Y) and alpha (A) information. Values are stored in the following order:

  • Luminance
  • Alpha

Constructors

PixelYA16 !Pixel16 !Pixel16 
Instances
Eq PixelYA16 
Instance details

Defined in Codec.Picture.Types

Ord PixelYA16 
Instance details

Defined in Codec.Picture.Types

Show PixelYA16 
Instance details

Defined in Codec.Picture.Types

Pixel PixelYA16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelYA16 :: Type #

PackeablePixel PixelYA16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PackedRepresentation PixelYA16 :: Type #

Elt PixelYA16 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelYA16 :: Type

Methods

eltR :: TypeR (EltR PixelYA16)

tagsR :: [TagR (EltR PixelYA16)]

fromElt :: PixelYA16 -> EltR PixelYA16

toElt :: EltR PixelYA16 -> PixelYA16

ColorPlane PixelYA16 PlaneAlpha 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelYA16 PlaneLuma 
Instance details

Defined in Codec.Picture.Types

TransparentPixel PixelYA16 Pixel16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible Pixel16 PixelYA16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA16 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA16 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelYA16 
Instance details

Defined in Codec.Picture.Types

type PackedRepresentation PixelYA16 
Instance details

Defined in Codec.Picture.Types

type EltR PixelYA16 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelYA16 = Vec2 Pixel16

data PixelRGB8 #

Classic pixel type storing 8bit red, green and blue (RGB) information. Values are stored in the following order:

  • Red
  • Green
  • Blue

Constructors

PixelRGB8 !Pixel8 !Pixel8 !Pixel8 
Instances
Eq PixelRGB8 
Instance details

Defined in Codec.Picture.Types

Ord PixelRGB8 
Instance details

Defined in Codec.Picture.Types

Show PixelRGB8 
Instance details

Defined in Codec.Picture.Types

Pixel PixelRGB8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGB8 :: Type #

LumaPlaneExtractable PixelRGB8 
Instance details

Defined in Codec.Picture.Types

Elt PixelRGB8 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelRGB8 :: Type

Methods

eltR :: TypeR (EltR PixelRGB8)

tagsR :: [TagR (EltR PixelRGB8)]

fromElt :: PixelRGB8 -> EltR PixelRGB8

toElt :: EltR PixelRGB8 -> PixelRGB8

ColorPlane PixelRGB8 PlaneRed 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGB8 PlaneGreen 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGB8 PlaneBlue 
Instance details

Defined in Codec.Picture.Types

TransparentPixel PixelRGBA8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible Pixel8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB8 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB8 PixelRGBF 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB8 PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB8 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelRGB8 PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelRGB8 PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelYCbCrK8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelYCbCr8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelCMYK8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelRGB8 
Instance details

Defined in Codec.Picture.Types

type EltR PixelRGB8 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelRGB8 = Vec3 Pixel8

data PixelRGB16 #

Pixel type storing 16bit red, green and blue (RGB) information. Values are stored in the following order:

  • Red
  • Green
  • Blue
Instances
Eq PixelRGB16 
Instance details

Defined in Codec.Picture.Types

Ord PixelRGB16 
Instance details

Defined in Codec.Picture.Types

Show PixelRGB16 
Instance details

Defined in Codec.Picture.Types

Pixel PixelRGB16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGB16 :: Type #

LumaPlaneExtractable PixelRGB16 
Instance details

Defined in Codec.Picture.Types

Elt PixelRGB16 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelRGB16 :: Type

Methods

eltR :: TypeR (EltR PixelRGB16)

tagsR :: [TagR (EltR PixelRGB16)]

fromElt :: PixelRGB16 -> EltR PixelRGB16

toElt :: EltR PixelRGB16 -> PixelRGB16

ColorPlane PixelRGB16 PlaneRed 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGB16 PlaneGreen 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGB16 PlaneBlue 
Instance details

Defined in Codec.Picture.Types

TransparentPixel PixelRGBA16 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible Pixel8 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible Pixel16 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA8 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA16 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB8 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB16 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelRGB16 PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelCMYK16 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelRGB16 
Instance details

Defined in Codec.Picture.Types

type EltR PixelRGB16 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelRGB16 = Vec3 Pixel16

data PixelRGBF #

HDR pixel type storing floating point 32bit red, green and blue (RGB) information. Same value range and comments apply as for PixelF. Values are stored in the following order:

  • Red
  • Green
  • Blue

Constructors

PixelRGBF !PixelF !PixelF !PixelF 
Instances
Eq PixelRGBF 
Instance details

Defined in Codec.Picture.Types

Ord PixelRGBF 
Instance details

Defined in Codec.Picture.Types

Show PixelRGBF 
Instance details

Defined in Codec.Picture.Types

Pixel PixelRGBF 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGBF :: Type #

LumaPlaneExtractable PixelRGBF 
Instance details

Defined in Codec.Picture.Types

Elt PixelRGBF Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelRGBF :: Type

Methods

eltR :: TypeR (EltR PixelRGBF)

tagsR :: [TagR (EltR PixelRGBF)]

fromElt :: PixelRGBF -> EltR PixelRGBF

toElt :: EltR PixelRGBF -> PixelRGBF

ColorPlane PixelRGBF PlaneRed 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGBF PlaneGreen 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGBF PlaneBlue 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelF PixelRGBF 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB8 PixelRGBF 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelRGBF 
Instance details

Defined in Codec.Picture.Types

type EltR PixelRGBF 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelRGBF = Vec3 PixelF

data PixelRGBA8 #

Classical pixel type storing 8bit red, green, blue and alpha (RGBA) information. Values are stored in the following order:

  • Red
  • Green
  • Blue
  • Alpha
Instances
Eq PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

Ord PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

Show PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

Pixel PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGBA8 :: Type #

LumaPlaneExtractable PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

PackeablePixel PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PackedRepresentation PixelRGBA8 :: Type #

Elt PixelRGBA8 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelRGBA8 :: Type

Methods

eltR :: TypeR (EltR PixelRGBA8)

tagsR :: [TagR (EltR PixelRGBA8)]

fromElt :: PixelRGBA8 -> EltR PixelRGBA8

toElt :: EltR PixelRGBA8 -> PixelRGBA8

ColorPlane PixelRGBA8 PlaneRed 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGBA8 PlaneGreen 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGBA8 PlaneBlue 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGBA8 PlaneAlpha 
Instance details

Defined in Codec.Picture.Types

TransparentPixel PixelRGBA8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible Pixel8 PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA8 PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB8 PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGBA8 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

type PackedRepresentation PixelRGBA8 
Instance details

Defined in Codec.Picture.Types

type EltR PixelRGBA8 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelRGBA8 = Vec4 Pixel8

data PixelRGBA16 #

Pixel type storing 16bit red, green, blue and alpha (RGBA) information. Values are stored in the following order:

  • Red
  • Green
  • Blue
  • Alpha
Instances
Eq PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

Ord PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

Show PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

Pixel PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelRGBA16 :: Type #

PackeablePixel PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PackedRepresentation PixelRGBA16 :: Type #

Elt PixelRGBA16 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelRGBA16 :: Type

Methods

eltR :: TypeR (EltR PixelRGBA16)

tagsR :: [TagR (EltR PixelRGBA16)]

fromElt :: PixelRGBA16 -> EltR PixelRGBA16

toElt :: EltR PixelRGBA16 -> PixelRGBA16

ColorPlane PixelRGBA16 PlaneRed 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGBA16 PlaneGreen 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGBA16 PlaneBlue 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelRGBA16 PlaneAlpha 
Instance details

Defined in Codec.Picture.Types

TransparentPixel PixelRGBA16 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible Pixel16 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelYA16 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB8 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGB16 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

ColorConvertible PixelRGBA8 PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

type PackedRepresentation PixelRGBA16 
Instance details

Defined in Codec.Picture.Types

type EltR PixelRGBA16 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelRGBA16 = Vec4 Pixel16

data PixelCMYK8 #

Pixel type storing 8bit cyan, magenta, yellow and black (CMYK) information. Values are stored in the following order:

  • Cyan
  • Magenta
  • Yellow
  • Black
Instances
Eq PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

Ord PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

Show PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

Pixel PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelCMYK8 :: Type #

PackeablePixel PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PackedRepresentation PixelCMYK8 :: Type #

Elt PixelCMYK8 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelCMYK8 :: Type

Methods

eltR :: TypeR (EltR PixelCMYK8)

tagsR :: [TagR (EltR PixelCMYK8)]

fromElt :: PixelCMYK8 -> EltR PixelCMYK8

toElt :: EltR PixelCMYK8 -> PixelCMYK8

ColorPlane PixelCMYK8 PlaneCyan 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelCMYK8 PlaneMagenta 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelCMYK8 PlaneYellow 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelCMYK8 PlaneBlack 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelRGB8 PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelYCbCrK8 PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelCMYK8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

type PackedRepresentation PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

type EltR PixelCMYK8 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelCMYK8 = Vec4 Pixel8

data PixelCMYK16 #

Pixel type storing 16bit cyan, magenta, yellow and black (CMYK) information. Values are stored in the following order:

  • Cyan
  • Magenta
  • Yellow
  • Black
Instances
Eq PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

Ord PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

Show PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

Pixel PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelCMYK16 :: Type #

PackeablePixel PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PackedRepresentation PixelCMYK16 :: Type #

Elt PixelCMYK16 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelCMYK16 :: Type

Methods

eltR :: TypeR (EltR PixelCMYK16)

tagsR :: [TagR (EltR PixelCMYK16)]

fromElt :: PixelCMYK16 -> EltR PixelCMYK16

toElt :: EltR PixelCMYK16 -> PixelCMYK16

ColorPlane PixelCMYK16 PlaneCyan 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelCMYK16 PlaneMagenta 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelCMYK16 PlaneYellow 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelCMYK16 PlaneBlack 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelRGB16 PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelCMYK16 PixelRGB16 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

type PackedRepresentation PixelCMYK16 
Instance details

Defined in Codec.Picture.Types

type EltR PixelCMYK16 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelCMYK16 = Vec4 Pixel16

data PixelYCbCr8 #

Pixel type storing 8bit luminance, blue difference and red difference (YCbCr) information. Values are stored in the following order:

  • Y (luminance)
  • Cb
  • Cr

Constructors

PixelYCbCr8 !Pixel8 !Pixel8 !Pixel8 
Instances
Eq PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

Ord PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

Show PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

Pixel PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelYCbCr8 :: Type #

LumaPlaneExtractable PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

Elt PixelYCbCr8 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelYCbCr8 :: Type

Methods

eltR :: TypeR (EltR PixelYCbCr8)

tagsR :: [TagR (EltR PixelYCbCr8)]

fromElt :: PixelYCbCr8 -> EltR PixelYCbCr8

toElt :: EltR PixelYCbCr8 -> PixelYCbCr8

ColorPlane PixelYCbCr8 PlaneLuma 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelYCbCr8 PlaneCr 
Instance details

Defined in Codec.Picture.Types

ColorPlane PixelYCbCr8 PlaneCb 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelRGB8 PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelYCbCr8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelYCbCr8 
Instance details

Defined in Codec.Picture.Types

type EltR PixelYCbCr8 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelYCbCr8 = Vec3 Pixel8

data PixelYCbCrK8 #

Pixel type storing value for the YCCK color space:

  • Y (Luminance)
  • Cb
  • Cr
  • Black
Instances
Eq PixelYCbCrK8 
Instance details

Defined in Codec.Picture.Types

Ord PixelYCbCrK8 
Instance details

Defined in Codec.Picture.Types

Show PixelYCbCrK8 
Instance details

Defined in Codec.Picture.Types

Pixel PixelYCbCrK8 
Instance details

Defined in Codec.Picture.Types

Associated Types

type PixelBaseComponent PixelYCbCrK8 :: Type #

Elt PixelYCbCrK8 Source # 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

Associated Types

type EltR PixelYCbCrK8 :: Type

Methods

eltR :: TypeR (EltR PixelYCbCrK8)

tagsR :: [TagR (EltR PixelYCbCrK8)]

fromElt :: PixelYCbCrK8 -> EltR PixelYCbCrK8

toElt :: EltR PixelYCbCrK8 -> PixelYCbCrK8

ColorSpaceConvertible PixelYCbCrK8 PixelRGB8 
Instance details

Defined in Codec.Picture.Types

ColorSpaceConvertible PixelYCbCrK8 PixelCMYK8 
Instance details

Defined in Codec.Picture.Types

type PixelBaseComponent PixelYCbCrK8 
Instance details

Defined in Codec.Picture.Types

type EltR PixelYCbCrK8 
Instance details

Defined in Data.Array.Accelerate.IO.Codec.Picture.Types

type EltR PixelYCbCrK8 = Vec4 Pixel8

Orphan instances

Elt PixelYA8 Source # 
Instance details

Associated Types

type EltR PixelYA8 :: Type

Methods

eltR :: TypeR (EltR PixelYA8)

tagsR :: [TagR (EltR PixelYA8)]

fromElt :: PixelYA8 -> EltR PixelYA8

toElt :: EltR PixelYA8 -> PixelYA8

Elt PixelYA16 Source # 
Instance details

Associated Types

type EltR PixelYA16 :: Type

Methods

eltR :: TypeR (EltR PixelYA16)

tagsR :: [TagR (EltR PixelYA16)]

fromElt :: PixelYA16 -> EltR PixelYA16

toElt :: EltR PixelYA16 -> PixelYA16

Elt PixelRGB8 Source # 
Instance details

Associated Types

type EltR PixelRGB8 :: Type

Methods

eltR :: TypeR (EltR PixelRGB8)

tagsR :: [TagR (EltR PixelRGB8)]

fromElt :: PixelRGB8 -> EltR PixelRGB8

toElt :: EltR PixelRGB8 -> PixelRGB8

Elt PixelYCbCrK8 Source # 
Instance details

Associated Types

type EltR PixelYCbCrK8 :: Type

Methods

eltR :: TypeR (EltR PixelYCbCrK8)

tagsR :: [TagR (EltR PixelYCbCrK8)]

fromElt :: PixelYCbCrK8 -> EltR PixelYCbCrK8

toElt :: EltR PixelYCbCrK8 -> PixelYCbCrK8

Elt PixelRGB16 Source # 
Instance details

Associated Types

type EltR PixelRGB16 :: Type

Methods

eltR :: TypeR (EltR PixelRGB16)

tagsR :: [TagR (EltR PixelRGB16)]

fromElt :: PixelRGB16 -> EltR PixelRGB16

toElt :: EltR PixelRGB16 -> PixelRGB16

Elt PixelRGBF Source # 
Instance details

Associated Types

type EltR PixelRGBF :: Type

Methods

eltR :: TypeR (EltR PixelRGBF)

tagsR :: [TagR (EltR PixelRGBF)]

fromElt :: PixelRGBF -> EltR PixelRGBF

toElt :: EltR PixelRGBF -> PixelRGBF

Elt PixelYCbCr8 Source # 
Instance details

Associated Types

type EltR PixelYCbCr8 :: Type

Methods

eltR :: TypeR (EltR PixelYCbCr8)

tagsR :: [TagR (EltR PixelYCbCr8)]

fromElt :: PixelYCbCr8 -> EltR PixelYCbCr8

toElt :: EltR PixelYCbCr8 -> PixelYCbCr8

Elt PixelCMYK8 Source # 
Instance details

Associated Types

type EltR PixelCMYK8 :: Type

Methods

eltR :: TypeR (EltR PixelCMYK8)

tagsR :: [TagR (EltR PixelCMYK8)]

fromElt :: PixelCMYK8 -> EltR PixelCMYK8

toElt :: EltR PixelCMYK8 -> PixelCMYK8

Elt PixelCMYK16 Source # 
Instance details

Associated Types

type EltR PixelCMYK16 :: Type

Methods

eltR :: TypeR (EltR PixelCMYK16)

tagsR :: [TagR (EltR PixelCMYK16)]

fromElt :: PixelCMYK16 -> EltR PixelCMYK16

toElt :: EltR PixelCMYK16 -> PixelCMYK16

Elt PixelRGBA8 Source # 
Instance details

Associated Types

type EltR PixelRGBA8 :: Type

Methods

eltR :: TypeR (EltR PixelRGBA8)

tagsR :: [TagR (EltR PixelRGBA8)]

fromElt :: PixelRGBA8 -> EltR PixelRGBA8

toElt :: EltR PixelRGBA8 -> PixelRGBA8

Elt PixelRGBA16 Source # 
Instance details

Associated Types

type EltR PixelRGBA16 :: Type

Methods

eltR :: TypeR (EltR PixelRGBA16)

tagsR :: [TagR (EltR PixelRGBA16)]

fromElt :: PixelRGBA16 -> EltR PixelRGBA16

toElt :: EltR PixelRGBA16 -> PixelRGBA16