babl-0.0.0.1: Initial project template from stack

Safe HaskellSafe
LanguageHaskell2010

BABL.FFI.Format

Synopsis

Documentation

data BablFormatPtr #

Constructors

BablFormatPtr 

type BablFormatDummy = Ptr () #

The dummy Pointer behind BablFormatPtr. Do not peek or poke

data ComponentModel #

List of component models af babl formats.

Instances

Show ComponentModel # 

Methods

showsPrec :: Int -> ComponentModel -> ShowS

show :: ComponentModel -> String

showList :: [ComponentModel] -> ShowS

data ComponentFormat #

Byte format of a colour component.

Instances

Show ComponentFormat # 

Methods

showsPrec :: Int -> ComponentFormat -> ShowS

show :: ComponentFormat -> String

showList :: [ComponentFormat] -> ShowS

c_babl_format #

Arguments

:: CString

Format name

-> IO BablFormatDummy 

create a new predefined BABL format

c_babl_get_bpp #

Arguments

:: BablFormatDummy

Format to be drawn from

-> IO CInt 

create and define your own BABL format foreign import ccall unsafe "babl.h babl_format_new"

Get the number of bytes per pixel from a format.