Revision: 56698
http://sourceforge.net/p/brlcad/code/56698
Author: brlcad
Date: 2013-08-08 18:52:01 +0000 (Thu, 08 Aug 2013)
Log Message:
-----------
ws indent comma cleanup
Modified Paths:
--------------
brlcad/trunk/src/libicv/decimate.c
Modified: brlcad/trunk/src/libicv/decimate.c
===================================================================
--- brlcad/trunk/src/libicv/decimate.c 2013-08-08 18:51:28 UTC (rev 56697)
+++ brlcad/trunk/src/libicv/decimate.c 2013-08-08 18:52:01 UTC (rev 56698)
@@ -73,6 +73,7 @@
}
+
HIDDEN int under_sample(icv_image_t* bif, unsigned int factor)
{
double *data_p, *res_p;
@@ -89,7 +90,7 @@
for (y=0; y<bif->height; y+=factor) {
data_p = bif->data + widthstep*y;
for (x=0; x<bif->width; x+=factor, res_p+=bif->channels,
data_p+=factor*bif->channels)
- VMOVEN(res_p,data_p, bif->channels);
+ VMOVEN(res_p, data_p, bif->channels);
}
bif->width = (int) bif->width/factor;
@@ -99,6 +100,7 @@
return 0;
}
+
HIDDEN int ninterp(icv_image_t* bif, unsigned int out_width, unsigned int
out_height)
{
double xstep, ystep;
@@ -181,8 +183,8 @@
low_c = low_r + (int)x*bif->channels;
for (c=0; c<bif->channels; c++) {
- mid1 = low_c[0] + dx * ((double) low_c[bif->channels] -
(double) low_c[0] );
- mid2 = upp_c[0] + dx * ((double) upp_c[bif->channels] -
(double) upp_c[0] );
+ mid1 = low_c[0] + dx * ((double) low_c[bif->channels] -
(double) low_c[0]);
+ mid2 = upp_c[0] + dx * ((double) upp_c[bif->channels] -
(double) upp_c[0]);
*out_p = mid1 + dy * (mid2 - mid1);
out_p++;
@@ -199,6 +201,7 @@
}
+
int icv_resize(icv_image_t *bif, ICV_RESIZE_METHOD method, unsigned int
out_width, unsigned int out_height, unsigned int factor)
{
switch(method) {
@@ -207,7 +210,7 @@
case ICV_RESIZE_SHRINK :
return under_sample(bif, factor);
case ICV_RESIZE_NINTERP :
- return ninterp(bif, out_width,out_height);
+ return ninterp(bif, out_width, out_height);
case ICV_RESIZE_BINTERP :
return binterp(bif, out_width, out_height);
default :
@@ -217,6 +220,7 @@
}
+
/*
* Local Variables:
* tab-width: 8
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits