Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion vsutil/types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Enums and related functions.
"""
__all__ = ['Dither', 'Range']
__all__ = ['Dither', 'Range', 'EXPR_VARS']

# this file only depends on the stdlib and should stay that way
from enum import Enum
Expand Down Expand Up @@ -40,6 +40,16 @@ class Range(_NoSubmoduleRepr, int, Enum):
"""Full (PC) dynamic range, 0-255 in 8 bits."""


EXPR_VARS: str = 'xyzabcdefghijklmnopqrstuvw'
"""
This constant contains a list of all variables that can appear inside an expr-string ordered
by assignment. So the first clip will have the name EXPR_VAR_NAMES[0], the second one will
have the name EXPR_VAR_NAMES[1], and so on.

This can be used to automatically generate Expr-strings.
"""


def _readable_enums(enum: Type[Enum]) -> str:
"""
Returns a list of all possible values in `enum`.
Expand Down