Skip to content

Commit

Permalink
Added normal blend to the FilterShowcase, although it doesn't really …
Browse files Browse the repository at this point in the history
…show much with an opaque input image.
  • Loading branch information
BradLarson committed Sep 6, 2012
1 parent cccff72 commit cdddaea
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
case GPUIMAGE_SUBTRACTBLEND: cell.textLabel.text = @"Subtract blend"; break;
case GPUIMAGE_HARDLIGHTBLEND: cell.textLabel.text = @"Hard light blend"; break;
case GPUIMAGE_SOFTLIGHTBLEND: cell.textLabel.text = @"Soft light blend"; break;
case GPUIMAGE_NORMALBLEND: cell.textLabel.text = @"Normal blend"; break;
case GPUIMAGE_OPACITY: cell.textLabel.text = @"Opacity adjustment"; break;
case GPUIMAGE_KUWAHARA: cell.textLabel.text = @"Kuwahara"; break;
case GPUIMAGE_VIGNETTE: cell.textLabel.text = @"Vignette"; break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ typedef enum {
GPUIMAGE_EXCLUSIONBLEND,
GPUIMAGE_HARDLIGHTBLEND,
GPUIMAGE_SOFTLIGHTBLEND,
GPUIMAGE_NORMALBLEND,
GPUIMAGE_OPACITY,
GPUIMAGE_CUSTOM,
GPUIMAGE_UIELEMENT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,15 @@ - (void)setupFilter;

filter = [[GPUImageSoftLightBlendFilter alloc] init];
}; break;
case GPUIMAGE_NORMALBLEND:
{
self.title = @"Normal Blend";
self.filterSettingsSlider.hidden = YES;
needsSecondImage = YES;

filter = [[GPUImageNormalBlendFilter alloc] init];
}; break;

case GPUIMAGE_OPACITY:
{
self.title = @"Opacity Adjustment";
Expand Down
5 changes: 0 additions & 5 deletions framework/Source/GPUImageNormalBlendFilter.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
//
// GPUNormalBlendFilter.h
// GPUImage
//
// Created by Jorge Garcia on 9/5/12.
// Copyright (c) 2012 Brad Larson. All rights reserved.
//

#import "GPUImageTwoInputFilter.h"
Expand Down
6 changes: 0 additions & 6 deletions framework/Source/GPUImageNormalBlendFilter.m
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
//
// GPUNormalBlendFilter.m
// GPUImage
//
// Created by Jorge Garcia on 9/5/12.
// Copyright (c) 2012 Brad Larson. All rights reserved.
//

#import "GPUImageNormalBlendFilter.h"
/*
Expand Down

0 comments on commit cdddaea

Please sign in to comment.