This file contains 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 <stdio.h> | |
#define IMAGE_WIDTH 7 | |
#define DISPLAY_WIDTH 192 | |
#define DISPLAY_HEIGHT 160 | |
unsigned long int display[(DISPLAY_WIDTH * DISPLAY_HEIGHT) / 32]; | |
int asciiHexToDec(char asciiHex) | |
{ |
This file contains 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 <stdio.h> | |
/*int main(int argc, const char * argv[])*/ | |
void concat(char* str1, char* str2, char* output); | |
{ | |
int i, j, k; | |
i = j = k = 0; | |
while (str1[i] != '\0') |
This file contains 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 "GPUImageFilter.h" | |
@interface GPUImageHueSaturationFilter : GPUImageFilter { | |
GLfloat hue[7]; | |
GLfloat lightness[7]; | |
GLfloat saturation[7]; | |
GLint hueUniform; | |
GLint lightnessUniform; | |
GLint saturationUniform; |
This file contains 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
NSString *const kColorShiftFragmentShaderString = SHADER_STRING | |
( | |
varying highp vec2 textureCoordinate; | |
uniform sampler2D inputImageTexture; | |
uniform lowp float redShift; | |
uniform lowp float greenShift; | |
uniform lowp float blueShift; |