这是indexloc提供的服务,不要输入任何密码
Skip to content

PR: Modify JFIF full range YCbCr. #1064

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

Merged
merged 4 commits into from
Nov 11, 2022

Conversation

nick-shaw
Copy link
Contributor

Changes to address points discussed in #1063

Modifies full range integer Y'CbCr (JFIF) to better match the spec in ITU-T T.871. Also applies to BT.2100.

Adds a clamp_int argument to RGB_to_YCbCr and YCbCr_to_RGB to limit integer output to valid range for bit_depth.

The clamp_int argument is not added to YcCbcCrc_to_RGB. @KelSolaar please add if you think appropriate.

Update JFIF example in docstring.

Flake8 fixes.

Add BT.2100 reference.
@nick-shaw nick-shaw requested a review from KelSolaar November 9, 2022 10:40
@KelSolaar KelSolaar changed the title Modify JFIF full range YCbCr. PR: Modify JFIF full range YCbCr. Nov 11, 2022
Copy link
Member

@KelSolaar KelSolaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @nick-shaw!

@KelSolaar KelSolaar merged commit 4d89794 into colour-science:develop Nov 11, 2022
@KelSolaar KelSolaar added this to the v0.4.2 milestone Nov 18, 2022
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