Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class BinaryParam a b where
- data Endianness
- data TiffHeader = TiffHeader {
- hdrEndianness :: !Endianness
- hdrOffset :: !Word32
- data TiffPlanarConfiguration
- data TiffCompression
- data IfdType
- data TiffColorspace
- data TiffSampleFormat
- data ImageFileDirectory = ImageFileDirectory {
- ifdIdentifier :: !ExifTag
- ifdType :: !IfdType
- ifdCount :: !Word32
- ifdOffset :: !Word32
- ifdExtended :: !ExifData
- data ExtraSample
- data Predictor
- planarConfgOfConstant :: Word32 -> Get TiffPlanarConfiguration
- constantToPlaneConfiguration :: TiffPlanarConfiguration -> Word16
- unpackSampleFormat :: Word32 -> Get TiffSampleFormat
- packSampleFormat :: TiffSampleFormat -> Word32
- word16OfTag :: ExifTag -> Word16
- unpackPhotometricInterpretation :: Word32 -> Get TiffColorspace
- packPhotometricInterpretation :: TiffColorspace -> Word16
- codeOfExtraSample :: ExtraSample -> Word16
- unPackCompression :: Word32 -> Get TiffCompression
- packCompression :: TiffCompression -> Word16
- predictorOfConstant :: Word32 -> Get Predictor
Documentation
class BinaryParam a b where Source #
Because having a polymorphic get with endianness is to nice to pass on, introducing this helper type class, which is just a superset of Binary, but formalising a parameter passing into it.
Instances
data Endianness Source #
Instances
data TiffHeader Source #
TiffHeader | |
|
Instances
Eq TiffHeader Source # | |
Defined in Codec.Picture.Tiff.Internal.Types (==) :: TiffHeader -> TiffHeader -> Bool # (/=) :: TiffHeader -> TiffHeader -> Bool # | |
Show TiffHeader Source # | |
Defined in Codec.Picture.Tiff.Internal.Types showsPrec :: Int -> TiffHeader -> ShowS # show :: TiffHeader -> String # showList :: [TiffHeader] -> ShowS # | |
Binary TiffHeader Source # | |
Defined in Codec.Picture.Tiff.Internal.Types | |
BinaryParam ByteString (TiffHeader, [[ImageFileDirectory]]) Source # | |
Defined in Codec.Picture.Tiff.Internal.Types getP :: ByteString -> Get (TiffHeader, [[ImageFileDirectory]]) Source # putP :: ByteString -> (TiffHeader, [[ImageFileDirectory]]) -> Put Source # |
data TiffCompression Source #
TypeByte | |
TypeAscii | |
TypeShort | |
TypeLong | |
TypeRational | |
TypeSByte | |
TypeUndefined | |
TypeSignedShort | |
TypeSignedLong | |
TypeSignedRational | |
TypeFloat | |
TypeDouble |
Instances
data TiffColorspace Source #
data TiffSampleFormat Source #
Instances
Eq TiffSampleFormat Source # | |
Defined in Codec.Picture.Tiff.Internal.Types (==) :: TiffSampleFormat -> TiffSampleFormat -> Bool # (/=) :: TiffSampleFormat -> TiffSampleFormat -> Bool # |
data ImageFileDirectory Source #
ImageFileDirectory | |
|
Instances
data ExtraSample Source #
word16OfTag :: ExifTag -> Word16 Source #
Convert a tag to it's corresponding value.