Revision: 56318
http://sourceforge.net/p/brlcad/code/56318
Author: brlcad
Date: 2013-07-30 05:20:10 +0000 (Tue, 30 Jul 2013)
Log Message:
-----------
while these types should not be undocumented to begin with (code complete
failure), I do not see the point of ICV_IMAGE_AUTO_NO_PIX or passing a type.
we can enforce a type using a string convention (e.g. png:mypngfile.out) and
basically always be 'inferred'. nix the ICV_IMAGE_AUTO_NO_PIX type for now
until a utility can be demonstrated. icv_image_save() should never do nothing.
Modified Paths:
--------------
brlcad/trunk/include/icv.h
brlcad/trunk/src/libicv/fileformat.c
brlcad/trunk/src/rt/do.c
Modified: brlcad/trunk/include/icv.h
===================================================================
--- brlcad/trunk/include/icv.h 2013-07-30 05:04:50 UTC (rev 56317)
+++ brlcad/trunk/include/icv.h 2013-07-30 05:20:10 UTC (rev 56318)
@@ -63,7 +63,6 @@
typedef enum {
ICV_IMAGE_AUTO,
- ICV_IMAGE_AUTO_NO_PIX,
ICV_IMAGE_PIX,
ICV_IMAGE_BW,
ICV_IMAGE_ALIAS,
Modified: brlcad/trunk/src/libicv/fileformat.c
===================================================================
--- brlcad/trunk/src/libicv/fileformat.c 2013-07-30 05:04:50 UTC (rev
56317)
+++ brlcad/trunk/src/libicv/fileformat.c 2013-07-30 05:20:10 UTC (rev
56318)
@@ -443,7 +443,7 @@
{
char buf[BUFSIZ] = {0};
- if (format == ICV_IMAGE_AUTO || format == ICV_IMAGE_AUTO_NO_PIX) {
+ if (format == ICV_IMAGE_AUTO) {
format = icv_guess_file_format(filename, buf);
}
Modified: brlcad/trunk/src/rt/do.c
===================================================================
--- brlcad/trunk/src/rt/do.c 2013-07-30 05:04:50 UTC (rev 56317)
+++ brlcad/trunk/src/rt/do.c 2013-07-30 05:20:10 UTC (rev 56318)
@@ -920,7 +920,7 @@
wallclock, ((double)(rtip->rti_nrays))/wallclock);
}
if (bif != NULL) {
- icv_image_save(bif, framename, ICV_IMAGE_AUTO_NO_PIX);
+ icv_image_save(bif, framename, ICV_IMAGE_AUTO);
icv_image_free(bif);
bif = NULL;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits