OldSchool Library
Advanced

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)
 

Detailed Description

Advanced routines for working with images.

Macro Definition Documentation

◆ oslImageIsCopy

#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.

◆ oslImageIsSwizzled

#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.

◆ oslImageGetAutoStrip

#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.