forked from mojie126/Aegisub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix, simplify, and outsource ffms2 color space override logic
Actually support all YCbCr Matrix values instead of only a 601 matrix. Simplify the override logic and move most of it outside of the ffms2 provider so it can be shared with other providers. Also stop erroring out on unknown video color spaces. This is not yet perfect (the guessing logic could be improved, invalid matrices should probably default to TV.601, and the added functions feel a bit out of place in video_provider_manager.cpp and are partially redundant with ycbcr_conv.cpp) but it's a lot better and more maintainable than before.
- Loading branch information
1 parent
6d3d5a7
commit 9adeeb1
Showing
3 changed files
with
129 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters