colour.legal_to_full#
- colour.legal_to_full(CV: ArrayLike, bit_depth: int = 10, in_int: bool = False, out_int: bool = False) NDArrayReal [source]#
Convert given code value \(CV\) or float equivalent of a code value at a given bit-depth from legal range (studio swing) to full range (full swing).
- Parameters:
CV (ArrayLike) – Legal range code value \(CV\) or float equivalent of a code value at a given bit-depth.
bit_depth (int) – Bit-depth used for conversion.
in_int (bool) – Whether to treat the input value as int code value or float equivalent of a code value at a given bit-depth.
out_int (bool) – Whether to return value as int code value or float equivalent of a code value at a given bit-depth.
- Returns:
Full range code value \(CV\) or float equivalent of a code value at a given bit-depth.
- Return type:
Examples
>>> legal_to_full(64 / 1023) 0.0 >>> legal_to_full(940 / 1023) 1.0 >>> legal_to_full(64 / 1023, out_int=True) 0 >>> legal_to_full(940 / 1023, out_int=True) 1023 >>> legal_to_full(64, in_int=True) 0.0 >>> legal_to_full(940, in_int=True) 1.0 >>> legal_to_full(64, in_int=True, out_int=True) 0 >>> legal_to_full(940, in_int=True, out_int=True) 1023