forked from google/libultrahdr
-
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.
use matrix coeffs from icc tag while decoding
icc tag does not signal matrix coefficients directly. They signal color primaries. From these color primaries, one can derive the matrix coefficients needed for yuv to rgb conversion using, equations 39-44 of itu h273. In this process bradford chroma adaptation matrix also plays a role. The current change does not do all this. Instead it does a look up mapping of icc tag to color gamut. Successfull harvesting of matrix coefficients from icc tags is dependent on the color gamut dictionary maintained internally. For now, this is okish. If gamut map fails, we will default to srgb color space as per iso 21496-1 sec c.4.4 Test: ./ultrahdr_unit_test Change-Id: I41cb5013c5d29d5ebaa535a78e45a9b487a3c122
- Loading branch information
Showing
4 changed files
with
138 additions
and
23 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
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