Skip to content

Commit

Permalink
Merge pull request #1412 from heisters/master
Browse files Browse the repository at this point in the history
Expose accessors for GPUImageiOSBlurFilter rangeReductionFactor
  • Loading branch information
BradLarson committed Mar 18, 2014
2 parents 704f434 + a6d99a8 commit a2ed89f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framework/Source/GPUImageiOSBlurFilter.h
Expand Up @@ -23,4 +23,9 @@
*/
@property (readwrite, nonatomic) CGFloat downsampling;


/** The degree to reduce the luminance range, from 0.0 to 1.0. Default is 0.6.
*/
@property (readwrite, nonatomic) CGFloat rangeReductionFactor;

@end
11 changes: 11 additions & 0 deletions framework/Source/GPUImageiOSBlurFilter.m
Expand Up @@ -40,6 +40,7 @@ - (id)init;
self.blurRadiusInPixels = 12.0;
self.saturation = 0.8;
self.downsampling = 4.0;
self.rangeReductionFactor = 0.6;

return self;
}
Expand Down Expand Up @@ -100,4 +101,14 @@ - (void)setDownsampling:(CGFloat)newValue;
_downsampling = newValue;
}

- (void)setRangeReductionFactor:(CGFloat)rangeReductionFactor
{
luminanceRangeFilter.rangeReductionFactor = rangeReductionFactor;
}

- (CGFloat)rangeReductionFactor
{
return luminanceRangeFilter.rangeReductionFactor;
}

@end

0 comments on commit a2ed89f

Please sign in to comment.