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

A VapourSynth plugin.

Implementations

Returns a map containing a list of the filters exported by a plugin.

Keys: the filter names;

Values: the filter name followed by its argument string, separated by a semicolon.

Returns the absolute path to the plugin, including the plugin’s file name. This is the real location of the plugin, i.e. there are no symbolic links in the path.

Path elements are always delimited with forward slashes.

Invokes a filter.

invoke() makes sure the filter has no compat input nodes, checks that the args passed to the filter are consistent with the argument list registered by the plugin that contains the filter, creates the filter, and checks that the filter doesn’t return any compat nodes. If everything goes smoothly, the filter will be ready to generate frames after invoke() returns.

Returns a map containing the filter’s return value(s). Use Map::error() to check if the filter was invoked successfully.

Most filters will either add an error to the map, or one or more clips with the key clip. The exception to this are functions, for example LoadPlugin, which doesn’t return any clips for obvious reasons.

Registers a filter function to be exported by a non-readonly plugin.

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

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

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

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.