Revision: 77091
          http://sourceforge.net/p/brlcad/code/77091
Author:   brlcad
Date:     2020-09-09 13:18:21 +0000 (Wed, 09 Sep 2020)
Log Message:
-----------
fix ws indent

Modified Paths:
--------------
    brlcad/trunk/src/libgcv/plugins/vol/png_read.c

Modified: brlcad/trunk/src/libgcv/plugins/vol/png_read.c
===================================================================
--- brlcad/trunk/src/libgcv/plugins/vol/png_read.c      2020-09-09 03:55:11 UTC 
(rev 77090)
+++ brlcad/trunk/src/libgcv/plugins/vol/png_read.c      2020-09-09 13:18:21 UTC 
(rev 77091)
@@ -30,67 +30,70 @@
 #include "wdb.h"
 
 struct png_read_opts{
-  int coloured;
+    int coloured;
 };
 
-static void create_opts(struct bu_opt_desc **opts_desc,
-                        void **dest_options_data)
+
+static void create_opts(struct bu_opt_desc **opts_desc, void 
**dest_options_data)
 {
-  struct png_read_opts *opts_data;
+    struct png_read_opts *opts_data;
 
-  bu_log("VOL_PLUGIN: entered create_opts()\n");
+    bu_log("VOL_PLUGIN: entered create_opts()\n");
 
-  BU_ALLOC(opts_data, struct png_read_opts);
-  *dest_options_data = opts_data;
-  *opts_desc = (struct bu_opt_desc *)bu_calloc(3, sizeof(struct bu_opt_desc), 
"options_desc");
+    BU_ALLOC(opts_data, struct png_read_opts);
+    *dest_options_data = opts_data;
+    *opts_desc = (struct bu_opt_desc *)bu_calloc(3, sizeof(struct 
bu_opt_desc), "options_desc");
 
-  opts_data->coloured = 0;
+    opts_data->coloured = 0;
 
-  BU_OPT((*opts_desc)[0], "c", "colored", NULL, bu_opt_bool,
-        &opts_data->coloured, "Check if it is coloured");
-  BU_OPT_NULL((*opts_desc)[1]);
+    BU_OPT((*opts_desc)[0], "c", "colored", NULL, bu_opt_bool,
+          &opts_data->coloured, "Check if it is coloured");
+    BU_OPT_NULL((*opts_desc)[1]);
 }
 
+
 static void free_opts(void *options_data)
 {
-  bu_log("VOL_PLUGIN: entered free_opts()\n");
+    bu_log("VOL_PLUGIN: entered free_opts()\n");
 
-  bu_free(options_data, "options_data");
+    bu_free(options_data, "options_data");
 }
 
-static int png_read(struct gcv_context *context,
-                    const struct gcv_opts *UNUSED(gcv_options),
-                    const void *options_data, const char *source_path)
+
+static int png_read(struct gcv_context *context, const struct gcv_opts 
*UNUSED(gcv_options), const void *options_data, const char *source_path)
 {
-  const point_t center = {0.0, 0.0, 0.0};
-  const fastf_t radius = 1.0;
+    const point_t center = {0.0, 0.0, 0.0};
+    const fastf_t radius = 1.0;
 
-  const struct png_read_opts *opts = (struct png_read_opts *)options_data;
+    const struct png_read_opts *opts = (struct png_read_opts *)options_data;
 
-  bu_log("importing from PNG file '%s'\n", source_path);
-  bu_log("image is coloured: %s\n", opts->coloured ? "True" : "False");
+    bu_log("importing from PNG file '%s'\n", source_path);
+    bu_log("image is coloured: %s\n", opts->coloured ? "True" : "False");
 
-  mk_id(context->dbip->dbi_wdbp, "GCV plugin test");
+    mk_id(context->dbip->dbi_wdbp, "GCV plugin test");
 
-  mk_sph(context->dbip->dbi_wdbp, "test", center, radius);
+    mk_sph(context->dbip->dbi_wdbp, "test", center, radius);
 
-  return 1;
+    return 1;
 }
 
+
 HIDDEN int png_can_read(const char * data)
 {
-  bu_log("VOL_PLUGIN: entered png_can_read, data=%p\n", (void *)data);
+    bu_log("VOL_PLUGIN: entered png_can_read, data=%p\n", (void *)data);
 
-  if (!data)
-    return 0;
-  return 1;
+    if (!data)
+       return 0;
+    return 1;
 }
 
+
 const struct gcv_filter gcv_conv_png_read = {
-  "PNG Reader", GCV_FILTER_READ, BU_MIME_MODEL_UNKNOWN, png_can_read,
-  create_opts, free_opts, png_read
+    "PNG Reader", GCV_FILTER_READ, BU_MIME_MODEL_UNKNOWN, png_can_read,
+    create_opts, free_opts, png_read
 };
 
+
 static const struct gcv_filter * const filters[] = {&gcv_conv_png_read, NULL};
 
 const struct gcv_plugin gcv_plugin_info_s = {filters};
@@ -97,9 +100,10 @@
 
 COMPILER_DLLEXPORT const struct gcv_plugin *gcv_plugin_info()
 {
-  return &gcv_plugin_info_s;
+    return &gcv_plugin_info_s;
 }
 
+
 /*
  * Local Variables:
  * tab-width: 8

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to