Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data PixdataDumpType
- data PixdataType
Flags
PixdataDumpType
data PixdataDumpType Source #
An enumeration which is used by pixdataToCsource
to
determine the form of C source to be generated. The three values
gDKPIXDATADUMPPIXDATASTREAM
, gDKPIXDATADUMPPIXDATASTRUCT
and gDKPIXDATADUMPMACROS
are mutually exclusive, as are
gDKPIXBUFDUMPGTYPES
and gDKPIXBUFDUMPCTYPES
. The remaining
elements are optional flags that can be freely added.
PixdataDumpTypePixdataStream | Generate pixbuf data stream (a single
string containing a serialized |
PixdataDumpTypePixdataStruct | Generate |
PixdataDumpTypeMacros | Generate <function>*_ROWSTRIDE</function>, <function>*_WIDTH</function>, <function>*_HEIGHT</function>, <function>*_BYTES_PER_PIXEL</function> and <function>*_RLE_PIXEL_DATA</function> or <function>*_PIXEL_DATA</function> macro definitions for the image. |
PixdataDumpTypeGtypes | Generate GLib data types instead of standard C data types. |
PixdataDumpTypeCtypes | Generate standard C data types instead of GLib data types. |
PixdataDumpTypeStatic | Generate static symbols. |
PixdataDumpTypeConst | Generate const symbols. |
PixdataDumpTypeRleDecoder | Provide a <function>*_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)</function> macro definition to decode run-length encoded image data. |
AnotherPixdataDumpType Int | Catch-all for unknown values |
Instances
PixdataType
data PixdataType Source #
An enumeration containing three sets of flags for a Pixdata
struct:
one for the used colorspace, one for the width of the samples and one
for the encoding of the pixel data.
PixdataTypeColorTypeRgb | each pixel has red, green and blue samples. |
PixdataTypeColorTypeRgba | each pixel has red, green and blue samples and an alpha value. |
PixdataTypeColorTypeMask | mask for the colortype flags of the enum. |
PixdataTypeSampleWidth8 | each sample has 8 bits. |
PixdataTypeSampleWidthMask | mask for the sample width flags of the enum. |
PixdataTypeEncodingRaw | the pixel data is in raw form. |
PixdataTypeEncodingRle | the pixel data is run-length encoded. Runs may be up to 127 bytes long; their length is stored in a single byte preceding the pixel data for the run. If a run is constant, its length byte has the high bit set and the pixel data consists of a single pixel which must be repeated. |
PixdataTypeEncodingMask | mask for the encoding flags of the enum. |
AnotherPixdataType Int | Catch-all for unknown values |