|
OldSchool Library
|
Macros | |
| #define | oslImageIsCopy(img) (img->flags & OSL_IMAGE_COPY) |
| #define | oslImageIsSwizzled(img) (img->flags & OSL_IMAGE_SWIZZLED) |
| #define | oslImageGetAutoStrip(img) (img->flags & OSL_IMAGE_AUTOSTRIP) |
Advanced routines for working with images.
| #define oslImageIsCopy | ( | img | ) | (img->flags & OSL_IMAGE_COPY) |
Returns a nonzero value if the image is a copy of another image, or 0 if it is an original. A copy is an image that was created as a clone of another image, rather than being directly created.
| #define oslImageIsSwizzled | ( | img | ) | (img->flags & OSL_IMAGE_SWIZZLED) |
Returns a nonzero value if the image is swizzled, or 0 if it is not. Swizzling refers to a method of reorganizing image data to improve memory access patterns or GPU performance.
| #define oslImageGetAutoStrip | ( | img | ) | (img->flags & OSL_IMAGE_AUTOSTRIP) |
Returns a nonzero value if automatic striping is enabled for the image, or 0 if it is not. Automatic striping can be used to optimize the handling of large images by breaking them into smaller, more manageable strips.