Skip to content

Commit

Permalink
Removed unused functions that were throwing errors in the latest LLVM.
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLarson committed Oct 22, 2013
1 parent 21c350f commit 74c9e66
Showing 1 changed file with 0 additions and 101 deletions.
101 changes: 0 additions & 101 deletions framework/Source/GPUImageHSBFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,41 +153,6 @@ static void cscalemat(mat,rscale,gscale,bscale)
matrixmult(mmat,mat,mat);
}

/*
* lummat -
* make a luminance marix
*/
static void lummat(mat)
float mat[4][4];
{
float mmat[4][4];
float rwgt, gwgt, bwgt;

rwgt = RLUM;
gwgt = GLUM;
bwgt = BLUM;
mmat[0][0] = rwgt;
mmat[0][1] = rwgt;
mmat[0][2] = rwgt;
mmat[0][3] = 0.0;

mmat[1][0] = gwgt;
mmat[1][1] = gwgt;
mmat[1][2] = gwgt;
mmat[1][3] = 0.0;

mmat[2][0] = bwgt;
mmat[2][1] = bwgt;
mmat[2][2] = bwgt;
mmat[2][3] = 0.0;

mmat[3][0] = 0.0;
mmat[3][1] = 0.0;
mmat[3][2] = 0.0;
mmat[3][3] = 1.0;
matrixmult(mmat,mat,mat);
}

/*
* saturatemat -
* make a saturation marix
Expand Down Expand Up @@ -235,38 +200,6 @@ static void saturatemat(mat,sat)
matrixmult(mmat,mat,mat);
}

/*
* offsetmat -
* offset r, g, and b
*/
static void offsetmat(mat,roffset,goffset,boffset)
float mat[4][4];
float roffset, goffset, boffset;
{
float mmat[4][4];

mmat[0][0] = 1.0;
mmat[0][1] = 0.0;
mmat[0][2] = 0.0;
mmat[0][3] = 0.0;

mmat[1][0] = 0.0;
mmat[1][1] = 1.0;
mmat[1][2] = 0.0;
mmat[1][3] = 0.0;

mmat[2][0] = 0.0;
mmat[2][1] = 0.0;
mmat[2][2] = 1.0;
mmat[2][3] = 0.0;

mmat[3][0] = roffset;
mmat[3][1] = goffset;
mmat[3][2] = boffset;
mmat[3][3] = 1.0;
matrixmult(mmat,mat,mat);
}

/*
* xrotate -
* rotate about the x (red) axis
Expand Down Expand Up @@ -395,40 +328,6 @@ static void zshearmat(mat,dx,dy)
matrixmult(mmat,mat,mat);
}

/*
* simplehuerotatemat -
* simple hue rotation. This changes luminance
*/
static void simplehuerotatemat(mat,rot)
float mat[4][4];
float rot;
{
float mag;
float xrs, xrc;
float yrs, yrc;
float zrs, zrc;

/* rotate the grey vector into positive Z */
mag = sqrt(2.0);
xrs = 1.0/mag;
xrc = 1.0/mag;
xrotatemat(mat,xrs,xrc);

mag = sqrt(3.0);
yrs = -1.0/mag;
yrc = sqrt(2.0)/mag;
yrotatemat(mat,yrs,yrc);

/* rotate the hue */
zrs = sin(rot*M_PI/180.0);
zrc = cos(rot*M_PI/180.0);
zrotatemat(mat,zrs,zrc);

/* rotate the grey vector back into place */
yrotatemat(mat,-yrs,yrc);
xrotatemat(mat,-xrs,xrc);
}

/*
* huerotatemat -
* rotate the hue, while maintaining luminance.
Expand Down

0 comments on commit 74c9e66

Please sign in to comment.