From a978c9b664bed8dbe0ab31554ed9e1d07cb38b14 Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Sun, 6 Oct 2024 07:25:50 -0400 Subject: [PATCH] Also remove transfer assumption --- vstools/enums/color.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/vstools/enums/color.py b/vstools/enums/color.py index d0ddf45..e217128 100644 --- a/vstools/enums/color.py +++ b/vstools/enums/color.py @@ -459,15 +459,6 @@ def from_res(cls, frame: vs.VideoNode | vs.VideoFrame) -> Transfer: if width <= 1024 and height <= 576: return Transfer.BT601 - if width <= 2048 and height <= 1556: - return Transfer.BT709 - - if fmt.bits_per_sample == 10: - return Transfer.BT2020_10 - - if fmt.bits_per_sample == 12: - return Transfer.BT2020_12 - return Transfer.BT709 @classmethod