Skip to content

builtins

Type Aliases:

FrameRange

FrameRange = SoftRange

FrameRangeN

FrameRangeN = SoftRangeN

FrameRangesN

FrameRangesN = SoftRangesN

Planes

Planes = int | Sequence[int] | None

Type alias for planes.

  • None: All planes.
  • int: Single plane.
  • Sequence[int]: Multiple planes.

Values outside the range of the clip's format will throw an error.

Example of processing only the luma (Y) plane of a YUV clip:

planes=[0]  # Y

Example of processing only the chroma (U and V) planes of a YUV clip:

planes=[1, 2]  #  U, V

Example of processing all planes of a clip (regardless of the format):

planes=None  # All planes