SpectrumOutputSpec interface

One Spectrum output: a named expression tree plus an optional output pixel format. The name is mandatory and unique within a Spectrum node; it is used as both the OutputExpression name passed to the engine and the per-output rendition name observed downstream.

Signature:

export interface SpectrumOutputSpec

Properties

Property Type Description

expression

SpectrumExpression

The Spectrum expression tree describing this output’s pipeline.

name

string

Unique name for this output (also used as its rendition name).

outputPixelFormat?

PixelFormat

(Optional) Output pixel format. If not specified, defaults to the source pixel format. Useful for ensuring the output is in a format suitable for downstream encoding (e.g. "yuv420p" for H.264/H.265).

outputPrimaries?

ColorPrimaries

(Optional) Desired output colourimetry. The pipeline auto-injects whatever conversions are needed (TransferFunction, GamutMap, range conversion) to reach these from the kernel-natural upstream — for example, a toneMap chain followed by outputTransfer: "bt709" will deliver an SDR BT.709-encoded stream rather than linear-light. Omit any field to mirror the kernel’s natural output for that aspect.

outputRange?

VideoRange

(Optional)

outputTransfer?

TransferFunction

(Optional)