Commit 9b950a7c authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

removed unused variables

parent 953d007a
......@@ -623,12 +623,11 @@ void videoDarwin::getProperties(gem::Properties&props) {
int i=0;
for(i=0; i<keys.size(); i++) {
std::string key=keys[i];
double value_d=0.;
unsigned short value_us=0;
if(0) {
#define PROPGET_VD(NAME) \
} else if (#NAME == key && m_vdig && !iidc) { \
if(0==VDGet ## NAME (m_vdig,&value_us)) {props.set(key, us2d(value_us)); } value_d=0
} else if (#NAME == key && m_vdig && !iidc) { \
if(0==VDGet ## NAME (m_vdig,&value_us)) {props.set(key, us2d(value_us)); }
PROPGET_VD(Hue);
PROPGET_VD(Sharpness);
PROPGET_VD(Saturation);
......
......@@ -103,10 +103,9 @@ void pix_background :: processRGBAImage(imageStruct &image)
void pix_background :: processGrayImage(imageStruct &image)
{
int i;// h,w,hlength;
long src,pixsize;
long pixsize;
unsigned char newpix, oldpix, *npixes, *opixes;
src = 0;
pixsize = image.xsize * image.ysize * image.csize;
if(m_savedImage.xsize!=image.xsize ||
m_savedImage.ysize!=image.ysize ||
......@@ -351,11 +350,10 @@ void pix_background :: processGrayMMX(imageStruct &image){
#ifdef __VEC__
void pix_background :: processYUVAltivec(imageStruct &image)
{
register int h,w,i,j,width;
register int h,w,i,j;
int pixsize = image.xsize * image.ysize * image.csize;
h = image.ysize;
w = image.xsize/8;
width = image.xsize/8;
//check to see if the buffer isn't 16byte aligned (highly unlikely)
if (image.ysize*image.xsize % 16 != 0){
......
......@@ -46,12 +46,10 @@ pix_chroma_key :: ~pix_chroma_key()
/////////////////////////////////////////////////////////
void pix_chroma_key :: processRGBA_RGBA(imageStruct &image, imageStruct &right)
{
long src;
int datasize = image.xsize * image.ysize;
unsigned char *leftPix = image.data;
unsigned char *rightPix = right.data;
unsigned char Ghi,Glo,Bhi,Blo,Rhi,Rlo;
src =0;
Rhi = CLAMP(m_Yvalue + m_Yrange);
Rlo = CLAMP(m_Yvalue - m_Yrange);
......
......@@ -390,7 +390,6 @@ void pix_dot :: processYUVImage(imageStruct &image)
U16 *src = reinterpret_cast<U16*>(image.data);
int x, y, sx, sy;
int luma = 0;
int luma2 = 0;
int avgluma = 0;
if (m_xsize!=image.xsize || m_ysize!=image.ysize || m_csize!=image.csize) alreadyInit = 0;
......
......@@ -225,7 +225,6 @@ void pix_kaleidoscope :: processRGBAImage(imageStruct &image)
float RowEndU;
float RowEndV;
bool bDebugIsHalfLine;
if (bIsFirstSpan) {
SPete_Kaleidoscope_Line* pLine1=pFirstLineOtherGroup;
......@@ -258,7 +257,6 @@ void pix_kaleidoscope :: processRGBAImage(imageStruct &image)
}
bool bIsHalfLine=(pLine2->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
float Line1U;
float Line1V;
float Line2U;
......@@ -323,7 +321,6 @@ void pix_kaleidoscope :: processRGBAImage(imageStruct &image)
}
bool bIsHalfLine=(pLine2->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
float Line1U;
float Line1V;
......@@ -351,7 +348,6 @@ void pix_kaleidoscope :: processRGBAImage(imageStruct &image)
} else {
bool bIsHalfLine=(pCurrentLine->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
if (bIsHalfLine) {
RowEndU=HalfUOffset+(IntersectionT*HalfUGradient);
......@@ -658,7 +654,6 @@ void pix_kaleidoscope :: processYUVImage(imageStruct &image)
float RowEndU;
float RowEndV;
bool bDebugIsHalfLine;
if (bIsFirstSpan) {
SPete_Kaleidoscope_Line* pLine1=pFirstLineOtherGroup;
SPete_Kaleidoscope_Line* pLine2=pCurrentLine;
......@@ -692,7 +687,6 @@ void pix_kaleidoscope :: processYUVImage(imageStruct &image)
}
bool bIsHalfLine=(pLine2->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
float Line1U;
float Line1V;
float Line2U;
......@@ -762,7 +756,6 @@ void pix_kaleidoscope :: processYUVImage(imageStruct &image)
bool bIsHalfLine=(pLine2->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
float Line1U;
float Line1V;
......@@ -791,7 +784,6 @@ void pix_kaleidoscope :: processYUVImage(imageStruct &image)
} else {
bool bIsHalfLine=(pCurrentLine->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
if (bIsHalfLine) {
RowEndU=HalfUOffset+(IntersectionT*HalfUGradient);
......@@ -1115,7 +1107,6 @@ void pix_kaleidoscope :: processGrayImage(imageStruct &image)
float RowEndU;
float RowEndV;
bool bDebugIsHalfLine;
if (bIsFirstSpan) {
SPete_Kaleidoscope_Line* pLine1=pFirstLineOtherGroup;
SPete_Kaleidoscope_Line* pLine2=pCurrentLine;
......@@ -1149,7 +1140,6 @@ void pix_kaleidoscope :: processGrayImage(imageStruct &image)
}
bool bIsHalfLine=(pLine2->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
float Line1U;
float Line1V;
float Line2U;
......@@ -1219,7 +1209,6 @@ void pix_kaleidoscope :: processGrayImage(imageStruct &image)
bool bIsHalfLine=(pLine2->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
float Line1U;
float Line1V;
......@@ -1248,7 +1237,6 @@ void pix_kaleidoscope :: processGrayImage(imageStruct &image)
} else {
bool bIsHalfLine=(pCurrentLine->Flags&PETE_KALEIDOSCOPE_HALFLINE_BIT);
bDebugIsHalfLine=bIsHalfLine;
if (bIsHalfLine) {
RowEndU=HalfUOffset+(IntersectionT*HalfUGradient);
......
......@@ -51,7 +51,7 @@ void vertex_combine :: render(GemState *state)
{
int i,size,srcL,srcS,count,sizeR,ratio,remainder;
GLfloat *VertexArray;
float blendL, blendR, ratiof,countf;
float blendL, blendR, ratiof;
VertexArray =state->VertexArray;
if (state->VertexArray == NULL || state->VertexArraySize <= 0){
......@@ -80,7 +80,6 @@ void vertex_combine :: render(GemState *state)
i = 0;
srcL = 0;
srcS = 0;
countf = 0.0;
while (i < sizeR) {
count = 0;
while (count < ratio){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment