-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
PR: Implement support for Y'CbCr matrices generation. #664
Conversation
a5e623c
to
5a9a2da
Compare
7d6e538
to
9498041
Compare
@nick-shaw : Might be worth one of your eyes! :) |
9498041
to
ca171a4
Compare
This function would be able to calculate those 14 decimal place coefficients (or higher precision if desired). The 14 decimal place coefficients are just the 4 decimal place constants from BT.2020 run through the weighting to matrix calculations. |
This is exactly the matrix shown in the document. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, except perhaps the docstring should be more explicit that the returned matrix is the Y'CbCr to R'G'B' matrix, not the R'G'B' to Y'CbCr matrix. Other than that I am happy to approve the PR.
I haven't fully looked at this, but I wonder if ITU T-REC-H.273 might have something to say on these, at least it states the expected behaviours for a number of the combinations. It does appear to be attempting to be definitive: Kevin |
Not sure I completely follow, @KevinJW. Are you suggesting we adopt the "Video Code Points" values as an (optional?) way of passing the |
The |
ca171a4
to
2181c93
Compare
Thanks for the review @nick-shaw! I addressed the docstring notes and rebased on-top of develop. I will merge after the tests pass. |
The numbers in that line in FFmpeg would be my "fault", can't remember exactly what source I used for it Kevin |
References #486.