Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type MutableMacroBlock s a = STVector s a
- createEmptyMutableMacroBlock :: (Storable a, Num a) => ST s (MutableMacroBlock s a)
- printMacroBlock :: (Storable a, PrintfArg a) => MutableMacroBlock s a -> ST s String
- printPureMacroBlock :: (Storable a, PrintfArg a) => MacroBlock a -> String
- type DcCoefficient = Int16
- data JpgImage = JpgImage {}
- data JpgComponent = JpgComponent {}
- data JpgFrameHeader = JpgFrameHeader {}
- data JpgFrame
- = JpgAppFrame !Word8 ByteString
- | JpgAdobeAPP14 !JpgAdobeApp14
- | JpgJFIF !JpgJFIFApp0
- | JpgExif ![ImageFileDirectory]
- | JpgExtension !Word8 ByteString
- | JpgQuantTable ![JpgQuantTableSpec]
- | JpgHuffmanTable ![(JpgHuffmanTableSpec, HuffmanPackedTree)]
- | JpgScanBlob !JpgScanHeader !ByteString
- | JpgScans !JpgFrameKind !JpgFrameHeader
- | JpgIntervalRestart !Word16
- data JpgFrameKind
- = JpgBaselineDCTHuffman
- | JpgExtendedSequentialDCTHuffman
- | JpgProgressiveDCTHuffman
- | JpgLosslessHuffman
- | JpgDifferentialSequentialDCTHuffman
- | JpgDifferentialProgressiveDCTHuffman
- | JpgDifferentialLosslessHuffman
- | JpgExtendedSequentialArithmetic
- | JpgProgressiveDCTArithmetic
- | JpgLosslessArithmetic
- | JpgDifferentialSequentialDCTArithmetic
- | JpgDifferentialProgressiveDCTArithmetic
- | JpgDifferentialLosslessArithmetic
- | JpgQuantizationTable
- | JpgHuffmanTableMarker
- | JpgStartOfScan
- | JpgEndOfImage
- | JpgAppSegment Word8
- | JpgExtensionSegment Word8
- | JpgRestartInterval
- | JpgRestartIntervalEnd Word8
- data JpgScanHeader = JpgScanHeader {}
- data JpgQuantTableSpec = JpgQuantTableSpec {}
- data JpgHuffmanTableSpec = JpgHuffmanTableSpec {
- huffmanTableClass :: !DctComponent
- huffmanTableDest :: !Word8
- huffSizes :: !(Vector Word8)
- huffCodes :: !(Vector (Vector Word8))
- data JpgImageKind
- data JpgScanSpecification = JpgScanSpecification {}
- data JpgColorSpace
- data AdobeTransform
- data JpgAdobeApp14 = JpgAdobeApp14 {}
- data JpgJFIFApp0 = JpgJFIFApp0 {}
- data JFifUnit
- calculateSize :: SizeCalculable a => a -> Int
- dctBlockSize :: Num a => a
Documentation
type MutableMacroBlock s a = STVector s a Source #
Macroblock that can be transformed.
createEmptyMutableMacroBlock :: (Storable a, Num a) => ST s (MutableMacroBlock s a) Source #
Create a new macroblock with the good array size
printMacroBlock :: (Storable a, PrintfArg a) => MutableMacroBlock s a -> ST s String Source #
printPureMacroBlock :: (Storable a, PrintfArg a) => MacroBlock a -> String Source #
type DcCoefficient = Int16 Source #
Type only used to make clear what kind of integer we are carrying Might be transformed into newtype in the future
data JpgComponent Source #
JpgComponent | |
|
Instances
Show JpgComponent Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgComponent -> ShowS # show :: JpgComponent -> String # showList :: [JpgComponent] -> ShowS # | |
Binary JpgComponent Source # | |
Defined in Codec.Picture.Jpg.Internal.Types |
data JpgFrameHeader Source #
JpgFrameHeader | |
|
Instances
Show JpgFrameHeader Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgFrameHeader -> ShowS # show :: JpgFrameHeader -> String # showList :: [JpgFrameHeader] -> ShowS # | |
Binary JpgFrameHeader Source # | |
Defined in Codec.Picture.Jpg.Internal.Types |
data JpgFrameKind Source #
Instances
Eq JpgFrameKind Source # | |
Defined in Codec.Picture.Jpg.Internal.Types (==) :: JpgFrameKind -> JpgFrameKind -> Bool # (/=) :: JpgFrameKind -> JpgFrameKind -> Bool # | |
Show JpgFrameKind Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgFrameKind -> ShowS # show :: JpgFrameKind -> String # showList :: [JpgFrameKind] -> ShowS # | |
Binary JpgFrameKind Source # | |
Defined in Codec.Picture.Jpg.Internal.Types |
data JpgScanHeader Source #
JpgScanHeader | |
|
Instances
Show JpgScanHeader Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgScanHeader -> ShowS # show :: JpgScanHeader -> String # showList :: [JpgScanHeader] -> ShowS # | |
Binary JpgScanHeader Source # | |
Defined in Codec.Picture.Jpg.Internal.Types |
data JpgQuantTableSpec Source #
JpgQuantTableSpec | |
|
Instances
Show JpgQuantTableSpec Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgQuantTableSpec -> ShowS # show :: JpgQuantTableSpec -> String # showList :: [JpgQuantTableSpec] -> ShowS # | |
Binary JpgQuantTableSpec Source # | |
Defined in Codec.Picture.Jpg.Internal.Types put :: JpgQuantTableSpec -> Put # get :: Get JpgQuantTableSpec # putList :: [JpgQuantTableSpec] -> Put # |
data JpgHuffmanTableSpec Source #
JpgHuffmanTableSpec | |
|
Instances
Show JpgHuffmanTableSpec Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgHuffmanTableSpec -> ShowS # show :: JpgHuffmanTableSpec -> String # showList :: [JpgHuffmanTableSpec] -> ShowS # | |
Binary JpgHuffmanTableSpec Source # | |
Defined in Codec.Picture.Jpg.Internal.Types put :: JpgHuffmanTableSpec -> Put # get :: Get JpgHuffmanTableSpec # putList :: [JpgHuffmanTableSpec] -> Put # |
data JpgScanSpecification Source #
JpgScanSpecification | |
|
Instances
Show JpgScanSpecification Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgScanSpecification -> ShowS # show :: JpgScanSpecification -> String # showList :: [JpgScanSpecification] -> ShowS # | |
Binary JpgScanSpecification Source # | |
Defined in Codec.Picture.Jpg.Internal.Types put :: JpgScanSpecification -> Put # get :: Get JpgScanSpecification # putList :: [JpgScanSpecification] -> Put # |
data JpgColorSpace Source #
JpgColorSpaceYCbCr | |
JpgColorSpaceYCC | |
JpgColorSpaceY | |
JpgColorSpaceYA | |
JpgColorSpaceYCCA | |
JpgColorSpaceYCCK | |
JpgColorSpaceCMYK | |
JpgColorSpaceRGB | |
JpgColorSpaceRGBA |
Instances
Show JpgColorSpace Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgColorSpace -> ShowS # show :: JpgColorSpace -> String # showList :: [JpgColorSpace] -> ShowS # |
data AdobeTransform Source #
AdobeUnknown | Value 0 |
AdobeYCbCr | value 1 |
AdobeYCck | value 2 |
Instances
Show AdobeTransform Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> AdobeTransform -> ShowS # show :: AdobeTransform -> String # showList :: [AdobeTransform] -> ShowS # | |
Binary AdobeTransform Source # | |
Defined in Codec.Picture.Jpg.Internal.Types |
data JpgAdobeApp14 Source #
JpgAdobeApp14 | |
|
Instances
Show JpgAdobeApp14 Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgAdobeApp14 -> ShowS # show :: JpgAdobeApp14 -> String # showList :: [JpgAdobeApp14] -> ShowS # | |
Binary JpgAdobeApp14 Source # | |
Defined in Codec.Picture.Jpg.Internal.Types |
data JpgJFIFApp0 Source #
Instances
Show JpgJFIFApp0 Source # | |
Defined in Codec.Picture.Jpg.Internal.Types showsPrec :: Int -> JpgJFIFApp0 -> ShowS # show :: JpgJFIFApp0 -> String # showList :: [JpgJFIFApp0] -> ShowS # | |
Binary JpgJFIFApp0 Source # | |
Defined in Codec.Picture.Jpg.Internal.Types |
calculateSize :: SizeCalculable a => a -> Int Source #
dctBlockSize :: Num a => a Source #