Revision: 56254
http://sourceforge.net/p/brlcad/code/56254
Author: mohitdaga
Date: 2013-07-27 10:20:41 +0000 (Sat, 27 Jul 2013)
Log Message:
-----------
Make data2uchar a hidden function. Also added comments for this function.
Modified Paths:
--------------
brlcad/trunk/src/libicv/fileformat.c
Modified: brlcad/trunk/src/libicv/fileformat.c
===================================================================
--- brlcad/trunk/src/libicv/fileformat.c 2013-07-27 08:14:16 UTC (rev
56253)
+++ brlcad/trunk/src/libicv/fileformat.c 2013-07-27 10:20:41 UTC (rev
56254)
@@ -144,8 +144,17 @@
return double_data;
}
+/**
+ * Converts double data of icv_image to unsigned char data.
+ * This function also does gamma correction using the gamma_corr
+ * parameter of the image structure.
+ *
+ * This is mainly used for saving pix, bw and ppm type images.
+ * Gamma correction prevents bad color aliasing.
+ *
+ */
-unsigned char*
+HIDDEN unsigned char*
data2uchar(const icv_image_t* bif)
{
long int size;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits