[gephex-devel] frei0r--main--1.0--patch-2
gephex at sonnenland.kexbox.org
gephex at sonnenland.kexbox.org
Tue Nov 9 15:14:21 CET 2004
Archive: gephex at gephex.org--2004
New revision: frei0r--main--1.0--patch-2
--
Revision: frei0r--main--1.0--patch-2
Archive: gephex at gephex.org--2004
Creator: GePhex <gephex at gephex.org>
Date: Tue Nov 9 15:14:19 CET 2004
Standard-date: 2004-11-09 14:14:19 GMT
Modified-files: frei0r.h
New-patches: georg at gephex.org--2004-home/frei0r--georg--1.0--patch-2
georg at gephex.org--2004-home/frei0r--georg--1.0--patch-3
gephex at gephex.org--2004/frei0r--main--1.0--patch-2
Summary: F0R_PARAM_BOOL
Keywords:
Patches applied:
* georg at gephex.org--2004-home/frei0r--georg--1.0--patch-2
Small doc changes: [0, 0.5[ -> false, [0.5, 1] -> true
* georg at gephex.org--2004-home/frei0r--georg--1.0--patch-3
Add F0R_PARAM_BOOL
* added files
{arch}/frei0r/frei0r--georg/frei0r--georg--1.0/georg at gephex.org--2004-home/patch-log/patch-2
{arch}/frei0r/frei0r--georg/frei0r--georg--1.0/georg at gephex.org--2004-home/patch-log/patch-3
{arch}/frei0r/frei0r--main/frei0r--main--1.0/gephex at gephex.org--2004/patch-log/patch-2
* modified files
--- orig/frei0r.h
+++ mod/frei0r.h
@@ -94,22 +94,33 @@
//---------------------------------------------------------------------------
/**
+ * Parameter type for boolean values
+ */
+#define F0R_PARAM_BOOL 0
+
+/**
* Parameter type for doubles
*/
-#define F0R_PARAM_DOUBLE 0
+#define F0R_PARAM_DOUBLE 1
+
/**
* Parameter type for color
*/
-#define F0R_PARAM_COLOR 1
+#define F0R_PARAM_COLOR 2
/**
* Parameter type for position
*/
-#define F0R_PARAM_POSITION 2
+#define F0R_PARAM_POSITION 3
+
+
+/**
+ * The boolean type. The allowed range of values is [0, 1].
+ * [0, 0.5[ is mapped to false and [0.5, 1] is mapped to true.
+ */
+typedef double f0r_param_bool;
/**
* The double type. The allowed range of values is [0, 1].
- * For boolean values, [0, 0.5] is mapped to false and
- * ]0.5, 1] is mapped to false.
*/
typedef double f0r_param_double;
@@ -138,8 +149,6 @@
/**
* Similar to f0r_plugin_info_t, this structure
* is filled by the plugin for every parameter.
- * If the type is F0R_PARAM_DOUBLE and the name ends with a '?',
- * the plugin interprets this parameter as a boolean flag.
*/
typedef struct f0r_param_info
{
@@ -163,7 +172,7 @@
/**
* Constructor for effect instances. The plugin returns a pointer to
- * its internal instance structure. Input resolution has to be
+ * its internal instance structure. The resolution has to be
* a multiple of 8 in both dimension.
* \param width The x-resolution of the processed video frames
* \param height The y-resolution of the processed video frames
@@ -222,4 +231,3 @@
//---------------------------------------------------------------------------
#endif
-
More information about the gephex-devel
mailing list