From 581a1b2cf040ca346a825ef5bfed6465ab3ea8d5 Mon Sep 17 00:00:00 2001 From: Tomas Farago Date: Fri, 13 Mar 2020 10:53:45 +0100 Subject: Increase property limits to 32768 --- src/ufo-backproject-task.c | 6 +++--- src/ufo-buffer-task.c | 4 ++-- src/ufo-fft-task.c | 6 +++--- src/ufo-forwardproject-task.c | 2 +- src/ufo-general-backproject-task.c | 2 +- src/ufo-lamino-backproject-task.c | 2 +- src/ufo-metaballs-task.c | 4 ++-- src/ufo-pad-task.c | 8 ++++---- src/ufo-polar-coordinates-task.c | 4 ++-- src/ufo-volume-render-task.c | 4 ++-- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/ufo-backproject-task.c b/src/ufo-backproject-task.c index 11daaf6..74c3ab5 100644 --- a/src/ufo-backproject-task.c +++ b/src/ufo-backproject-task.c @@ -442,21 +442,21 @@ ufo_backproject_task_class_init (UfoBackprojectTaskClass *klass) g_param_spec_uint ("num-projections", "Number of projections between 0 and 180 degrees", "Number of projections between 0 and 180 degrees", - 0, +8192, 0, + 0, +32768, 0, G_PARAM_READWRITE); properties[PROP_OFFSET] = g_param_spec_uint ("offset", "Offset to the first projection", "Offset to the first projection", - 0, +8192, 0, + 0, +32768, 0, G_PARAM_READWRITE); properties[PROP_AXIS_POSITION] = g_param_spec_double ("axis-pos", "Position of rotation axis", "Position of rotation axis", - -1.0, +8192.0, 0.0, + -1.0, +32768.0, 0.0, G_PARAM_READWRITE); properties[PROP_ANGLE_STEP] = diff --git a/src/ufo-buffer-task.c b/src/ufo-buffer-task.c index 199098d..5a8801b 100644 --- a/src/ufo-buffer-task.c +++ b/src/ufo-buffer-task.c @@ -349,14 +349,14 @@ ufo_buffer_task_class_init (UfoBufferTaskClass *klass) g_param_spec_uint ("number", "Number of pre-allocated \"pages\"", "Number of pre-allocated \"pages\"", - 1, 4096, 4, + 1, 32768, 4, G_PARAM_READWRITE); properties[PROP_DUP_COUNT] = g_param_spec_uint ("dup-count", "Number of times each image should be duplicated", "Number of times each image should be duplicated", - 1, 4096, 1, + 1, 32768, 1, G_PARAM_READWRITE); properties[PROP_LOOP] = diff --git a/src/ufo-fft-task.c b/src/ufo-fft-task.c index f1e3978..b8356a4 100644 --- a/src/ufo-fft-task.c +++ b/src/ufo-fft-task.c @@ -341,21 +341,21 @@ ufo_fft_task_class_init (UfoFftTaskClass *klass) g_param_spec_uint("size-x", "Size of the FFT transform in x-direction", "Size of the FFT transform in x-direction", - 1, 8192, 1, + 1, 32768, 1, G_PARAM_READWRITE); properties[PROP_SIZE_Y] = g_param_spec_uint("size-y", "Size of the FFT transform in y-direction", "Size of the FFT transform in y-direction", - 1, 8192, 1, + 1, 32768, 1, G_PARAM_READWRITE); properties[PROP_SIZE_Z] = g_param_spec_uint("size-z", "Size of the FFT transform in z-direction", "Size of the FFT transform in z-direction", - 1, 8192, 1, + 1, 32768, 1, G_PARAM_READWRITE); for (guint i = PROP_0 + 1; i < N_PROPERTIES; i++) diff --git a/src/ufo-forwardproject-task.c b/src/ufo-forwardproject-task.c index c5c60cf..6842810 100644 --- a/src/ufo-forwardproject-task.c +++ b/src/ufo-forwardproject-task.c @@ -250,7 +250,7 @@ ufo_forwardproject_task_class_init (UfoForwardprojectTaskClass *klass) g_param_spec_uint("number", "Number of projections", "Number of projections", - 1, 8192, 256, + 1, 32768, 256, G_PARAM_READWRITE); for (guint i = PROP_0 + 1; i < N_PROPERTIES; i++) diff --git a/src/ufo-general-backproject-task.c b/src/ufo-general-backproject-task.c index a801bce..5ff1c35 100644 --- a/src/ufo-general-backproject-task.c +++ b/src/ufo-general-backproject-task.c @@ -2265,7 +2265,7 @@ ufo_general_backproject_task_class_init (UfoGeneralBackprojectTaskClass *klass) g_param_spec_uint ("num-projections", "Number of projections", "Number of projections", - 0, 16384, 0, + 0, 32768, 0, G_PARAM_READWRITE); for (guint i = PROP_0 + 1; i < N_PROPERTIES; i++) diff --git a/src/ufo-lamino-backproject-task.c b/src/ufo-lamino-backproject-task.c index c189c52..53d15a6 100644 --- a/src/ufo-lamino-backproject-task.c +++ b/src/ufo-lamino-backproject-task.c @@ -743,7 +743,7 @@ ufo_lamino_backproject_task_class_init (UfoLaminoBackprojectTaskClass *klass) g_param_spec_uint ("num-projections", "Number of projections", "Number of projections", - 0, 16384, 0, + 0, 32768, 0, G_PARAM_READWRITE); properties[PROP_TOMO_ANGLE] = diff --git a/src/ufo-metaballs-task.c b/src/ufo-metaballs-task.c index 1be5c16..6d4159d 100644 --- a/src/ufo-metaballs-task.c +++ b/src/ufo-metaballs-task.c @@ -289,14 +289,14 @@ ufo_metaballs_task_class_init (UfoMetaballsTaskClass *klass) g_param_spec_uint("width", "Width of the output", "Width of the output", - 1, 8192, 512, + 1, 32768, 512, G_PARAM_READWRITE); properties[PROP_HEIGHT] = g_param_spec_uint("height", "Height of the output", "Height of the output", - 1, 8192, 512, + 1, 32768, 512, G_PARAM_READWRITE); properties[PROP_NUM_BALLS] = diff --git a/src/ufo-pad-task.c b/src/ufo-pad-task.c index 95c2e20..187e1e1 100644 --- a/src/ufo-pad-task.c +++ b/src/ufo-pad-task.c @@ -315,28 +315,28 @@ ufo_pad_task_class_init (UfoPadTaskClass *klass) g_param_spec_uint ("width", "Padded width", "Padded width", - 0, +8192, 0, + 0, +32768, 0, G_PARAM_READWRITE); properties[PROP_HEIGHT] = g_param_spec_uint ("height", "Padded height", "Padded height", - 0, +8192, 0, + 0, +32768, 0, G_PARAM_READWRITE); properties[PROP_X] = g_param_spec_int ("x", "X start index", "X index for input's 0th column", - -8192, +8192, 0, + -32768, +32768, 0, G_PARAM_READWRITE); properties[PROP_Y] = g_param_spec_int ("y", "Y start index", "Y index for input's 0th row", - -8192, +8192, 0, + -32768, +32768, 0, G_PARAM_READWRITE); properties[PROP_ADDRESSING_MODE] = diff --git a/src/ufo-polar-coordinates-task.c b/src/ufo-polar-coordinates-task.c index 30fa98e..28aabe1 100644 --- a/src/ufo-polar-coordinates-task.c +++ b/src/ufo-polar-coordinates-task.c @@ -320,14 +320,14 @@ ufo_polar_coordinates_task_class_init (UfoPolarCoordinatesTaskClass *klass) g_param_spec_uint ("width", "Final width", "Final width after transformation", - 0, 8192, 0, + 0, 32768, 0, G_PARAM_READWRITE); properties[PROP_HEIGHT] = g_param_spec_uint ("height", "Final height", "Final height after transformation", - 0, 8192, 0, + 0, 32768, 0, G_PARAM_READWRITE); properties[PROP_DIRECTION] = diff --git a/src/ufo-volume-render-task.c b/src/ufo-volume-render-task.c index 5326d71..a0698bb 100644 --- a/src/ufo-volume-render-task.c +++ b/src/ufo-volume-render-task.c @@ -392,14 +392,14 @@ ufo_volume_render_task_class_init (UfoVolumeRenderTaskClass *klass) g_param_spec_uint ("width", "Width", "Width of the rendered image", - 1, 8192, 512, + 1, 32768, 512, G_PARAM_READWRITE); properties[PROP_HEIGHT] = g_param_spec_uint ("height", "Height", "Height of the rendered image", - 1, 8192, 512, + 1, 32768, 512, G_PARAM_READWRITE); properties[PROP_NUM_GENERATE] = -- cgit v1.2.1