Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Ufo.buffer_param_spec(name, nick, blurb, default_value, flags)¶
- Parameters:
name (
str
) – canonical name of the property specifiednick (
str
) – nick name for the property specifiedblurb (
str
) – description of the property specifieddefault_value (
Ufo.Buffer
) – default value for the property specifiedflags (
GObject.ParamFlags
) – flags for the property specified
- Returns:
a newly created parameter specification
see g_param_spec_internal() for details on property names.
- Return type:
Creates a new
Ufo.BufferParamSpec
instance specifying a #UFO_TYPE_BUFFER property.
- Ufo.copyable_copy(origin, copy)¶
- Parameters:
origin (
object
orNone
) – A source object that implementsUfo.Copyable
interface.copy (
object
orNone
) – A destination object that implementsUfo.Copyable
interface.
- Returns:
A copy of the origin object.
- Return type:
- Ufo.op_POSC(arg, out, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer
) – AUfo.Buffer
out (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the POSC operation
- Return type:
- Ufo.op_add(arg1, arg2, out, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer
) – AUfo.Buffer
arg2 (
Ufo.Buffer
) – AUfo.Buffer
out (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the add operation
- Return type:
out = arg1 + arg2
- Ufo.op_add2(arg1, arg2, modifier, out, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer
) – AUfo.Buffer
arg2 (
Ufo.Buffer
) – AUfo.Buffer
modifier (
float
) – Scalar valueout (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the add operation
- Return type:
out = arg1 + modifier * arg2
- Ufo.op_deduction(arg1, arg2, out, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer
) – AUfo.Buffer
arg2 (
Ufo.Buffer
) – AUfo.Buffer
out (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the add operation
- Return type:
out = arg1 - arg2
- Ufo.op_deduction2(arg1, arg2, modifier, out, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer
) – AUfo.Buffer
arg2 (
Ufo.Buffer
) – AUfo.Buffer
modifier (
float
) – Scalar valueout (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the add operation
- Return type:
out = arg1 - modifier * arg2
- Ufo.op_euclidean_distance(arg1, arg2, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer
) – AUfo.Buffer
arg2 (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Euclidean distance between arg1 and arg2.
- Return type:
- Ufo.op_gradient_descent(arg, out, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer
) – AUfo.Buffer
out (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the POSC operation
- Return type:
- Ufo.op_gradient_directions(arg, magnitudes, out, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer
) – AUfo.Buffer
magnitudes (
Ufo.Buffer
) – AUfo.Buffer
out (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the add operation
- Return type:
Compute magnitude of gradients
- Ufo.op_gradient_magnitudes(arg, out, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer
) – AUfo.Buffer
out (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the add operation
- Return type:
Compute magnitude of gradients
- Ufo.op_inv(arg, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the invert operation
- Return type:
Invert arg.
- Ufo.op_l1_norm(arg, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
L1 norm.
- Return type:
- Ufo.op_l2_norm(arg, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
L2 norm.
- Return type:
- Ufo.op_mul(arg1, arg2, out, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer
) – AUfo.Buffer
arg2 (
Ufo.Buffer
) – AUfo.Buffer
out (
Ufo.Buffer
) – AUfo.Buffer
resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the mul operation
- Return type:
out = arg1 * arg2
- Ufo.op_mul_rows(arg1, arg2, out, offset, n, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer
) – AUfo.Buffer
arg2 (
Ufo.Buffer
) – AUfo.Buffer
out (
Ufo.Buffer
) – AUfo.Buffer
offset (
int
) – Offsetn (
int
) – n ?resources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the add operation
- Return type:
out = arg1 - modifier * arg2
- Ufo.op_set(arg, value, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer
) – AUfo.Buffer
value (
float
) – Value to fill arg withresources (
Ufo.Resources
) –Ufo.Resources
object
- Returns:
Event of the set operation
- Return type:
Fill a buffer with a value using OpenCL.
- Ufo.plugin_get_all_plugin_names(manager, filename_regex, filename_pattern)¶
- Parameters:
manager (
Ufo.PluginManager
) – AUfo.PluginManager
filename_regex (
GLib.Regex
) – Regex for filenamesfilename_pattern (
str
) – Pattern according with the files will be searched
- Returns:
List of strings with filter names
- Return type:
[
str
]
Return a list with potential plugin names that match shared objects in all search paths.