JuicyPixels-3.3.3: Picture loading/serialization (in png, jpeg, bitmap, gif, tga, tiff and radiance)

Safe HaskellNone
LanguageHaskell2010

Codec.Picture.Jpg.Internal.Common

Synopsis

Documentation

type DctCoefficients = DcCoefficient #

Same as for DcCoefficient, to provide nicer type signatures

data JpgUnpackerParameter #

Constructors

JpgUnpackerParameter 

Fields

decodeInt :: Int -> BoolReader s Int32 #

deQuantize :: MacroBlock Int16 -> MutableMacroBlock s Int16 -> ST s (MutableMacroBlock s Int16) #

Apply a quantization matrix to a macroblock

decodeRrrrSsss :: HuffmanPackedTree -> BoolReader s (Int, Int) #

unpackInt :: Int -> BoolReader s Int32 #

Unpack an int of the given size encoded from MSB to LSB.

unpackMacroBlock #

Arguments

:: Int

Component count

-> Int

Width coefficient

-> Int

Height coefficient

-> Int

Component index

-> Int

x

-> Int

y

-> MutableImage s PixelYCbCr8 
-> MutableMacroBlock s Int16 
-> ST s () 

Given a size coefficient (how much a pixel span horizontally and vertically), the position of the macroblock, return a list of indices and value to be stored in an array (like the final image)

rasterMap :: Monad m => Int -> Int -> (Int -> Int -> m ()) -> m () #

decodeMacroBlock :: MacroBlock DctCoefficients -> MutableMacroBlock s Int16 -> MutableMacroBlock s Int16 -> ST s (MutableMacroBlock s Int16) #

This is one of the most important function of the decoding, it form the barebone decoding pipeline for macroblock. It's all there is to know for macro block transformation

decodeRestartInterval :: BoolReader s Int32 #