| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Picture.Jpg.Internal.Types
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 {
- componentIdentifier :: !Word8
- horizontalSamplingFactor :: !Word8
- verticalSamplingFactor :: !Word8
- quantizationTableDest :: !Word8
- data JpgFrameHeader = JpgFrameHeader {
- jpgFrameHeaderLength :: !Word16
- jpgSamplePrecision :: !Word8
- jpgHeight :: !Word16
- jpgWidth :: !Word16
- jpgImageComponentCount :: !Word8
- jpgComponents :: ![JpgComponent]
- 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 {
- scanLength :: !Word16
- scanComponentCount :: !Word8
- scans :: [JpgScanSpecification]
- spectralSelection :: (Word8, Word8)
- successiveApproxHigh :: !Word8
- successiveApproxLow :: !Word8
- data JpgQuantTableSpec = JpgQuantTableSpec {
- quantPrecision :: !Word8
- quantDestination :: !Word8
- quantTable :: MacroBlock Int16
- data JpgHuffmanTableSpec = JpgHuffmanTableSpec {
- huffmanTableClass :: !DctComponent
- huffmanTableDest :: !Word8
- huffSizes :: !(Vector Word8)
- huffCodes :: !(Vector (Vector Word8))
- data JpgImageKind
- data JpgScanSpecification = JpgScanSpecification {
- componentSelector :: !Word8
- dcEntropyCodingTable :: !Word8
- acEntropyCodingTable :: !Word8
- data JpgColorSpace
- data AdobeTransform
- data JpgAdobeApp14 = JpgAdobeApp14 {
- _adobeDctVersion :: !Word16
- _adobeFlag0 :: !Word16
- _adobeFlag1 :: !Word16
- _adobeTransform :: !AdobeTransform
- data JpgJFIFApp0 = JpgJFIFApp0 {
- _jfifUnit :: !JFifUnit
- _jfifDpiX :: !Word16
- _jfifDpiY :: !Word16
- _jfifThumbnail :: !(Maybe Int)
- data JFifUnit
- calculateSize :: SizeCalculable a => a -> Int
- dctBlockSize :: Num a => a
Documentation
type MutableMacroBlock s a = STVector s a #
Macroblock that can be transformed.
createEmptyMutableMacroBlock :: (Storable a, Num a) => ST s (MutableMacroBlock s a) #
Create a new macroblock with the good array size
printMacroBlock :: (Storable a, PrintfArg a) => MutableMacroBlock s a -> ST s String #
printPureMacroBlock :: (Storable a, PrintfArg a) => MacroBlock a -> String #
type DcCoefficient = Int16 #
Type only used to make clear what kind of integer we are carrying Might be transformed into newtype in the future
data JpgComponent #
Constructors
| JpgComponent | |
Fields
| |
Instances
| Show JpgComponent # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgComponent -> ShowS show :: JpgComponent -> String showList :: [JpgComponent] -> ShowS | |
| Binary JpgComponent # | |
Defined in Codec.Picture.Jpg.Internal.Types | |
data JpgFrameHeader #
Constructors
| JpgFrameHeader | |
Fields
| |
Instances
| Show JpgFrameHeader # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgFrameHeader -> ShowS show :: JpgFrameHeader -> String showList :: [JpgFrameHeader] -> ShowS | |
| Binary JpgFrameHeader # | |
Defined in Codec.Picture.Jpg.Internal.Types | |
Constructors
| 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 #
Constructors
Instances
| Eq JpgFrameKind # | |
Defined in Codec.Picture.Jpg.Internal.Types | |
| Show JpgFrameKind # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgFrameKind -> ShowS show :: JpgFrameKind -> String showList :: [JpgFrameKind] -> ShowS | |
| Binary JpgFrameKind # | |
Defined in Codec.Picture.Jpg.Internal.Types | |
data JpgScanHeader #
Constructors
| JpgScanHeader | |
Fields
| |
Instances
| Show JpgScanHeader # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgScanHeader -> ShowS show :: JpgScanHeader -> String showList :: [JpgScanHeader] -> ShowS | |
| Binary JpgScanHeader # | |
Defined in Codec.Picture.Jpg.Internal.Types | |
data JpgQuantTableSpec #
Constructors
| JpgQuantTableSpec | |
Fields
| |
Instances
| Show JpgQuantTableSpec # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgQuantTableSpec -> ShowS show :: JpgQuantTableSpec -> String showList :: [JpgQuantTableSpec] -> ShowS | |
| Binary JpgQuantTableSpec # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods put :: JpgQuantTableSpec -> Put get :: Get JpgQuantTableSpec putList :: [JpgQuantTableSpec] -> Put | |
data JpgHuffmanTableSpec #
Constructors
| JpgHuffmanTableSpec | |
Fields
| |
Instances
| Show JpgHuffmanTableSpec # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgHuffmanTableSpec -> ShowS show :: JpgHuffmanTableSpec -> String showList :: [JpgHuffmanTableSpec] -> ShowS | |
| Binary JpgHuffmanTableSpec # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods put :: JpgHuffmanTableSpec -> Put get :: Get JpgHuffmanTableSpec putList :: [JpgHuffmanTableSpec] -> Put | |
data JpgImageKind #
Constructors
| BaseLineDCT | |
| ProgressiveDCT |
data JpgScanSpecification #
Constructors
| JpgScanSpecification | |
Fields
| |
Instances
| Show JpgScanSpecification # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgScanSpecification -> ShowS show :: JpgScanSpecification -> String showList :: [JpgScanSpecification] -> ShowS | |
| Binary JpgScanSpecification # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods put :: JpgScanSpecification -> Put get :: Get JpgScanSpecification putList :: [JpgScanSpecification] -> Put | |
data JpgColorSpace #
Constructors
| JpgColorSpaceYCbCr | |
| JpgColorSpaceYCC | |
| JpgColorSpaceY | |
| JpgColorSpaceYA | |
| JpgColorSpaceYCCA | |
| JpgColorSpaceYCCK | |
| JpgColorSpaceCMYK | |
| JpgColorSpaceRGB | |
| JpgColorSpaceRGBA |
Instances
| Show JpgColorSpace # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgColorSpace -> ShowS show :: JpgColorSpace -> String showList :: [JpgColorSpace] -> ShowS | |
data AdobeTransform #
Constructors
| AdobeUnknown | Value 0 |
| AdobeYCbCr | value 1 |
| AdobeYCck | value 2 |
Instances
| Show AdobeTransform # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> AdobeTransform -> ShowS show :: AdobeTransform -> String showList :: [AdobeTransform] -> ShowS | |
| Binary AdobeTransform # | |
Defined in Codec.Picture.Jpg.Internal.Types | |
data JpgAdobeApp14 #
Constructors
| JpgAdobeApp14 | |
Fields
| |
Instances
| Show JpgAdobeApp14 # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgAdobeApp14 -> ShowS show :: JpgAdobeApp14 -> String showList :: [JpgAdobeApp14] -> ShowS | |
| Binary JpgAdobeApp14 # | |
Defined in Codec.Picture.Jpg.Internal.Types | |
data JpgJFIFApp0 #
Constructors
| JpgJFIFApp0 | |
Fields
| |
Instances
| Show JpgJFIFApp0 # | |
Defined in Codec.Picture.Jpg.Internal.Types Methods showsPrec :: Int -> JpgJFIFApp0 -> ShowS show :: JpgJFIFApp0 -> String showList :: [JpgJFIFApp0] -> ShowS | |
| Binary JpgJFIFApp0 # | |
Defined in Codec.Picture.Jpg.Internal.Types | |
Size: 1
Constructors
| JFifUnitUnknown | 0 |
| JFifPixelsPerInch | 1 |
| JFifPixelsPerCentimeter | 2 |
calculateSize :: SizeCalculable a => a -> Int #
dctBlockSize :: Num a => a #