Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the bits argument of vssource.source() #35

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

StollD
Copy link

@StollD StollD commented Oct 18, 2024

The .source() function of the Indexer class will call initialize_clip on the loaded clip, which converts 8-bit colors to 16-bit by default.

This means that the bits argument of vssource.source must be forwarded to Indexer.source. Otherwise, loading an 8-bit source with bits=8 would needlessly convert the colors to 16-bit and back.

Similarly, using bits=-1 to load a source in its native bit depth would always return a 16-bit clip for an 8-bit source.

The .source() function of the Indexer class will call initialize_clip
on the loaded clip, which converts 8-bit colors to 16-bit by default.

This means that the bits argument of vssource.source must be forwarded
to Indexer.source. Otherwise, loading an 8-bit source with bits=8 would
needlessly convert the colors to 16-bit and back.

Similarly, using bits=-1 to load a source in its native bit depth would
always return a 16-bit clip for an 8-bit source.
@LightArrowsEXE LightArrowsEXE merged commit 0379acf into Jaded-Encoding-Thaumaturgy:master Oct 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants