1234567891011121314151617181920 |
- #import "GPUImageFilter.h"
- extern NSString *const kGPUImageColorAveragingVertexShaderString;
- @interface GPUImageAverageColor : GPUImageFilter
- {
- GLint texelWidthUniform, texelHeightUniform;
-
- NSUInteger numberOfStages;
-
- GLubyte *rawImagePixels;
- CGSize finalStageSize;
- }
- // This block is called on the completion of color averaging for a frame
- @property(nonatomic, copy) void(^colorAverageProcessingFinishedBlock)(CGFloat redComponent, CGFloat greenComponent, CGFloat blueComponent, CGFloat alphaComponent, CMTime frameTime);
- - (void)extractAverageColorAtFrameTime:(CMTime)frameTime;
- @end
|