summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniels <niels@dyne.org>2015-07-30 20:14:40 (GMT)
committer niels <niels@dyne.org>2015-07-30 20:14:40 (GMT)
commite70cc2d0049fb1b2d04861768bcf6c64cc7b6390 (patch)
treebe79ca1e5a2d433454d0aaa6b58e8f035a4f9dbe
parentc77fe52f8206afcf4facf1025f00601d658d920a (diff)
fix warnings in lvdgmic convenience library
-rw-r--r--veejay-current/plugin-packs/lvdgmic/liblvdgmic/lvdgmic.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/veejay-current/plugin-packs/lvdgmic/liblvdgmic/lvdgmic.cc b/veejay-current/plugin-packs/lvdgmic/liblvdgmic/lvdgmic.cc
index fa65603..d334e96 100644
--- a/veejay-current/plugin-packs/lvdgmic/liblvdgmic/lvdgmic.cc
+++ b/veejay-current/plugin-packs/lvdgmic/liblvdgmic/lvdgmic.cc
@@ -29,10 +29,9 @@ void lvdgmic::push( int w, int h, int fmt, unsigned char **data, int n )
img.assign(w,h, 1, n_planes );
/* convert data in src to float */
- float *in = img._data;
- unsigned char *src = data[0];
unsigned int len = images._data[n]._width * images._data[n]._height * images._data[n]._depth;
- unsigned int i,j;
+ unsigned int i;
+ int j;
for( j = 0; j < n_planes; j ++ ) {
float *in = img._data + (j * len);
@@ -54,11 +53,11 @@ void lvdgmic::gmic_command( char const *str )
}
}
-void lvdgmic::pull(int n, unsigned char **frame)
+void lvdgmic::pull(int n, unsigned char **frame)
{
- unsigned int i,j;
+ unsigned int i;
unsigned int len = images._data[n]._width * images._data[n]._height * images._data[n]._depth;
-
+ int j;
int n_planes = get_n_planes(format);
for( j = 0; j < n_planes; j ++ ) {