GPUImageLuminosity.h 641 B

1234567891011121314151617
  1. #import "GPUImageAverageColor.h"
  2. @interface GPUImageLuminosity : GPUImageAverageColor
  3. {
  4. GLProgram *secondFilterProgram;
  5. GLint secondFilterPositionAttribute, secondFilterTextureCoordinateAttribute;
  6. GLint secondFilterInputTextureUniform, secondFilterInputTextureUniform2;
  7. GLint secondFilterTexelWidthUniform, secondFilterTexelHeightUniform;
  8. }
  9. // This block is called on the completion of color averaging for a frame
  10. @property(nonatomic, copy) void(^luminosityProcessingFinishedBlock)(CGFloat luminosity, CMTime frameTime);
  11. - (void)extractLuminosityAtFrameTime:(CMTime)frameTime;
  12. - (void)initializeSecondaryAttributes;
  13. @end