|
Simple Graphics Library 1.0.0.0
Runtime-independent image processing primitives
|
Common constants and source-level helpers. More...
Macros | |
| #define | SGL_UNUSED_PARAM(p) SGL_UNUSED(p) |
| Explicitly marks an intentionally unused parameter. | |
| #define | SGL_DIV_ROUNDUP(n, d) (((n) + (d) - 1) / (d)) |
Divides positive integer n by positive integer d, rounding upward. | |
| #define | SGL_SAFE_FREE(p) if ((p) != SGL_NULL) { sgl_free((p)); (p) = SGL_NULL; } |
| Releases an SGL allocation and sets the pointer lvalue to SGL_NULL. | |
| #define | SGL_THREADPOOL_DEFAULT_MAX_ROUTINE_LISTS (4U) |
| Default maximum routine-list count accepted by sgl_threadpool_create(). | |
| #define | SGL_GENERIC_BULK_SIZE (4) |
| Default row-group size used by scalar worker routines. | |
| #define | SGL_SIMD_BULK_SIZE (8) |
| Default row-group size used by SIMD worker routines. | |
| #define | SGL_BPP32 (4) |
| Four bytes per pixel. | |
| #define | SGL_BPP24 (3) |
| Three bytes per pixel. | |
| #define | SGL_BPP16 (2) |
| Two bytes per pixel. | |
| #define | SGL_BPP8 (1) |
| One byte per pixel. | |
Common constants and source-level helpers.