OldSchool Library
Advanced

Macros

#define oslImageIsCopy(img)
 
#define oslImageIsSwizzled(img)
 
#define oslImageGetAutoStrip(img)
 

Detailed Description

Advanced routines for working with images.

Macro Definition Documentation

◆ oslImageIsCopy

#define oslImageIsCopy ( img)
Value:
(img->flags & OSL_IMAGE_COPY)
@ OSL_IMAGE_COPY
Image is a copy.
Definition drawing.h:866

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)
Value:
(img->flags & OSL_IMAGE_SWIZZLED)
@ OSL_IMAGE_SWIZZLED
Image is swizzled.
Definition drawing.h:865

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)
Value:
(img->flags & OSL_IMAGE_AUTOSTRIP)
@ OSL_IMAGE_AUTOSTRIP
Image can be automatically stripped (let it one)
Definition drawing.h:867

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.