Safe Haskell | None |
---|---|
Language | Haskell2010 |
Codec.Picture.Tiff.Internal.Types
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 #
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 #
Constructors
EndianLittle | |
EndianBig |
Instances
data TiffHeader #
Constructors
TiffHeader | |
Fields
|
Instances
Binary TiffHeader # | |
Defined in Codec.Picture.Tiff.Internal.Types | |
Show TiffHeader # | |
Defined in Codec.Picture.Tiff.Internal.Types Methods showsPrec :: Int -> TiffHeader -> ShowS # show :: TiffHeader -> String # showList :: [TiffHeader] -> ShowS # | |
Eq TiffHeader # | |
Defined in Codec.Picture.Tiff.Internal.Types | |
BinaryParam ByteString (TiffHeader, [[ImageFileDirectory]]) # | |
Defined in Codec.Picture.Tiff.Internal.Types Methods getP :: ByteString -> Get (TiffHeader, [[ImageFileDirectory]]) # putP :: ByteString -> (TiffHeader, [[ImageFileDirectory]]) -> Put # |
data TiffPlanarConfiguration #
Constructors
PlanarConfigContig | |
PlanarConfigSeparate |
data TiffCompression #
Constructors
TypeByte | |
TypeAscii | |
TypeShort | |
TypeLong | |
TypeRational | |
TypeSByte | |
TypeUndefined | |
TypeSignedShort | |
TypeSignedLong | |
TypeSignedRational | |
TypeFloat | |
TypeDouble |
Instances
NFData IfdType # | |||||
Defined in Codec.Picture.Tiff.Internal.Types | |||||
Generic IfdType # | |||||
Defined in Codec.Picture.Tiff.Internal.Types Associated Types
| |||||
Show IfdType # | |||||
Eq IfdType # | |||||
BinaryParam Endianness IfdType # | |||||
Defined in Codec.Picture.Tiff.Internal.Types | |||||
type Rep IfdType # | |||||
Defined in Codec.Picture.Tiff.Internal.Types type Rep IfdType = D1 ('MetaData "IfdType" "Codec.Picture.Tiff.Internal.Types" "JuicyPixels-3.3.9-D4GSBtW9OfK2GKVIljLKj0" 'False) (((C1 ('MetaCons "TypeByte" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TypeAscii" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TypeShort" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "TypeLong" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TypeRational" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TypeSByte" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "TypeUndefined" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TypeSignedShort" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TypeSignedLong" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "TypeSignedRational" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TypeFloat" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TypeDouble" 'PrefixI 'False) (U1 :: Type -> Type))))) |
data TiffColorspace #
data TiffSampleFormat #
Constructors
TiffSampleUint | |
TiffSampleInt | |
TiffSampleFloat | |
TiffSampleUnknown |
Instances
Eq TiffSampleFormat # | |
Defined in Codec.Picture.Tiff.Internal.Types Methods (==) :: TiffSampleFormat -> TiffSampleFormat -> Bool # (/=) :: TiffSampleFormat -> TiffSampleFormat -> Bool # |
data ImageFileDirectory #
Constructors
ImageFileDirectory | |
Fields
|
Instances
data ExtraSample #
Constructors
PredictorNone | |
PredictorHorizontalDifferencing |
word16OfTag :: ExifTag -> Word16 #
Convert a tag to it's corresponding value.
codeOfExtraSample :: ExtraSample -> Word16 #
predictorOfConstant :: Word32 -> Get Predictor #