GPUImageAverageColor.h 615 B

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