O
Sections
Every group

GeneratorReference

Media a generator produces, such as colour bars.

Symbols in this group are spelled otio_generator_reference_…. An SDK drops that prefix, which is why the name beside each call is the short one.

generator_kind

getter

Returns which generator a generator reference names, such as `"SMPTEBars"`.

OtioStatus otio_generator_reference_kind(
    const OtioDocument *source,
    OtioNode node_handle,
    OtioBuffer *out_kind,
    OtioBuffer *out_error);
ParameterTypeRole
source ?documentthe document, borrowed
node_handlenodewhat the call is about
out_kindtextwritten through, not read
out_errortextwhy the call failed, or null to skip it

new

constructor

Creates a media reference for generated media, such as colour bars.

OtioStatus otio_generator_reference_new(
    OtioDocument *target,
    const char *name,
    const char *generator_kind,
    OtioNode *out_node,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
name ?textinput
generator_kind ?textinput
out_nodenodewritten through, not read
out_errortextwhy the call failed, or null to skip it

set_generator_kind

setter

Sets which generator a generator reference names.

OtioStatus otio_generator_reference_set_kind(
    OtioDocument *target,
    OtioNode node_handle,
    const char *kind,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
node_handlenodewhat the call is about
kindtextinput
out_errortextwhy the call failed, or null to skip it