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