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

removed unused vars

parent 772d51c9
...@@ -310,8 +310,6 @@ void modelfiler :: backendMess(t_symbol*s, int argc, t_atom*argv) ...@@ -310,8 +310,6 @@ void modelfiler :: backendMess(t_symbol*s, int argc, t_atom*argv)
if(m_loader) { if(m_loader) {
std::vector<gem::any>atoms; std::vector<gem::any>atoms;
gem::any value; gem::any value;
t_atom at;
t_atom*ap=&at;
gem::Properties props; gem::Properties props;
std::vector<std::string> backends; std::vector<std::string> backends;
props.set("backends", value); props.set("backends", value);
......
...@@ -453,8 +453,6 @@ void model :: backendMess(t_symbol*s, int argc, t_atom*argv) ...@@ -453,8 +453,6 @@ void model :: backendMess(t_symbol*s, int argc, t_atom*argv)
if(m_loader) { if(m_loader) {
std::vector<gem::any>atoms; std::vector<gem::any>atoms;
gem::any value; gem::any value;
t_atom at;
t_atom*ap=&at;
gem::Properties props; gem::Properties props;
std::vector<std::string> backends; std::vector<std::string> backends;
props.set("backends", value); props.set("backends", value);
......
...@@ -255,8 +255,6 @@ void multimodel :: backendMess(t_symbol*s, int argc, t_atom*argv) ...@@ -255,8 +255,6 @@ void multimodel :: backendMess(t_symbol*s, int argc, t_atom*argv)
if(m_loader) { if(m_loader) {
std::vector<gem::any>atoms; std::vector<gem::any>atoms;
gem::any value; gem::any value;
t_atom at;
t_atom*ap=&at;
gem::Properties props; gem::Properties props;
std::vector<std::string> backends; std::vector<std::string> backends;
props.set("backends", value); props.set("backends", value);
......
...@@ -949,8 +949,6 @@ bool gemglxwindow :: create(void) ...@@ -949,8 +949,6 @@ bool gemglxwindow :: create(void)
#ifdef HAVE_LIBXXF86VM #ifdef HAVE_LIBXXF86VM
XF86VidModeModeInfo **modes; XF86VidModeModeInfo **modes;
#endif #endif
int fullscreen=m_fullscreen;
char svalue[3]; char svalue[3];
snprintf(svalue, 3, "%d", m_fsaa); snprintf(svalue, 3, "%d", m_fsaa);
svalue[2]=0; svalue[2]=0;
......
...@@ -234,11 +234,10 @@ void pix_compare :: processYUV_MMX(imageStruct &image, imageStruct &right) ...@@ -234,11 +234,10 @@ void pix_compare :: processYUV_MMX(imageStruct &image, imageStruct &right)
void pix_compare :: processYUV_Altivec(imageStruct &image, void pix_compare :: processYUV_Altivec(imageStruct &image,
imageStruct &right) imageStruct &right)
{ {
register int h,w,i,j,width; register int h,w,i,j;
h = image.ysize; h = image.ysize;
w = image.xsize/8; w = image.xsize/8;
width = image.xsize/8;
//check to see if the buffer isn't 16byte aligned (highly unlikely) //check to see if the buffer isn't 16byte aligned (highly unlikely)
if (image.ysize*image.xsize % 16 != 0) { if (image.ysize*image.xsize % 16 != 0) {
......
...@@ -323,8 +323,6 @@ void pix_convolve :: calculate3x3YUV(imageStruct &image, ...@@ -323,8 +323,6 @@ void pix_convolve :: calculate3x3YUV(imageStruct &image,
#else #else
int xsize = tempImg.xsize -1; int xsize = tempImg.xsize -1;
int ysize = tempImg.ysize -1; int ysize = tempImg.ysize -1;
int size = xsize*ysize - xsize-1;
int length;
short* src = (short*) tempImg.data; short* src = (short*) tempImg.data;
short* dest = (short*)image.data; short* dest = (short*)image.data;
......
...@@ -331,7 +331,7 @@ void pix_film :: openMess(std::string filename, int format, ...@@ -331,7 +331,7 @@ void pix_film :: openMess(std::string filename, int format,
if (format==0) { if (format==0) {
format=m_format; format=m_format;
} }
double d=(double)format;
wantProps.set("colorspace", format); wantProps.set("colorspace", format);
if(m_auto!=0.f) { if(m_auto!=0.f) {
......
...@@ -1000,16 +1000,12 @@ void pix_freeframe :: openMess(t_symbol*s) ...@@ -1000,16 +1000,12 @@ void pix_freeframe :: openMess(t_symbol*s)
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
void pix_freeframe :: processImage(imageStruct &image) void pix_freeframe :: processImage(imageStruct &image)
{ {
unsigned int orgformat = image.format;
unsigned int format=m_image.format;
unsigned char*data=image.data;
if(m_plugin==NULL) { if(m_plugin==NULL) {
return; return;
} }
// convert the current image into a format that suits the FreeFrame-plugin // convert the current image into a format that suits the FreeFrame-plugin
if(orgformat != format) { if(image.format != m_image.format) {
if(m_image.convertFrom(&image)) { if(m_image.convertFrom(&image)) {
m_plugin->processFrame(m_image); m_plugin->processFrame(m_image);
m_image.convertTo(&image); m_image.convertTo(&image);
......
...@@ -113,12 +113,7 @@ void pix_motionblur :: processRGBAImage(imageStruct &image) ...@@ -113,12 +113,7 @@ void pix_motionblur :: processRGBAImage(imageStruct &image)
} }
void pix_motionblur :: processGrayImage(imageStruct &image) void pix_motionblur :: processGrayImage(imageStruct &image)
{ {
int Gray;
Gray=chGray;
unsigned char *saved = m_savedImage.data; unsigned char *saved = m_savedImage.data;
m_savedImage.xsize=image.xsize; m_savedImage.xsize=image.xsize;
m_savedImage.ysize=image.ysize; m_savedImage.ysize=image.ysize;
m_savedImage.setCsizeByFormat(image.format); m_savedImage.setCsizeByFormat(image.format);
......
...@@ -213,12 +213,10 @@ void pix_record :: startRecording() ...@@ -213,12 +213,10 @@ void pix_record :: startRecording()
} }
// find a handle for the current settings (filename, codec, props) // find a handle for the current settings (filename, codec, props)
const std::string codec=m_codec; /* const std::string codec=m_codec; */
stopRecording(); stopRecording();
m_currentFrame = 0; m_currentFrame = 0;
unsigned int i=0;
// do not re-set the codec, if there is no need... // do not re-set the codec, if there is no need...
/* m_handle->setCodec(codec); */ /* m_handle->setCodec(codec); */
if(m_handle->start(m_filename, m_props)) { if(m_handle->start(m_filename, m_props)) {
......
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