Skip to content

Instantly share code, notes, and snippets.

@vgoltv
vgoltv / FWKSketchFilter.h
Last active July 7, 2024 09:04
CoreImage filter "Sobel Sketch", kernel ported from GPUImageSketchFilter. Objective-C
//
// FWKSketchFilter.h
// LineEngraver
//
// Created by Viktor Goltvyanytsya on 8/4/16.
// http://www.fwkit.com
//
// Ported from https://github.com/BradLarson/GPUImage/blob/master/framework/Source/GPUImageSketchFilter.m
@soffes
soffes / GPUImageTextureInput+CIImage.h
Last active July 7, 2024 08:51
GPUImage + Core Image
//
// GPUImageTextureInput+CIImage.h
// GPUImage
//
// Created by Sam Soffes on 3/4/14.
// Copyright (c) 2014 Sam Soffes. All rights reserved.
//
#import "GPUImageTextureInput.h"
@ahti
ahti / GPUImageiOSImageEffect.h
Created January 28, 2014 05:55
GPUImage iOS 7 Blur Effect Filter
#import "GPUImageFilterGroup.h"
@class GPUImageSaturationFilter;
@class GPUImageGaussianBlurFilter;
@class GPUImageSolidColorGenerator;
@class GPUImageAlphaBlendFilter;
typedef enum {
GPUImageIOSImageEffectTypeLight,
GPUImageIOSImageEffectTypeExtraLight,
@jpsarda
jpsarda / GPUImageSaturationExposureGammaRGBFilter.h
Created December 17, 2013 10:06
GPUImageSaturationExposureGammaRGBFilter is a combined GPUImageFilter. You use only one filter (one FBO) instead of using 4 chained filters (4 FBO) which is much better for memory usage. ( see why I did this https://github.com/BradLarson/GPUImage/issues/1346 )
//
// GPUSaturationExposureGammaRGBFilter.h
// bonnemine
//
// Created by Jean-Philippe SARDA on 12/17/13.
// Copyright (c) 2013 My Little Paris. All rights reserved.
//
#import "GPUImageFilter.h"
@jamztang
jamztang / 1a-LiveCameraView.m
Last active July 7, 2024 09:01
My first hackathon experience - 12 hours of hacking and building the essentials. https://medium.com/p/3db44088db70
- (void)viewDidLoad {
[super viewDidLoad];
self.videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionFront];
self.videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait;
// self.avatarView is a non full screen GPUImageView instance
// created in Storyboard
[self.videoCamera addTarget:self.avatarView];
[self.videoCamera startCameraCapture];
@suzumura-ss
suzumura-ss / GPUImageLittlePlanetProjectionFilter.h
Created July 2, 2013 07:52
`LittlePlanet` projection with GPUImage.framework
//
// GPUImageLittlePlanetProjectionFilter.h
//
// Created by Toshiyuki Suzumura on 2013/07/02.
// Copyright (c) 2013 Toshiyuki Suzumura. All rights reserved.
//
#import "GPUImageFilter.h"
@interface GPUImageLittlePlanetProjectionFilter : GPUImageFilter
@amolloy
amolloy / ASMBlurredImageBackgroundView.h
Last active July 7, 2024 08:59
A quick'n dirty reproduction of the Yahoo! Weather animated blurred background image. Requires GPUImage and AHEasing. Note that this is mostly an experiment and has several rough edges! To use it, create an instance and set it as a UITableView's backgroundView. You also need to provide the UITableView to the ASMBlurredImageBackgroundView.
//
// ASMBlurredImageBackgroundView.h
// Created by Andy Molloy on 4/19/13.
//
//
#import <UIKit/UIKit.h>
@interface ASMBlurredImageBackgroundView : UIView
@property (nonatomic, assign) double constant;