Advanced routines for working with images.
◆ oslImageIsCopy
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.
◆ oslImageIsSwizzled
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.
◆ oslImageGetAutoStrip
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.
◆ oslImageIsCopySet()
| static void oslImageIsCopySet |
( |
OSL_IMAGE * |
img, |
|
|
bool |
enabled |
|
) |
| |
|
inlinestatic |
Sets or clears the copy flag for an image. This function is for internal use only and controls whether the image is marked as a copy of another image.
- Parameters
-
| img | Pointer to the OSL_IMAGE structure whose copy flag is to be set or cleared. |
| enabled | true to set the image as a copy, false to clear the copy flag. |
◆ oslImageIsSwizzledSet()
| static void oslImageIsSwizzledSet |
( |
OSL_IMAGE * |
img, |
|
|
bool |
enabled |
|
) |
| |
|
inlinestatic |
Sets or clears the swizzled flag for an image. This function is for internal use only and determines whether the image is marked as swizzled.
- Parameters
-
| img | Pointer to the OSL_IMAGE structure whose swizzled flag is to be set or cleared. |
| enabled | true to set the image as swizzled, false to clear the swizzled flag. |
◆ oslImageSetAutoStrip()
| static void oslImageSetAutoStrip |
( |
OSL_IMAGE * |
img, |
|
|
bool |
enabled |
|
) |
| |
|
inlinestatic |
Sets or clears the automatic striping flag for an image. This function is for internal use only and manages whether the image should be automatically divided into stripes for faster blitting.
- Parameters
-
| img | Pointer to the OSL_IMAGE structure whose automatic striping flag is to be set or cleared. |
| enabled | true to enable automatic striping, false to disable it. |