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.
enable support for odd dimensions for rgb inputs
The library supports input color formats UHDR_IMG_FMT_24bppYCbCrP010, UHDR_IMG_FMT_12bppYCbCr420. Both these formats have chroma planes subsampled by 2, horizontally and vertically. Each chroma pixel corresponds to 4 luma pixels. Library holds this attribute too tightly and evaluates chroma plane dimensions as half of luma plane dimensions (round_down(w / 2) and round_down(h/2)). It is possible to have 420 subsampled images with odd dimensions where the edge chroma pixels correspond to 1 or 2 luma pixels but this was not handled. For rgb inputs, this restriction need not be enforced. The current change lifts this gating. Test: ./ultrahdr_unit_test
- Loading branch information
Showing
3 changed files
with
90 additions
and
17 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