jpeg-0.0.1: A library for decoding JPEG files written in pure Haskell

Graphics.JPEG

Documentation

o :: (c -> d) -> (a -> b -> c) -> a -> b -> dSource

type Table a = Int -> aSource

subst :: Eq a => a -> b -> (a -> b) -> a -> bSource

multi :: Int -> [a] -> [a]Source

data PixelRGB Source

Constructors

PixelRGB 

Fields

red :: !Word8
 
green :: !Word8
 
blue :: !Word8
 

type Dim = (Int, Int)Source

type Mat a = [[a]]Source

matapply :: Num a => Mat a -> [a] -> [a]Source

inprod :: Num a => [a] -> [a] -> aSource

matmap :: (a -> b) -> Mat a -> Mat bSource

matzip :: [Mat a] -> Mat [a]Source

type Bits = [Bool]Source

data Tree a Source

Constructors

Nil 
Tip a 
Bin (Tree a) (Tree a) 

Instances

item :: State [a] aSource

matrix :: Monad m => Dim -> m a -> m (Mat a)Source

many :: Monad (State [a]) => State [a] b -> State [a] [b]Source

sf_uncur :: (b -> State a (b, c)) -> State (a, b) cSource

sf_curry :: State (a, b) c -> b -> State a (b, c)Source

build :: Monad (State [(a, Int)]) => Int -> State [(a, Int)] (Tree a)Source

huffmanTree :: Monad (State [(a, Int)]) => [[a]] -> Tree aSource

type QuaTab = [Int]Source

upsamp :: Dim -> Mat a -> Mat aSource

zigzag :: [a] -> Mat aSource

zigzag2 :: [a] -> Mat aSource

type QtabCompo = (Int, [Int])Source

type DHT = (Int, Int, Tree Int)Source

segment :: (SOF -> a, DHT -> a, DQT -> a, SOS -> a, XXX -> a) -> State String aSource

type Huf = (Table (Tree Int), Table (Tree (Int, Int)))Source

bmphead :: [[a]] -> StringSource