frei0r--main--1.0--patch-2

[email protected]
Newsgroups gmane.comp.video.gephex.devel
Message-ID <[email protected]>
Archive: [email protected]
New revision: frei0r--main--1.0--patch-2

--
Revision: frei0r--main--1.0--patch-2
Archive: [email protected]
Creator: GePhex <[email protected]>
Date: Tue Nov  9 15:14:19 CET 2004
Standard-date: 2004-11-09 14:14:19 GMT
Modified-files: frei0r.h
New-patches: [email protected]/frei0r--georg--1.0--patch-2
    [email protected]/frei0r--georg--1.0--patch-3
    [email protected]/frei0r--main--1.0--patch-2
Summary: F0R_PARAM_BOOL
Keywords: 

Patches applied:

 * [email protected]/frei0r--georg--1.0--patch-2
   Small doc changes: [0, 0.5[ -> false, [0.5, 1] -> true

 * [email protected]/frei0r--georg--1.0--patch-3
   Add F0R_PARAM_BOOL

* added files

    {arch}/frei0r/frei0r--georg/frei0r--georg--1.0/[email protected]/patch-log/patch-2
    {arch}/frei0r/frei0r--georg/frei0r--georg--1.0/[email protected]/patch-log/patch-3
    {arch}/frei0r/frei0r--main/frei0r--main--1.0/[email protected]/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
-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.