text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```objective-c
#import "GPUImageMonochromeFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUMonochromeFragmentShaderString = SHADER_STRING
(
precision lowp float;
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform float intensity;
uniform vec3 filter... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageMonochromeFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,064 |
```objective-c
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreMedia/CoreMedia.h>
#import "GPUImageContext.h"
#import "GPUImageOutput.h"
extern const GLfloat kColorConversion601[];
extern const GLfloat kColorConversion601FullRange[];
extern const GLfloat kColorConversion709[];
exte... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageVideoCamera.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,086 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageCGAColorspaceFilter : GPUImageFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageCGAColorspaceFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 23 |
```objective-c
#import "GPUImagePolkaDotFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImagePolkaDotFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform highp float fractionalWidthOfPixel;
uniform highp float as... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImagePolkaDotFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 713 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageTransformFilter : GPUImageFilter
{
GLint transformMatrixUniform, orthographicMatrixUniform;
GPUMatrix4x4 orthographicMatrix;
}
// You can either set the transform to apply to be a 2-D affine transform or a 3-D transform. The default is the identity ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageTransformFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 172 |
```objective-c
#import "GPUImageLinearBurnBlendFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageLinearBurnBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 textureCoordinate2;
uniform sampler2D inputImageTexture;
uniform sampler... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLinearBurnBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 358 |
```objective-c
#import "GPUImage3x3TextureSamplingFilter.h"
@interface GPUImageMedianFilter : GPUImage3x3TextureSamplingFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageMedianFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 30 |
```objective-c
#import "GPUImageMovie.h"
#import "GPUImageMovieWriter.h"
#import "GPUImageFilter.h"
#import "GPUImageVideoCamera.h"
@interface GPUImageMovie () <AVPlayerItemOutputPullDelegate>
{
BOOL audioEncodingIsFinished, videoEncodingIsFinished;
GPUImageMovieWriter *synchronizedMovieWriter;
AVAssetRead... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageMovie.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 6,091 |
```objective-c
#import "GPUImageMedianFilter.h"
/*
3x3 median filter, adapted from "A Fast, Small-Radius GPU Median Filter" by Morgan McGuire in ShaderX6
path_to_url
Morgan McGuire and Kyle Whitson
Williams College
Register allocation tips by Victor Huang Xiaohuang
University of Illinois at Urbana-Champaign
... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageMedianFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,779 |
```objective-c
#import "GPUImageFilter.h"
/** Pixels with a luminance above the threshold will appear white, and those below will be black
*/
@interface GPUImageLuminanceThresholdFilter : GPUImageFilter
{
GLint thresholdUniform;
}
/** Anything above this luminance will be white, and anything below black. Ranges ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLuminanceThresholdFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 99 |
```objective-c
#import "GPUImage3x3ConvolutionFilter.h"
@interface GPUImageLaplacianFilter : GPUImage3x3ConvolutionFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLaplacianFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 33 |
```objective-c
#import "GPUImageLuminanceThresholdFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageLuminanceThresholdFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform highp float threshold;
const highp ve... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLuminanceThresholdFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 432 |
```objective-c
#import "GPUImageFilterGroup.h"
@interface GPUImageAdaptiveThresholdFilter : GPUImageFilterGroup
/** A multiplier for the background averaging blur radius in pixels, with a default of 4
*/
@property(readwrite, nonatomic) CGFloat blurRadiusInPixels;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageAdaptiveThresholdFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 56 |
```objective-c
#import "GPUImageOutput.h"
#define STRINGIZE(x) #x
#define STRINGIZE2(x) STRINGIZE(x)
#define SHADER_STRING(text) @ STRINGIZE2(text)
#define GPUImageHashIdentifier #
#define GPUImageWrappedLabel(x) x
#define GPUImageEscapedHashIdentifier(a) GPUImageWrappedLabel(GPUImageHashIdentifier)a
extern NSString... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,282 |
```objective-c
#import "GPUImageHarrisCornerDetectionFilter.h"
#import "GPUImageGaussianBlurFilter.h"
#import "GPUImageXYDerivativeFilter.h"
#import "GPUImageGrayscaleFilter.h"
#import "GPUImageThresholdedNonMaximumSuppressionFilter.h"
#import "GPUImageColorPackingFilter.h"
#import "GPUImageGaussianBlurFilter.h"
@inte... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageHarrisCornerDetectionFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 2,293 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageBrightnessFilter : GPUImageFilter
{
GLint brightnessUniform;
}
// Brightness ranges from -1.0 to 1.0, with 0.0 as the normal level
@property(readwrite, nonatomic) CGFloat brightness;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageBrightnessFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 62 |
```objective-c
#import "GPUImageRawDataInput.h"
@interface GPUImageRawDataInput()
- (void)uploadBytes:(GLubyte *)bytesToUpload;
@end
@implementation GPUImageRawDataInput
@synthesize pixelFormat = _pixelFormat;
@synthesize pixelType = _pixelType;
#pragma mark -
#pragma mark Initialization and teardown
- (id)initWit... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageRawDataInput.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 933 |
```objective-c
#import "GPUImageTwoInputCrossTextureSamplingFilter.h"
#import "GPUImageFilterGroup.h"
@interface GPUImagePoissonBlendFilter : GPUImageTwoInputCrossTextureSamplingFilter
{
GLint mixUniform;
GPUImageFramebuffer *secondOutputFramebuffer;
}
// Mix ranges from 0.0 (only image 1) to 1.0 (only i... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImagePoissonBlendFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 152 |
```objective-c
#import "GPUImageTiltShiftFilter.h"
#import "GPUImageFilter.h"
#import "GPUImageTwoInputFilter.h"
#import "GPUImageGaussianBlurFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageTiltShiftFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varyi... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageTiltShiftFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 935 |
```objective-c
#import "GPUImageSubtractBlendFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageSubtractBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 textureCoordinate2;
uniform sampler2D inputImageTexture;
uniform sampler2D in... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSubtractBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 311 |
```objective-c
#import "GPUImageLocalBinaryPatternFilter.h"
// This is based on "Accelerating image recognition on mobile devices using GPGPU" by Miguel Bordallo Lopez, Henri Nykanen, Jari Hannuksela, Olli Silven and Markku Vehvilainen
// path_to_url~jhannuks/publications/SPIE2011a.pdf
// Right pixel is the most sign... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLocalBinaryPatternFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,274 |
```objective-c
#import "GPUImageFilterGroup.h"
@interface GPUImageAverageLuminanceThresholdFilter : GPUImageFilterGroup
// This is multiplied by the continually calculated average image luminosity to arrive at the final threshold. Default is 1.0.
@property(readwrite, nonatomic) CGFloat thresholdMultiplier;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageAverageLuminanceThresholdFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 62 |
```objective-c
#import "GPUImageTwoInputCrossTextureSamplingFilter.h"
NSString *const kGPUImageTwoInputNearbyTexelSamplingVertexShaderString = SHADER_STRING
(
attribute vec4 position;
attribute vec4 inputTextureCoordinate;
attribute vec4 inputTextureCoordinate2;
uniform float texelWidth;
uniform float texelHeig... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageTwoInputCrossTextureSamplingFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 744 |
```objective-c
#import "GPUImageFilter.h"
extern NSString *const kGPUImageColorAveragingVertexShaderString;
@interface GPUImageAverageColor : GPUImageFilter
{
GLint texelWidthUniform, texelHeightUniform;
NSUInteger numberOfStages;
GLubyte *rawImagePixels;
CGSize finalStageSize;
}
// This bl... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageAverageColor.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 136 |
```objective-c
#import "GPUImageTwoPassTextureSamplingFilter.h"
// For each pixel, this sets it to the minimum value of the red channel in a rectangular neighborhood extending out dilationRadius pixels from the center.
// This extends out dark features, and is most commonly used with black-and-white thresholded images... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageErosionFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 126 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImagePolarPixellateFilter : GPUImageFilter {
GLint centerUniform, pixelSizeUniform;
}
// The center about which to apply the distortion, with a default of (0.5, 0.5)
@property(readwrite, nonatomic) CGPoint center;
// The amount of distortion to apply, from (... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImagePolarPixellateFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 121 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageGammaFilter : GPUImageFilter
{
GLint gammaUniform;
}
// Gamma ranges from 0.0 to 3.0, with 1.0 as the normal level
@property(readwrite, nonatomic) CGFloat gamma;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageGammaFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 61 |
```objective-c
#import "GPUImageHSBFilter.h"
@implementation GPUImageHSBFilter {
float matrix[4][4];
}
- (id)init
{
self = [super init];
if (self) {
[self reset];
}
return self;
}
- (void)reset {
identmat(matrix);
[self _updateColorMatrix];
}
- (void)rotateHue:(float)h {
huer... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageHSBFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 3,569 |
```objective-c
#import "GPUImageTwoInputFilter.h"
NSString *const kGPUImageTwoInputTextureVertexShaderString = SHADER_STRING
(
attribute vec4 position;
attribute vec4 inputTextureCoordinate;
attribute vec4 inputTextureCoordinate2;
varying vec2 textureCoordinate;
varying vec2 textureCoordinate2;
void main()
... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageTwoInputFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,633 |
```objective-c
#import "GPUImageTwoInputFilter.h"
@interface GPUImageSourceOverBlendFilter : GPUImageTwoInputFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSourceOverBlendFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 26 |
```objective-c
#import "GPUImageColorBlendFilter.h"
/**
* Color blend mode based upon pseudo code from the PDF specification.
*/
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageColorBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 texture... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageColorBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 963 |
```objective-c
#import "GPUImageOpacityFilter.h"
@implementation GPUImageOpacityFilter
@synthesize opacity = _opacity;
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageOpacityFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageOpacityFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 313 |
```objective-c
#import "GPUImageFilterGroup.h"
@class GPUImageErosionFilter;
@class GPUImageDilationFilter;
// A filter that first performs a dilation on the red channel of an image, followed by an erosion of the same radius.
// This helps to filter out smaller dark elements.
@interface GPUImageClosingFilter : GPUI... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageClosingFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 125 |
```objective-c
#import "GPUImageTwoInputFilter.h"
@interface GPUImageVoronoiConsumerFilter : GPUImageTwoInputFilter
{
GLint sizeUniform;
}
@property (nonatomic, readwrite) CGSize sizeInPixels;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageVoronoiConsumerFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 46 |
```objective-c
#import "GPUImageFramebufferCache.h"
#import "GPUImageContext.h"
#import "GPUImageOutput.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#else
#endif
@interface GPUImageFramebufferCache()
{
// NSCache *framebufferCache;
NSMutableDictionary *framebufferCache;
NSMuta... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageFramebufferCache.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,501 |
```objective-c
#import "GPUImageLuminosityBlendFilter.h"
/**
* Luminosity blend mode based upon pseudo code from the PDF specification.
*/
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageLuminosityBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying hig... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLuminosityBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 978 |
```objective-c
#import "GPUImageAddBlendFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageAddBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 textureCoordinate2;
uniform sampler2D inputImageTexture;
uniform sampler2D inputImageTe... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageAddBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 773 |
```objective-c
// 2448x3264 pixel image = 31,961,088 bytes for uncompressed RGBA
#import "GPUImageStillCamera.h"
void stillImageDataReleaseCallback(void *releaseRefCon, const void *baseAddress)
{
free((void *)baseAddress);
}
void GPUImageCreateResizedSampleBuffer(CVPixelBufferRef cameraFrame, CGSize finalSize, C... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageStillCamera.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 3,194 |
```objective-c
#import "GPUImageBrightnessFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageBrightnessFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform lowp float brightness;
void main()
{
lowp vec4 t... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageBrightnessFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 322 |
```objective-c
#import "GPUImageBoxBlurFilter.h"
@implementation GPUImageBoxBlurFilter
+ (NSString *)vertexShaderForOptimizedBlurOfRadius:(NSUInteger)blurRadius sigma:(CGFloat)sigma;
{
if (blurRadius < 1)
{
return kGPUImageVertexShaderString;
}
// From these weights we calculate the offsets ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageBoxBlurFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,771 |
```objective-c
#import "GPUImageFilterGroup.h"
#import "GPUImageBuffer.h"
#import "GPUImageDissolveBlendFilter.h"
@interface GPUImageLowPassFilter : GPUImageFilterGroup
{
GPUImageBuffer *bufferFilter;
GPUImageDissolveBlendFilter *dissolveBlendFilter;
}
// This controls the degree by which the previous accumul... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLowPassFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 116 |
```objective-c
#import "GPUImageDirectionalNonMaximumSuppressionFilter.h"
@implementation GPUImageDirectionalNonMaximumSuppressionFilter
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageDirectionalNonmaximumSuppressionFragmentShaderString = SHADER_STRING
(
precision mediump float;
varying ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageDirectionalNonMaximumSuppressionFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,055 |
```objective-c
#import "GPUImageLevelsFilter.h"
/*
** Gamma correction
** Details: path_to_url
*/
#define GammaCorrection(color, gamma) pow(color, 1.0 / gamma)
/*
** Levels control (input (+gamma), output)
** Details: path_to_url
*/
#define LevelsControlInputRange(color, minInput, maxInput) min(max(... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLevelsFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,350 |
```objective-c
#import "GPUImageCannyEdgeDetectionFilter.h"
#import "GPUImageGrayscaleFilter.h"
#import "GPUImageDirectionalSobelEdgeDetectionFilter.h"
#import "GPUImageDirectionalNonMaximumSuppressionFilter.h"
#import "GPUImageWeakPixelInclusionFilter.h"
#import "GPUImageSingleComponentGaussianBlurFilter.h"
@impleme... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageCannyEdgeDetectionFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 765 |
```objective-c
#import "GPUImageColorInvertFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageInvertFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
void main()
{
lowp vec4 textureColor = texture2D(inputImageTe... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageColorInvertFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 237 |
```objective-c
#import "GPUImagePixellateFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImagePixellationFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform highp float fractionalWidthOfPixel;
uniform highp floa... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImagePixellateFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 897 |
```objective-c
#import "GPUImageFilterGroup.h"
@class GPUImageErosionFilter;
@class GPUImageDilationFilter;
// A filter that first performs an erosion on the red channel of an image, followed by a dilation of the same radius.
// This helps to filter out smaller bright elements.
@interface GPUImageOpeningFilter : GP... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageOpeningFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 125 |
```objective-c
#import "GPUImageKuwaharaRadius3Filter.h"
// Sourced from Kyprianidis, J. E., Kang, H., and Doellner, J. "Anisotropic Kuwahara Filtering on the GPU," GPU Pro p.247 (2010).
//
// Original header:
//
// Anisotropic Kuwahara Filtering on the GPU
// by Jan Eric Kyprianidis <www.kyprianidis.com>
#if TARGET_... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageKuwaharaRadius3Filter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 5,639 |
```objective-c
#import "GPUImageFilterGroup.h"
@class GPUImageRGBErosionFilter;
@class GPUImageRGBDilationFilter;
// A filter that first performs a dilation on each color channel of an image, followed by an erosion of the same radius.
// This helps to filter out smaller dark elements.
@interface GPUImageRGBClosingF... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageRGBClosingFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 114 |
```objective-c
#import "GPUImageClosingFilter.h"
#import "GPUImageErosionFilter.h"
#import "GPUImageDilationFilter.h"
@implementation GPUImageClosingFilter
@synthesize verticalTexelSpacing = _verticalTexelSpacing;
@synthesize horizontalTexelSpacing = _horizontalTexelSpacing;
- (id)init;
{
if (!(self = [self init... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageClosingFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 321 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageExposureFilter : GPUImageFilter
{
GLint exposureUniform;
}
// Exposure ranges from -10.0 to 10.0, with 0.0 as the normal level
@property(readwrite, nonatomic) CGFloat exposure;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageExposureFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 62 |
```objective-c
#import "GPUImageTwoInputFilter.h"
@interface GPUImageAddBlendFilter : GPUImageTwoInputFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageAddBlendFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 25 |
```objective-c
#import "GPUImageWhiteBalanceFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageWhiteBalanceFragmentShaderString = SHADER_STRING
(
uniform sampler2D inputImageTexture;
varying highp vec2 textureCoordinate;
uniform lowp float temperature;
uniform lowp float tint;
const ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageWhiteBalanceFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,172 |
```objective-c
#import "GPUImageGaussianBlurFilter.h"
// This filter merely performs the standard Gaussian blur on the red color channel (assuming a luminance image)
@interface GPUImageSingleComponentGaussianBlurFilter : GPUImageGaussianBlurFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSingleComponentGaussianBlurFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 51 |
```objective-c
#import "GPUImagePoissonBlendFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImagePoissonBlendFragmentShaderString = SHADER_STRING
(
precision mediump float;
varying vec2 textureCoordinate;
varying vec2 leftTextureCoordinate;
varying vec2 rightTextureCoordinate;
vary... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImagePoissonBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,554 |
```objective-c
#import "GPUImageLaplacianFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageLaplacianFragmentShaderString = SHADER_STRING
(
precision highp float;
uniform sampler2D inputImageTexture;
uniform mediump mat3 convolutionMatrix;
varying vec2 textureCoordinate;
varyi... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLaplacianFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,158 |
```objective-c
#import "GPUImageFilterGroup.h"
@class GPUImageGaussianBlurFilter;
@class GPUImageToonFilter;
/** This uses a similar process as the GPUImageToonFilter, only it precedes the toon effect with a Gaussian blur to smooth out noise.
*/
@interface GPUImageSmoothToonFilter : GPUImageFilterGroup
{
GPUImag... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSmoothToonFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 263 |
```objective-c
#import "GPUImageCrosshatchFilter.h"
// Shader code based on path_to_url
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageCrosshatchFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform highp float crossHa... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageCrosshatchFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,232 |
```objective-c
#import "GPUImageRawDataOutput.h"
#import "GPUImageContext.h"
#import "GLProgram.h"
#import "GPUImageFilter.h"
#import "GPUImageMovieWriter.h"
@interface GPUImageRawDataOutput ()
{
GPUImageFramebuffer *firstInputFramebuffer, *outputFramebuffer, *retainedFramebuffer;
BOOL hasReadFromTheCurr... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageRawDataOutput.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 2,184 |
```objective-c
#import "GPUImageTwoPassFilter.h"
@interface GPUImageSobelEdgeDetectionFilter : GPUImageTwoPassFilter
{
GLint texelWidthUniform, texelHeightUniform, edgeStrengthUniform;
BOOL hasOverriddenImageSizeFactor;
}
// The texel width and height factors tweak the appearance of the edges. By default, the... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSobelEdgeDetectionFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 151 |
```objective-c
#import "GPUImageFilter.h"
// This is an accumulator that uses a Hough transform in parallel coordinate space to identify probable lines in a scene.
//
// It is entirely based on the work of the Graph@FIT research group at the Brno University of Technology and their publications:
// M. Dubsk, J. Havel, ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageParallelCoordinateLineTransformFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 201 |
```objective-c
#import "GPUImage3x3TextureSamplingFilter.h"
/** Runs a 3x3 convolution kernel against the image
*/
@interface GPUImage3x3ConvolutionFilter : GPUImage3x3TextureSamplingFilter
{
GLint convolutionMatrixUniform;
}
/** Convolution kernel to run against the image
The convolution kernel is a 3x3 matr... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImage3x3ConvolutionFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 157 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageHueFilter : GPUImageFilter
{
GLint hueAdjustUniform;
}
@property (nonatomic, readwrite) CGFloat hue;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageHueFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 41 |
```objective-c
#import "GPUImageFilterGroup.h"
@class GPUImageGrayscaleFilter;
@class GPUImage3x3TextureSamplingFilter;
@class GPUImageNonMaximumSuppressionFilter;
/*
An implementation of the Features from Accelerated Segment Test (FAST) feature detector as described in the following publications:
E. Rosten and ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageFASTCornerDetectionFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 310 |
```objective-c
#import "GPUImagePrewittEdgeDetectionFilter.h"
@implementation GPUImagePrewittEdgeDetectionFilter
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImagePrewittFragmentShaderString = SHADER_STRING
(
precision highp float;
varying vec2 textureCoordinate;
varying vec2 leftTextureCo... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImagePrewittEdgeDetectionFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 793 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageLineGenerator : GPUImageFilter
{
GLint lineWidthUniform, lineColorUniform;
GLfloat *lineCoordinates;
}
// The width of the displayed lines, in pixels. The default is 1.
@property(readwrite, nonatomic) CGFloat lineWidth;
// The color of the lines is... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLineGenerator.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 165 |
```objective-c
#import "GPUImageColorMatrixFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageColorMatrixFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform lowp mat4 colorMatrix;
uniform lowp float intensity;... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageColorMatrixFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 535 |
```objective-c
#import <Foundation/Foundation.h>
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
#else
#import <OpenGL/OpenGL.h>
#import <OpenGL/gl.h>
#endif
#import <QuartzCore/QuartzCore.h>
#import <CoreMedia/CoreMedia.h>
typedef... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageFramebuffer.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 350 |
```objective-c
#import "GPUImageUnsharpMaskFilter.h"
#import "GPUImageFilter.h"
#import "GPUImageTwoInputFilter.h"
#import "GPUImageGaussianBlurFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageUnsharpMaskFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
v... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageUnsharpMaskFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 751 |
```objective-c
#import "GPUImageTwoPassTextureSamplingFilter.h"
// For each pixel, this sets it to the maximum value of each color channel in a rectangular neighborhood extending out dilationRadius pixels from the center.
// This extends out brighter colors, and can be used for abstraction of color images.
@interface... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageRGBDilationFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 122 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageSharpenFilter : GPUImageFilter
{
GLint sharpnessUniform;
GLint imageWidthFactorUniform, imageHeightFactorUniform;
}
// Sharpness ranges from -4.0 to 4.0, with 0.0 as the normal level
@property(readwrite, nonatomic) CGFloat sharpness;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSharpenFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 77 |
```objective-c
#import "GPUImageLookupFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageLookupFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 textureCoordinate2; // TODO: This is not used
uniform sampler2D inputImageTexture;
uniform... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLookupFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,121 |
```objective-c
#import "GPUImageDilationFilter.h"
@implementation GPUImageDilationFilter
NSString *const kGPUImageDilationRadiusOneVertexShaderString = SHADER_STRING
(
attribute vec4 position;
attribute vec2 inputTextureCoordinate;
uniform float texelWidthOffset;
uniform float texelHeightOffset;
varying ve... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageDilationFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 3,719 |
```objective-c
#import "GPUImageSingleComponentGaussianBlurFilter.h"
@implementation GPUImageSingleComponentGaussianBlurFilter
+ (NSString *)vertexShaderForOptimizedBlurOfRadius:(NSUInteger)blurRadius sigma:(CGFloat)sigma;
{
if (blurRadius < 1)
{
return kGPUImageVertexShaderString;
}
// First... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSingleComponentGaussianBlurFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 2,139 |
```objective-c
#import "GPUImage3x3ConvolutionFilter.h"
@interface GPUImageEmbossFilter : GPUImage3x3ConvolutionFilter
// The strength of the embossing, from 0.0 to 4.0, with 1.0 as the normal level
@property(readwrite, nonatomic) CGFloat intensity;
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageEmbossFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 72 |
```objective-c
#import "GPUImageTwoInputFilter.h"
@interface GPUImageColorBlendFilter : GPUImageTwoInputFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageColorBlendFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 25 |
```objective-c
#import "GPUImageGaussianBlurFilter.h"
@interface GPUImageBilateralFilter : GPUImageGaussianBlurFilter
{
CGFloat firstDistanceNormalizationFactorUniform;
CGFloat secondDistanceNormalizationFactorUniform;
}
// A normalization factor for the distance between central color and sample color.
@proper... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageBilateralFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 70 |
```objective-c
#import "GPUImageCrosshairGenerator.h"
NSString *const kGPUImageCrosshairVertexShaderString = SHADER_STRING
(
attribute vec4 position;
uniform float crosshairWidth;
varying vec2 centerLocation;
varying float pointSpacing;
void main()
{
gl_Position = vec4(((position.xy * 2.0) - 1.0), 0.0... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageCrosshairGenerator.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,057 |
```objective-c
#import "GPUImageDivideBlendFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageDivideBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 textureCoordinate2;
uniform sampler2D inputImageTexture;
uniform sampler2D inputI... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageDivideBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 974 |
```objective-c
#import "GPUImageSaturationFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageSaturationFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform lowp float saturation;
// Values from "Graphics Shader... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSaturationFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 493 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImagePerlinNoiseFilter : GPUImageFilter
{
GLint scaleUniform, colorStartUniform, colorFinishUniform;
}
@property (readwrite, nonatomic) GPUVector4 colorStart;
@property (readwrite, nonatomic) GPUVector4 colorFinish;
@property (readwrite, nonatomic) float s... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImagePerlinNoiseFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 73 |
```objective-c
#import "GPUImageTwoPassTextureSamplingFilter.h"
/** A Gaussian blur filter
Interpolated optimization based on Daniel Rkos' work at path_to_url
*/
@interface GPUImageGaussianBlurFilter : GPUImageTwoPassTextureSamplingFilter
{
BOOL shouldResizeBlurRadiusWithImageSize;
CGFloat _blurRadiusIn... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageGaussianBlurFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 391 |
```objective-c
#import "GPUImageAdaptiveThresholdFilter.h"
#import "GPUImageFilter.h"
#import "GPUImageTwoInputFilter.h"
#import "GPUImageGrayscaleFilter.h"
#import "GPUImageBoxBlurFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageAdaptiveThresholdFragmentShaderString = SHADER_STRING
(... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageAdaptiveThresholdFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 684 |
```objective-c
#import "GPUImage3x3TextureSamplingFilter.h"
/** This uses Sobel edge detection to place a black border around objects,
and then it quantizes the colors present in the image to give a cartoon-like quality to the image.
*/
@interface GPUImageToonFilter : GPUImage3x3TextureSamplingFilter
{
GLint thr... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageToonFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 146 |
```objective-c
#import "GPUImageAlphaBlendFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageAlphaBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 textureCoordinate2;
uniform sampler2D inputImageTexture;
uniform sampler2D inputIma... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageAlphaBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 413 |
```objective-c
#import "GPUImageFilterGroup.h"
@class GPUImageGaussianBlurFilter;
@interface GPUImageUnsharpMaskFilter : GPUImageFilterGroup
{
GPUImageGaussianBlurFilter *blurFilter;
GPUImageFilter *unsharpMaskFilter;
}
// The blur radius of the underlying Gaussian blur. The default is 4.0.
@property (readwri... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageUnsharpMaskFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 120 |
```objective-c
#import "GPUImageTwoInputFilter.h"
@interface GPUImageSaturationBlendFilter : GPUImageTwoInputFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSaturationBlendFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 26 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageHighlightShadowFilter : GPUImageFilter
{
GLint shadowsUniform, highlightsUniform;
}
/**
* 0 - 1, increase to lighten shadows.
* @default 0
*/
@property(readwrite, nonatomic) CGFloat shadows;
/**
* 0 - 1, decrease to darken highlights.
* @default 1... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageHighlightShadowFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 89 |
```objective-c
#import "GPUImageFASTCornerDetectionFilter.h"
#import "GPUImageGrayscaleFilter.h"
#import "GPUImage3x3TextureSamplingFilter.h"
#import "GPUImageNonMaximumSuppressionFilter.h"
// 14 total texture coordinates from vertex shader for non-dependent reads
// 3 texture coordinates for dependent reads, then
N... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageFASTCornerDetectionFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 797 |
```objective-c
#import "GPUImageFilter.h"
extern NSString *const kGPUImageTwoInputTextureVertexShaderString;
@interface GPUImageTwoInputFilter : GPUImageFilter
{
GPUImageFramebuffer *secondInputFramebuffer;
GLint filterSecondTextureCoordinateAttribute;
GLint filterInputTextureUniform2;
GPUImageRotati... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageTwoInputFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 140 |
```objective-c
// adapted from unitzeroone - path_to_url
#import "GPUImageJFAVoronoiFilter.h"
// The shaders are mostly taken from UnitZeroOne's WebGL example here:
// path_to_url
NSString *const kGPUImageJFAVoronoiVertexShaderString = SHADER_STRING
(
attribute vec4 position;
attribute vec4 inputTextureCoordina... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageJFAVoronoiFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 3,165 |
```objective-c
#import "GPUImageKuwaharaFilter.h"
// Sourced from Kyprianidis, J. E., Kang, H., and Doellner, J. "Anisotropic Kuwahara Filtering on the GPU," GPU Pro p.247 (2010).
//
// Original header:
//
// Anisotropic Kuwahara Filtering on the GPU
// by Jan Eric Kyprianidis <www.kyprianidis.com>
#if TARGET_IPHON... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageKuwaharaFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,926 |
```objective-c
#import "GPUImageTwoInputFilter.h"
@interface GPUImageLookupFilter : GPUImageTwoInputFilter
{
GLint intensityUniform;
}
// How To Use:
// 1) Use your favourite photo editing application to apply a filter to lookup.png from GPUImage/framework/Resources.
// For this to work properly each pixel color ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLookupFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 415 |
```objective-c
#import "GPUImageSourceOverBlendFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageSourceOverBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 textureCoordinate2;
uniform sampler2D inputImageTexture;
uniform sampler... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageSourceOverBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 306 |
```objective-c
#import "GPUImageFilter.h"
@interface GPUImageCrosshatchFilter : GPUImageFilter
{
GLint crossHatchSpacingUniform, lineWidthUniform;
}
// The fractional width of the image to use as the spacing for the crosshatch. The default is 0.03.
@property(readwrite, nonatomic) CGFloat crossHatchSpacing;
// A r... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageCrosshatchFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 101 |
```objective-c
#import <Foundation/Foundation.h>
#import "GPUImageContext.h"
@protocol GPUImageTextureOutputDelegate;
@interface GPUImageTextureOutput : NSObject <GPUImageInput>
{
GPUImageFramebuffer *firstInputFramebuffer;
}
@property(readwrite, unsafe_unretained, nonatomic) id<GPUImageTextureOutputDelegate> de... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageTextureOutput.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 115 |
```objective-c
#import "GPUImageLuminosity.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageInitialLuminosityFragmentShaderString = SHADER_STRING
(
precision highp float;
uniform sampler2D inputImageTexture;
varying highp vec2 outputTextureCoordinate;
varying highp vec2 upperLeftIn... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageLuminosity.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 3,336 |
```objective-c
#import "GPUImageColorBurnBlendFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageColorBurnBlendFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
varying highp vec2 textureCoordinate2;
uniform sampler2D inputImageTexture;
uniform sampler2D ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageColorBurnBlendFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 333 |
```objective-c
#import "GPUImageBulgeDistortionFilter.h"
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
NSString *const kGPUImageBulgeDistortionFragmentShaderString = SHADER_STRING
(
varying highp vec2 textureCoordinate;
uniform sampler2D inputImageTexture;
uniform highp float aspectRatio;
uniform highp vec2 ... | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageBulgeDistortionFilter.m | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 1,058 |
```objective-c
#import "GPUImageTwoInputFilter.h"
@interface GPUImageMaskFilter : GPUImageTwoInputFilter
@end
``` | /content/code_sandbox/Pods/GPUImage/framework/Source/GPUImageMaskFilter.h | objective-c | 2016-02-02T02:51:55 | 2024-08-09T08:55:27 | WMPlayer | zhengwenming/WMPlayer | 3,272 | 24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.