JuicyPixels-3.3.5: 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 Source #

Same as for DcCoefficient, to provide nicer type signatures

data JpgUnpackerParameter Source #

Constructors

JpgUnpackerParameter 

Fields

decodeInt :: Int -> BoolReader s Int32 Source #

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

Apply a quantization matrix to a macroblock

unpackInt :: Int -> BoolReader s Int32 Source #

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

unpackMacroBlock Source #

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 () Source #

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

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