pub struct Node<'core> { /* private fields */ }
Expand description

A reference to a node in the constructed filter graph.

Implementations

Returns the video info associated with this Node.

Generates a frame directly.

The 'error lifetime is unbounded because this function always returns owned data.

Panics

Panics is n is greater than i32::max_value().

Requests the generation of a frame. When the frame is ready, a user-provided function is called.

If multiple frames were requested, they can be returned in any order.

The callback arguments are:

  • the generated frame or an error message if the generation failed,
  • the frame number (equal to n),
  • the node that generated the frame (the same as self).

If the callback panics, the process is aborted.

Panics

Panics is n is greater than i32::max_value().

Requests a frame from a node and returns immediately.

This is only used in filters’ “get frame” functions.

A filter usually calls this function from get_frame_initial(). The requested frame can then be retrieved using get_frame_filter() from within filter’s get_frame() function.

It is safe to request a frame more than once. An unimportant consequence of requesting a frame more than once is that the filter’s get_frame() function may be called more than once for the same frame.

It is best to request frames in ascending order, i.e. n, n+1, n+2, etc.

Panics

Panics is n is greater than i32::max_value().

Retrieves a frame that was previously requested with request_frame_filter().

A filter usually calls this function from get_frame(). It is safe to retrieve a frame more than once.

Panics

Panics is n is greater than i32::max_value().

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Returns the VapourSynth type name for this argument type.

Retrieves the value from the map.

Retrieves an iterator over the values from the map.

Sets the property value in the map.

Appends the value to the map.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

The underlying argument type for this parameter type.

Returns whether this parameter is an array.

Returns whether this parameter is optional.

Retrieves this parameter from the given map.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.