float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
return mix(rand(fl), rand(fl + 1.0), fc);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "GPUImageBlendTone.h" | |
| #import "GPUImage.h" | |
| @implementation GPUImageBlendTone | |
| - (id)init; | |
| { | |
| if (!(self = [super init])) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "GPUImageFilterGroup.h" | |
| @class GPUImageSaturationFilter; | |
| @class GPUImageGaussianBlurFilter; | |
| @class GPUImageSolidColorGenerator; | |
| @class GPUImageAlphaBlendFilter; | |
| typedef enum { | |
| GPUImageIOSImageEffectTypeLight, | |
| GPUImageIOSImageEffectTypeExtraLight, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // GPUImageLittlePlanetProjectionFilter.h | |
| // | |
| // Created by Toshiyuki Suzumura on 2013/07/02. | |
| // Copyright (c) 2013 Toshiyuki Suzumura. All rights reserved. | |
| // | |
| #import "GPUImageFilter.h" | |
| @interface GPUImageLittlePlanetProjectionFilter : GPUImageFilter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // GPUImageMirrorFilter.h | |
| // | |
| #import <GPUImage/GPUImageFilter.h> | |
| @interface GPUImageMirrorFilter : GPUImageFilter { | |
| GLint verticalMirrorUniform, horizontalMirrorUniform; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <GPUImageThreeInputFilter.h> | |
| extern NSString *const kGPUImageFourInputTextureVertexShaderString; | |
| @interface GPUImageFourInputFilter : GPUImageThreeInputFilter | |
| { | |
| GPUImageFramebuffer *fourthInputFramebuffer; | |
| GLint filterFourthTextureCoordinateAttribute; | |
| GLint filterInputTextureUniform4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)buildTransitionCompositionAUDIO:(AVMutableComposition *)composition andVideoComposition:(AVMutableVideoComposition *)videoComposition andAudioMix:(AVMutableAudioMix *)audioMix | |
| { | |
| CMTime nextClipStartTime = kCMTimeZero; | |
| // Add two video tracks and two audio tracks. | |
| AVMutableCompositionTrack *compositionVideoTracks[2]; | |
| AVMutableCompositionTrack *compositionAudioTracks[2]; | |
| compositionVideoTracks[0] = [composition addMutableTrackWithMediaType:AVMediaTypeVideo preferredTrackID:kCMPersistentTrackID_Invalid]; | |
| compositionVideoTracks[1] = [composition addMutableTrackWithMediaType:AVMediaTypeVideo preferredTrackID:kCMPersistentTrackID_Invalid]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // AVAsset+VideoOrientation.h | |
| // | |
| // Created by Luca Bernardi on 19/09/12. | |
| // Copyright (c) 2012 Luca Bernardi. All rights reserved. | |
| // | |
| #import <AVFoundation/AVFoundation.h> | |
| typedef enum { | |
| LBVideoOrientationUp, //Device starts recording in Portrait |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <assert.h> | |
| #include <roxlu/core/Utils.h> | |
| #include <roxlu/core/Log.h> | |
| #include "YUV420PGrabber.h" | |
| YUV420PGrabber::YUV420PGrabber() | |
| :y_prog(0) | |
| ,y_vert(0) | |
| ,y_frag(0) | |
| ,uv_prog(0) |
NewerOlder