resize-port
type: Specification
type: Feature
name: LV2 Resize Port Extension
comment: An extension that allows LV2 plugins to request a resize of an output port. Any host which supports this extension must pass an LV2_Feature to the plugin's instantiate method with URI http://lv2plug.in/ns/ext/resize-port and a pointer to a struct { void* host_handle; void (*resize_port)(void* host_handle, uint32_t index); } where the plugin may call resize_port with the given host_handle from any context to demand the resize of an output port buffer. The plugin MUST call this function from the context of the given port. This function MAY return NULL at any time, plugins MUST gracefully handle this situation.

as large as
type: Property
domain: Port
range: Symbol
comment: Indicates that a port requires at least as much buffer space as the port with the given symbol on the same plugin instance. This may be used for any ports, but is generally most useful to indicate an output port must be at least as large as some input port (because it will copy from it). If a port is asLargeAs several ports, it is asLargeAs the largest such port (not the sum of those ports' sizes). The host guarantees that whenever an ObjectPort's run method is called, any output O that is obj:asLargeAs an input I is connected to a buffer large enough to copy I, or NULL if the port is lv2:connectionOptional.

minimum size
type: Property
domain: Port
range: Symbol
comment: Indicates that a port requires a buffer at least this large, in bytes. Any host that supports the resize-port feature MUST connect any port with a minimumSize specified to a buffer at least as large as the value given for this property. Any host, especially those that do NOT support dynamic port resizing, SHOULD do so or reduced functionality may result.