Revision: 56784
http://sourceforge.net/p/brlcad/code/56784
Author: mohitdaga
Date: 2013-08-13 13:29:03 +0000 (Tue, 13 Aug 2013)
Log Message:
-----------
Trailing WS
Modified Paths:
--------------
brlcad/trunk/src/libicv/bw.c
brlcad/trunk/src/libicv/decimate.c
brlcad/trunk/src/libicv/pix.c
Modified: brlcad/trunk/src/libicv/bw.c
===================================================================
--- brlcad/trunk/src/libicv/bw.c 2013-08-13 13:25:24 UTC (rev 56783)
+++ brlcad/trunk/src/libicv/bw.c 2013-08-13 13:29:03 UTC (rev 56784)
@@ -36,8 +36,6 @@
#include "icv.h"
-
-
/* defined in encoding.c */
extern HIDDEN double *uchar2double(unsigned char *data, long int size);
extern HIDDEN unsigned char *data2uchar(const icv_image_t *bif);
Modified: brlcad/trunk/src/libicv/decimate.c
===================================================================
--- brlcad/trunk/src/libicv/decimate.c 2013-08-13 13:25:24 UTC (rev 56783)
+++ brlcad/trunk/src/libicv/decimate.c 2013-08-13 13:29:03 UTC (rev 56784)
@@ -37,8 +37,8 @@
size_t widthstep = bif->width*bif->channels;
if (UNLIKELY(factor < 1)) {
- bu_log("Cannot shrink image to 0 factor, factor should be a positive
value.");
- return -1;
+ bu_log("Cannot shrink image to 0 factor, factor should be a positive
value.");
+ return -1;
}
facsq = factor*factor;
@@ -80,8 +80,8 @@
int x, y, widthstep;
if (UNLIKELY(factor < 1)) {
- bu_log("Cannot shrink image to 0 factor, factor should be a positive
value.");
- return -1;
+ bu_log("Cannot shrink image to 0 factor, factor should be a positive
value.");
+ return -1;
}
widthstep = bif->width*bif->channels;
@@ -113,8 +113,8 @@
ystep = (double) (bif->height-1) / (double) (out_height) - 1.0e-06;
if ((xstep < 1.0 && ystep > 1.0) || (xstep > 1.0 && ystep < 1.0)) {
- bu_log("Operation unsupported. Cannot stretch one dimension while
compressing the other.\n");
- return -1;
+ bu_log("Operation unsupported. Cannot stretch one dimension while
compressing the other.\n");
+ return -1;
}
out_p = out_data =
bu_malloc(out_width*out_height*bif->channels*sizeof(double), "ninterp :
out_data");
@@ -160,8 +160,8 @@
ystep = (double) (bif->height -1) / (double)out_height - 1.0e-6;
if ((xstep < 1.0 && ystep > 1.0) || (xstep > 1.0 && ystep < 1.0)) {
- bu_log("Operation unsupported. Cannot stretch one dimension while
compressing the other.\n");
- return -1;
+ bu_log("Operation unsupported. Cannot stretch one dimension while
compressing the other.\n");
+ return -1;
}
out_p = out_data =
bu_malloc(out_width*out_height*bif->channels*sizeof(double), "binterp : out
data");
Modified: brlcad/trunk/src/libicv/pix.c
===================================================================
--- brlcad/trunk/src/libicv/pix.c 2013-08-13 13:25:24 UTC (rev 56783)
+++ brlcad/trunk/src/libicv/pix.c 2013-08-13 13:29:03 UTC (rev 56784)
@@ -54,14 +54,14 @@
bu_log("pix_write : Color Space conflict");
return -1;
}
-
+
if(filename==NULL)
fd = fileno(stdout);
else if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, WRMODE))
< 0) {
bu_log("pix_write: Cannot open file for saving\n");
return -1;
}
-
+
data = data2uchar(bif);
size = (size_t) bif->width*bif->height*3;
ret = write(fd, data, size);
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