| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.PixelsShims.Safe
Synopsis
- lithon_SDL_DEFINE_PIXELFOURCC :: Uint8 -> Uint8 -> Uint8 -> Uint8 -> IO SDL_PixelFormat
- lithon_SDL_BITSPERPIXEL :: SDL_PixelFormat -> IO CInt
- lithon_SDL_BYTESPERPIXEL :: SDL_PixelFormat -> IO CInt
- lithon_SDL_ISPIXELFORMAT_INDEXED :: SDL_PixelFormat -> IO CBool
- lithon_SDL_ISPIXELFORMAT_PACKED :: SDL_PixelFormat -> IO CBool
- lithon_SDL_ISPIXELFORMAT_ARRAY :: SDL_PixelFormat -> IO CBool
- lithon_SDL_ISPIXELFORMAT_10BIT :: SDL_PixelFormat -> IO CBool
- lithon_SDL_ISPIXELFORMAT_FLOAT :: SDL_PixelFormat -> IO CBool
- lithon_SDL_ISPIXELFORMAT_ALPHA :: SDL_PixelFormat -> IO CBool
- lithon_SDL_ISPIXELFORMAT_FOURCC :: SDL_PixelFormat -> IO CBool
- lithon_SDL_DEFINE_COLORSPACE :: SDL_ColorType -> SDL_ColorRange -> SDL_ColorPrimaries -> SDL_TransferCharacteristics -> SDL_MatrixCoefficients -> SDL_ChromaLocation -> IO SDL_Colorspace
- lithon_SDL_COLORSPACETYPE :: SDL_Colorspace -> IO SDL_ColorType
- lithon_SDL_COLORSPACERANGE :: SDL_Colorspace -> IO SDL_ColorRange
- lithon_SDL_COLORSPACECHROMA :: SDL_Colorspace -> IO SDL_ChromaLocation
- lithon_SDL_COLORSPACEPRIMARIES :: SDL_Colorspace -> IO SDL_ColorPrimaries
- lithon_SDL_COLORSPACETRANSFER :: SDL_Colorspace -> IO SDL_TransferCharacteristics
- lithon_SDL_COLORSPACEMATRIX :: SDL_Colorspace -> IO SDL_MatrixCoefficients
- lithon_SDL_ISCOLORSPACE_MATRIX_BT601 :: SDL_Colorspace -> IO CBool
- lithon_SDL_ISCOLORSPACE_MATRIX_BT709 :: SDL_Colorspace -> IO CBool
- lithon_SDL_ISCOLORSPACE_MATRIX_BT2020_NCL :: SDL_Colorspace -> IO CBool
- lithon_SDL_ISCOLORSPACE_LIMITED_RANGE :: SDL_Colorspace -> IO CBool
- lithon_SDL_ISCOLORSPACE_FULL_RANGE :: SDL_Colorspace -> IO CBool
Documentation
lithon_SDL_DEFINE_PIXELFOURCC Source #
Arguments
| :: Uint8 |
|
| -> Uint8 |
|
| -> Uint8 |
|
| -> Uint8 |
|
| -> IO SDL_PixelFormat |
Define a custom FourCC pixel format.
The SDL_DEFINE_PIXELFOURCC macro as a function. SDL_PIXELFORMAT_YV12, for example, is the code of the characters Y, V, 1, 2.
- Returns
- a format value in the style of SDL_PixelFormat.
- Thread safety
- It is safe to call this function from any thread.
- See also
- SDL_FOURCC
- C declaration
lithon_SDL_DEFINE_PIXELFOURCC, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 42:35
Since: 3.2.0
lithon_SDL_BITSPERPIXEL Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CInt |
Determine an SDL_PixelFormat's bits per pixel.
The SDL_BITSPERPIXEL macro as a function. FourCC formats report zero here, as it rarely makes sense to measure them per-pixel.
- Returns
- the bits-per-pixel of
format. - Thread safety
- It is safe to call this function from any thread.
- See also
- SDL_BYTESPERPIXEL
- C declaration
lithon_SDL_BITSPERPIXEL, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 62:23
Since: 3.2.0
lithon_SDL_BYTESPERPIXEL Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CInt |
Determine an SDL_PixelFormat's bytes per pixel.
The SDL_BYTESPERPIXEL macro as a function. FourCC formats do their best here, but many of them don't have a meaningful measurement of bytes per pixel.
- Returns
- the bytes-per-pixel of
format. - Thread safety
- It is safe to call this function from any thread.
- See also
- SDL_BITSPERPIXEL
- C declaration
lithon_SDL_BYTESPERPIXEL, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 83:23
Since: 3.2.0
lithon_SDL_ISPIXELFORMAT_INDEXED Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CBool |
Determine if an SDL_PixelFormat is an indexed format.
The SDL_ISPIXELFORMAT_INDEXED macro as a function.
- Returns
- true if the format is indexed, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISPIXELFORMAT_INDEXED, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 100:24
Since: 3.2.0
lithon_SDL_ISPIXELFORMAT_PACKED Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CBool |
Determine if an SDL_PixelFormat is a packed format.
The SDL_ISPIXELFORMAT_PACKED macro as a function.
- Returns
- true if the format is packed, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISPIXELFORMAT_PACKED, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 117:24
Since: 3.2.0
lithon_SDL_ISPIXELFORMAT_ARRAY Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CBool |
Determine if an SDL_PixelFormat is an array format.
The SDL_ISPIXELFORMAT_ARRAY macro as a function.
- Returns
- true if the format is an array, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISPIXELFORMAT_ARRAY, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 134:24
Since: 3.2.0
lithon_SDL_ISPIXELFORMAT_10BIT Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CBool |
Determine if an SDL_PixelFormat is a 10-bit format.
The SDL_ISPIXELFORMAT_10BIT macro as a function.
- Returns
- true if the format is 10-bit, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISPIXELFORMAT_10BIT, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 151:24
Since: 3.2.0
lithon_SDL_ISPIXELFORMAT_FLOAT Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CBool |
Determine if an SDL_PixelFormat is a floating point format.
The SDL_ISPIXELFORMAT_FLOAT macro as a function.
- Returns
- true if the format is a floating point, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISPIXELFORMAT_FLOAT, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 168:24
Since: 3.2.0
lithon_SDL_ISPIXELFORMAT_ALPHA Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CBool |
Determine if an SDL_PixelFormat has an alpha channel.
The SDL_ISPIXELFORMAT_ALPHA macro as a function.
- Returns
- true if the format has alpha, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISPIXELFORMAT_ALPHA, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 185:24
Since: 3.2.0
lithon_SDL_ISPIXELFORMAT_FOURCC Source #
Arguments
| :: SDL_PixelFormat |
|
| -> IO CBool |
Determine if an SDL_PixelFormat is a "FourCC" format.
The SDL_ISPIXELFORMAT_FOURCC macro as a function. This covers custom and other unusual formats.
- Returns
- true if the format is a FourCC format, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISPIXELFORMAT_FOURCC, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 202:24
Since: 3.2.0
lithon_SDL_DEFINE_COLORSPACE Source #
Arguments
| :: SDL_ColorType |
|
| -> SDL_ColorRange |
|
| -> SDL_ColorPrimaries |
|
| -> SDL_TransferCharacteristics |
|
| -> SDL_MatrixCoefficients |
|
| -> SDL_ChromaLocation |
|
| -> IO SDL_Colorspace |
Define a custom colorspace.
The SDL_DEFINE_COLORSPACE macro as a function.
- Returns
- a format value in the style of SDL_Colorspace.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_DEFINE_COLORSPACE, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 224:34
Since: 3.2.0
lithon_SDL_COLORSPACETYPE Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO SDL_ColorType |
Retrieve the type of an SDL_Colorspace.
The SDL_COLORSPACETYPE macro as a function.
- Returns
- the SDL_ColorType of
cspace. - Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_COLORSPACETYPE, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 241:33
Since: 3.2.0
lithon_SDL_COLORSPACERANGE Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO SDL_ColorRange |
Retrieve the range of an SDL_Colorspace.
The SDL_COLORSPACERANGE macro as a function.
- Returns
- the SDL_ColorRange of
cspace. - Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_COLORSPACERANGE, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 258:34
Since: 3.2.0
lithon_SDL_COLORSPACECHROMA Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO SDL_ChromaLocation |
Retrieve the chroma sample location of an SDL_Colorspace.
The SDL_COLORSPACECHROMA macro as a function.
- Returns
- the SDL_ChromaLocation of
cspace. - Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_COLORSPACECHROMA, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 275:38
Since: 3.2.0
lithon_SDL_COLORSPACEPRIMARIES Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO SDL_ColorPrimaries |
Retrieve the primaries of an SDL_Colorspace.
The SDL_COLORSPACEPRIMARIES macro as a function.
- Returns
- the SDL_ColorPrimaries of
cspace. - Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_COLORSPACEPRIMARIES, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 292:38
Since: 3.2.0
lithon_SDL_COLORSPACETRANSFER Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO SDL_TransferCharacteristics |
Retrieve the transfer characteristics of an SDL_Colorspace.
The SDL_COLORSPACETRANSFER macro as a function.
- Returns
- the SDL_TransferCharacteristics of
cspace. - Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_COLORSPACETRANSFER, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 309:47
Since: 3.2.0
lithon_SDL_COLORSPACEMATRIX Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO SDL_MatrixCoefficients |
Retrieve the matrix coefficients of an SDL_Colorspace.
The SDL_COLORSPACEMATRIX macro as a function.
- Returns
- the SDL_MatrixCoefficients of
cspace. - Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_COLORSPACEMATRIX, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 326:42
Since: 3.2.0
lithon_SDL_ISCOLORSPACE_MATRIX_BT601 Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO CBool |
Determine if an SDL_Colorspace uses BT601 (or BT470BG) matrix coefficients.
The SDL_ISCOLORSPACE_MATRIX_BT601 macro as a function.
- Returns
- true if BT601 or BT470BG, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISCOLORSPACE_MATRIX_BT601, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 343:24
Since: 3.2.0
lithon_SDL_ISCOLORSPACE_MATRIX_BT709 Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO CBool |
Determine if an SDL_Colorspace uses BT709 matrix coefficients.
The SDL_ISCOLORSPACE_MATRIX_BT709 macro as a function.
- Returns
- true if BT709, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISCOLORSPACE_MATRIX_BT709, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 360:24
Since: 3.2.0
lithon_SDL_ISCOLORSPACE_MATRIX_BT2020_NCL Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO CBool |
Determine if an SDL_Colorspace uses BT2020_NCL matrix coefficients.
The SDL_ISCOLORSPACE_MATRIX_BT2020_NCL macro as a function.
- Returns
- true if BT2020_NCL, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISCOLORSPACE_MATRIX_BT2020_NCL, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 377:24
Since: 3.2.0
lithon_SDL_ISCOLORSPACE_LIMITED_RANGE Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO CBool |
Determine if an SDL_Colorspace has a limited range.
The SDL_ISCOLORSPACE_LIMITED_RANGE macro as a function.
- Returns
- true if limited range, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISCOLORSPACE_LIMITED_RANGE, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 394:24
Since: 3.2.0
lithon_SDL_ISCOLORSPACE_FULL_RANGE Source #
Arguments
| :: SDL_Colorspace |
|
| -> IO CBool |
Determine if an SDL_Colorspace has a full range.
The SDL_ISCOLORSPACE_FULL_RANGE macro as a function.
- Returns
- true if full range, false otherwise.
- Thread safety
- It is safe to call this function from any thread.
- C declaration
lithon_SDL_ISCOLORSPACE_FULL_RANGE, defined atsdl3-bindgen-sys/SDL_pixels_shims.h 411:24
Since: 3.2.0