A piece of media, trimmed to the part an edit uses.
Symbols in this group are spelled otio_clip_…. An SDK drops that prefix, which is why the name beside each call is the short one.
Returns which of a clip's media references is in use.
OtioStatus otio_clip_active_media_reference_key(
const OtioDocument *source,
OtioNode node_handle,
OtioBuffer *out_key,
OtioBuffer *out_error);| Parameter | Type | Role |
|---|---|---|
| source ? | document | the document, borrowed |
| node_handle | node | what the call is about |
| out_key | text | written through, not read |
| out_error | text | why the call failed, or null to skip it |
Returns one of a clip's media references.
A null `key` means the active one. Reports `OTIO_STATUS_NO_VALUE` if the key names nothing, which for the active key is a clip with no media.
OtioStatus otio_clip_media_reference(
const OtioDocument *source,
OtioNode node_handle,
const char *key,
OtioNode *out_reference,
OtioBuffer *out_error);| Parameter | Type | Role |
|---|---|---|
| source ? | document | the document, borrowed |
| node_handle | node | what the call is about |
| key ? | text | input |
| out_reference | node | written through, not read |
| out_error | text | why the call failed, or null to skip it |
Returns how many media references a clip holds.
OtioStatus otio_clip_media_reference_count(
const OtioDocument *source,
OtioNode node_handle,
size_t *out_count,
OtioBuffer *out_error);| Parameter | Type | Role |
|---|---|---|
| source ? | document | the document, borrowed |
| node_handle | node | what the call is about |
| out_count | size | written through, not read |
| out_error | text | why the call failed, or null to skip it |
Returns the key of one of a clip's media references.
The references are ordered by key, so walking the indices walks them in a stable order.
OtioStatus otio_clip_media_reference_key_at(
const OtioDocument *source,
OtioNode node_handle,
size_t index,
OtioBuffer *out_key,
OtioBuffer *out_error);| Parameter | Type | Role |
|---|---|---|
| source ? | document | the document, borrowed |
| node_handle | node | what the call is about |
| index | size | input |
| out_key | text | written through, not read |
| out_error | text | why the call failed, or null to skip it |
Creates a clip. `name` may be null for an unnamed one.
OtioStatus otio_clip_new(
OtioDocument *target,
const char *name,
OtioNode *out_node,
OtioBuffer *out_error);| Parameter | Type | Role |
|---|---|---|
| target | document | the document, changed |
| name ? | text | input |
| out_node | node | written through, not read |
| out_error | text | why the call failed, or null to skip it |
Removes one of a clip's media references, and returns it.
OtioStatus otio_clip_remove_media_reference(
OtioDocument *target,
OtioNode node_handle,
const char *key,
OtioNode *out_reference,
OtioBuffer *out_error);| Parameter | Type | Role |
|---|---|---|
| target | document | the document, changed |
| node_handle | node | what the call is about |
| key | text | input |
| out_reference | node | written through, not read |
| out_error | text | why the call failed, or null to skip it |
Sets which of a clip's media references is in use.
OtioStatus otio_clip_set_active_media_reference_key(
OtioDocument *target,
OtioNode node_handle,
const char *key,
OtioBuffer *out_error);| Parameter | Type | Role |
|---|---|---|
| target | document | the document, changed |
| node_handle | node | what the call is about |
| key | text | input |
| out_error | text | why the call failed, or null to skip it |
Sets one of a clip's media references, adding it if the key is new.
OtioStatus otio_clip_set_media_reference(
OtioDocument *target,
OtioNode node_handle,
const char *key,
OtioNode reference,
OtioBuffer *out_error);| Parameter | Type | Role |
|---|---|---|
| target | document | the document, changed |
| node_handle | node | what the call is about |
| key | text | input |
| reference | node | input |
| out_error | text | why the call failed, or null to skip it |