summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-02-28 15:07:18 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commit3214c51acb3346815ccd5e33f4114f232879e1a8 (patch)
treef68e21ac422e3442b98b507f436561a3ea8c99aa /parser.c
parent02e5b6af7df001cc105e874ade35b47d560b1f83 (diff)
downloadpucket-3214c51acb3346815ccd5e33f4114f232879e1a8.tar.gz
pucket-3214c51acb3346815ccd5e33f4114f232879e1a8.tar.bz2
pucket-3214c51acb3346815ccd5e33f4114f232879e1a8.zip
Drop temporal filter/passes
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/parser.c b/parser.c
index 06ce22c..b61d732 100644
--- a/parser.c
+++ b/parser.c
@@ -18,7 +18,6 @@
#include "parser.h"
#include "interpolation.h"
-#include "filters.h"
#include <errno.h>
static int flam3_conversion_failed;
@@ -389,53 +388,6 @@ int parse_flame_element(xmlNode *flame_node, flam3_genome *loc_current_cp,
cp->rotate = flam3_atof(att_str);
} else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"zoom")) {
cp->zoom = flam3_atof(att_str);
- } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"filter")) {
- cp->spatial_filter_radius = flam3_atof(att_str);
- } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"filter_shape")) {
- if (!strcmp("gaussian", att_str))
- cp->spatial_filter_select = flam3_gaussian_kernel;
- else if (!strcmp("hermite", att_str))
- cp->spatial_filter_select = flam3_hermite_kernel;
- else if (!strcmp("box", att_str))
- cp->spatial_filter_select = flam3_box_kernel;
- else if (!strcmp("triangle", att_str))
- cp->spatial_filter_select = flam3_triangle_kernel;
- else if (!strcmp("bell", att_str))
- cp->spatial_filter_select = flam3_bell_kernel;
- else if (!strcmp("bspline", att_str))
- cp->spatial_filter_select = flam3_b_spline_kernel;
- else if (!strcmp("mitchell", att_str))
- cp->spatial_filter_select = flam3_mitchell_kernel;
- else if (!strcmp("blackman", att_str))
- cp->spatial_filter_select = flam3_blackman_kernel;
- else if (!strcmp("catrom", att_str))
- cp->spatial_filter_select = flam3_catrom_kernel;
- else if (!strcmp("hanning", att_str))
- cp->spatial_filter_select = flam3_hanning_kernel;
- else if (!strcmp("hamming", att_str))
- cp->spatial_filter_select = flam3_hamming_kernel;
- else if (!strcmp("lanczos3", att_str))
- cp->spatial_filter_select = flam3_lanczos3_kernel;
- else if (!strcmp("lanczos2", att_str))
- cp->spatial_filter_select = flam3_lanczos2_kernel;
- else if (!strcmp("quadratic", att_str))
- cp->spatial_filter_select = flam3_quadratic_kernel;
- else
- fprintf(stderr, "warning: unrecognized kernel shape %s. Using gaussian.\n", att_str);
-
- } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"temporal_filter_type")) {
- if (!strcmp("box", att_str))
- cp->temporal_filter_type = flam3_temporal_box;
- else if (!strcmp("gaussian", att_str))
- cp->temporal_filter_type = flam3_temporal_gaussian;
- else if (!strcmp("exp",att_str))
- cp->temporal_filter_type = flam3_temporal_exp;
- else
- fprintf(stderr, "warning: unrecognized temporal filter %s. Using box.\n",att_str);
- } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"temporal_filter_width")) {
- cp->temporal_filter_width = flam3_atof(att_str);
- } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"temporal_filter_exp")) {
- cp->temporal_filter_exp = flam3_atof(att_str);
} else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"palette_mode")) {
if (!strcmp("step", att_str))
cp->palette_mode = PALETTE_MODE_STEP;
@@ -445,10 +397,6 @@ int parse_flame_element(xmlNode *flame_node, flam3_genome *loc_current_cp,
fprintf(stderr,"warning: unrecognized palette mode %s. Using step.\n",att_str);
} else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"quality")) {
cp->sample_density = flam3_atof(att_str);
- } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"passes")) {
- cp->nbatches = flam3_atoi(att_str);
- } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"temporal_samples")) {
- cp->ntemporal_samples = flam3_atoi(att_str);
} else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"background")) {
if (sscanf(att_str, "%lf %lf %lf%1s", &cp->background[0], &cp->background[1], &cp->background[2], tmps) != 3) {
fprintf(stderr,"error: invalid background attribute '%s'\n",att_str);