developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#import "GPUImageFilter.h"
 
/** This reduces the color dynamic range into the number of steps specified, leading to a cartoon-like simple shading of the image.
 */
@interface GPUImagePosterizeFilter : GPUImageFilter
{
    GLint colorLevelsUniform;
}
 
/** The number of color levels to reduce the image space to. This ranges from 1 to 256, with a default of 10.
 */
@property(readwrite, nonatomic) NSUInteger colorLevels; 
 
@end