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.BufferParamSpecinstance specifying a #UFO_TYPE_BUFFER property.
- Ufo.copyable_copy(origin, copy)¶
- Parameters:
origin (
objectorNone) – A source object that implementsUfo.Copyableinterface.copy (
objectorNone) – A destination object that implementsUfo.Copyableinterface.
- Returns:
A copy of the origin object.
- Return type:
- Ufo.op_POSC(arg, out, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer) – AUfo.Bufferout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- Returns:
Event of the POSC operation
- Return type:
- Ufo.op_add(arg1, arg2, out, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer) – AUfo.Bufferarg2 (
Ufo.Buffer) – AUfo.Bufferout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- 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.Bufferarg2 (
Ufo.Buffer) – AUfo.Buffermodifier (
float) – Scalar valueout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- 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.Bufferarg2 (
Ufo.Buffer) – AUfo.Bufferout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- 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.Bufferarg2 (
Ufo.Buffer) – AUfo.Buffermodifier (
float) – Scalar valueout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- 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.Bufferarg2 (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- Returns:
Euclidean distance between arg1 and arg2.
- Return type:
- Ufo.op_gradient_descent(arg, out, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer) – AUfo.Bufferout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- Returns:
Event of the POSC operation
- Return type:
- Ufo.op_gradient_directions(arg, magnitudes, out, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer) – AUfo.Buffermagnitudes (
Ufo.Buffer) – AUfo.Bufferout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- 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.Bufferout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- Returns:
Event of the add operation
- Return type:
Compute magnitude of gradients
- Ufo.op_inv(arg, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- Returns:
Event of the invert operation
- Return type:
Invert arg.
- Ufo.op_l1_norm(arg, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- Returns:
L1 norm.
- Return type:
- Ufo.op_l2_norm(arg, resources, command_queue)¶
- Parameters:
arg (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- Returns:
L2 norm.
- Return type:
- Ufo.op_mul(arg1, arg2, out, resources, command_queue)¶
- Parameters:
arg1 (
Ufo.Buffer) – AUfo.Bufferarg2 (
Ufo.Buffer) – AUfo.Bufferout (
Ufo.Buffer) – AUfo.Bufferresources (
Ufo.Resources) –Ufo.Resourcesobject
- 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.Bufferarg2 (
Ufo.Buffer) – AUfo.Bufferout (
Ufo.Buffer) – AUfo.Bufferoffset (
int) – Offsetn (
int) – n ?resources (
Ufo.Resources) –Ufo.Resourcesobject
- 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.Buffervalue (
float) – Value to fill arg withresources (
Ufo.Resources) –Ufo.Resourcesobject
- 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.PluginManagerfilename_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.