Ufo.Task

g GObject.GInterface GObject.GInterface Ufo.Task Ufo.Task GObject.GInterface->Ufo.Task

Implementations:

Ufo.CopyTask, Ufo.DummyTask, Ufo.InputTask, Ufo.OutputTask

Methods

class

error_quark ()

generate (output, requisition)

get_mode ()

get_num_dimensions (input)

get_num_inputs ()

get_requisition (inputs, requisition)

inputs_stopped_callback ()

process (inputs, output, requisition)

set_json_object_property (prop_name, object)

setup (resources)

uses_cpu ()

uses_gpu ()

Virtual Methods

do_generate (output, requisition)

do_get_mode ()

do_get_num_dimensions (input)

do_get_num_inputs ()

do_get_requisition (inputs, requisition)

do_process (inputs, output, requisition)

do_set_json_object_property (prop_name, object)

do_setup (resources)

Properties

None

Signals

Name

Short Description

generated

inputs-stopped

processed

Fields

None

Class Details

class Ufo.Task
Bases:

GObject.GInterface

Structure:

Ufo.TaskIface

classmethod error_quark()
Return type:

int

generate(output, requisition)
Parameters:
Return type:

bool

get_mode()
Return type:

Ufo.TaskMode

get_num_dimensions(input)
Parameters:

input (int) –

Return type:

int

get_num_inputs()
Return type:

int

get_requisition(inputs, requisition)
Parameters:
Raises:

GLib.Error

inputs_stopped_callback()
process(inputs, output, requisition)
Parameters:
Return type:

bool

set_json_object_property(prop_name, object)
Parameters:
setup(resources)
Parameters:

resources (Ufo.Resources) –

Raises:

GLib.Error

uses_cpu()
Return type:

bool

uses_gpu()
Return type:

bool

do_generate(output, requisition) virtual
Parameters:
Return type:

bool

do_get_mode() virtual
Return type:

Ufo.TaskMode

do_get_num_dimensions(input) virtual
Parameters:

input (int) –

Return type:

int

do_get_num_inputs() virtual
Return type:

int

do_get_requisition(inputs, requisition) virtual
Parameters:
do_process(inputs, output, requisition) virtual
Parameters:
Return type:

bool

do_set_json_object_property(prop_name, object) virtual
Parameters:
do_setup(resources) virtual
Parameters:

resources (Ufo.Resources) –

Signal Details

Ufo.Task.signals.generated(task)
Signal Name:

generated

Flags:

RUN_FIRST, NO_RECURSE

Parameters:

task (Ufo.Task) – The object which received the signal

Ufo.Task.signals.inputs_stopped(task)
Signal Name:

inputs-stopped

Flags:

RUN_FIRST, NO_RECURSE

Parameters:

task (Ufo.Task) – The object which received the signal

Ufo.Task.signals.processed(task)
Signal Name:

processed

Flags:

RUN_FIRST, NO_RECURSE

Parameters:

task (Ufo.Task) – The object which received the signal