-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Optimize running of oiiotool-demosaic test (#4429)
This test was running very slowly, taking too long in all circumstances, but shockly causing GHA CI Mac runners to hit the test timeout sometimes. It turns out we were doing a lot of redundant work. There was no need to make separate pattern and bayer images for every data type. Instead, hoist the test image generation out of the loop and just make one (float), then use `-i:type=<type>` to read it into an ImageBuf of the appropriate data type. This cuts the time for this test to run by about 3x. Signed-off-by: Larry Gritz <[email protected]>
- Loading branch information
Showing
2 changed files
with
46 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
Computing diff of "testimage_float.exr" vs "result_float_RGGB-linear.exr" | ||
Computing diff of "testimage.exr" vs "result_float_RGGB-linear.exr" | ||
PASS | ||
Computing diff of "testimage_float.exr" vs "result_float_GRBG-linear.exr" | ||
Computing diff of "testimage.exr" vs "result_float_GRBG-linear.exr" | ||
PASS | ||
Computing diff of "testimage_float.exr" vs "result_float_GBRG-linear.exr" | ||
Computing diff of "testimage.exr" vs "result_float_GBRG-linear.exr" | ||
PASS | ||
Computing diff of "testimage_float.exr" vs "result_float_BGGR-linear.exr" | ||
Computing diff of "testimage.exr" vs "result_float_BGGR-linear.exr" | ||
PASS | ||
Computing diff of "testimage_float.exr" vs "result_float_RGGB-MHC.exr" | ||
Computing diff of "testimage.exr" vs "result_float_RGGB-MHC.exr" | ||
PASS | ||
Computing diff of "testimage_float.exr" vs "result_float_GRBG-MHC.exr" | ||
Computing diff of "testimage.exr" vs "result_float_GRBG-MHC.exr" | ||
PASS | ||
Computing diff of "testimage_float.exr" vs "result_float_GBRG-MHC.exr" | ||
Computing diff of "testimage.exr" vs "result_float_GBRG-MHC.exr" | ||
PASS | ||
Computing diff of "testimage_float.exr" vs "result_float_BGGR-MHC.exr" | ||
Computing diff of "testimage.exr" vs "result_float_BGGR-MHC.exr" | ||
PASS | ||
Computing diff of "testimage_half.exr" vs "result_half_RGGB-linear.exr" | ||
Computing diff of "testimage.exr" vs "result_half_RGGB-linear.exr" | ||
PASS | ||
Computing diff of "testimage_half.exr" vs "result_half_GRBG-linear.exr" | ||
Computing diff of "testimage.exr" vs "result_half_GRBG-linear.exr" | ||
PASS | ||
Computing diff of "testimage_half.exr" vs "result_half_GBRG-linear.exr" | ||
Computing diff of "testimage.exr" vs "result_half_GBRG-linear.exr" | ||
PASS | ||
Computing diff of "testimage_half.exr" vs "result_half_BGGR-linear.exr" | ||
Computing diff of "testimage.exr" vs "result_half_BGGR-linear.exr" | ||
PASS | ||
Computing diff of "testimage_half.exr" vs "result_half_RGGB-MHC.exr" | ||
Computing diff of "testimage.exr" vs "result_half_RGGB-MHC.exr" | ||
PASS | ||
Computing diff of "testimage_half.exr" vs "result_half_GRBG-MHC.exr" | ||
Computing diff of "testimage.exr" vs "result_half_GRBG-MHC.exr" | ||
PASS | ||
Computing diff of "testimage_half.exr" vs "result_half_GBRG-MHC.exr" | ||
Computing diff of "testimage.exr" vs "result_half_GBRG-MHC.exr" | ||
PASS | ||
Computing diff of "testimage_half.exr" vs "result_half_BGGR-MHC.exr" | ||
Computing diff of "testimage.exr" vs "result_half_BGGR-MHC.exr" | ||
PASS | ||
Computing diff of "testimage_uint16.tiff" vs "result_uint16_RGGB-linear.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint16_RGGB-linear.tiff" | ||
PASS | ||
Computing diff of "testimage_uint16.tiff" vs "result_uint16_GRBG-linear.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint16_GRBG-linear.tiff" | ||
PASS | ||
Computing diff of "testimage_uint16.tiff" vs "result_uint16_GBRG-linear.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint16_GBRG-linear.tiff" | ||
PASS | ||
Computing diff of "testimage_uint16.tiff" vs "result_uint16_BGGR-linear.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint16_BGGR-linear.tiff" | ||
PASS | ||
Computing diff of "testimage_uint16.tiff" vs "result_uint16_RGGB-MHC.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint16_RGGB-MHC.tiff" | ||
PASS | ||
Computing diff of "testimage_uint16.tiff" vs "result_uint16_GRBG-MHC.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint16_GRBG-MHC.tiff" | ||
PASS | ||
Computing diff of "testimage_uint16.tiff" vs "result_uint16_GBRG-MHC.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint16_GBRG-MHC.tiff" | ||
PASS | ||
Computing diff of "testimage_uint16.tiff" vs "result_uint16_BGGR-MHC.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint16_BGGR-MHC.tiff" | ||
PASS | ||
Computing diff of "testimage_uint8.tiff" vs "result_uint8_RGGB-linear.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint8_RGGB-linear.tiff" | ||
PASS | ||
Computing diff of "testimage_uint8.tiff" vs "result_uint8_GRBG-linear.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint8_GRBG-linear.tiff" | ||
PASS | ||
Computing diff of "testimage_uint8.tiff" vs "result_uint8_GBRG-linear.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint8_GBRG-linear.tiff" | ||
PASS | ||
Computing diff of "testimage_uint8.tiff" vs "result_uint8_BGGR-linear.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint8_BGGR-linear.tiff" | ||
PASS | ||
Computing diff of "testimage_uint8.tiff" vs "result_uint8_RGGB-MHC.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint8_RGGB-MHC.tiff" | ||
PASS | ||
Computing diff of "testimage_uint8.tiff" vs "result_uint8_GRBG-MHC.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint8_GRBG-MHC.tiff" | ||
PASS | ||
Computing diff of "testimage_uint8.tiff" vs "result_uint8_GBRG-MHC.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint8_GBRG-MHC.tiff" | ||
PASS | ||
Computing diff of "testimage_uint8.tiff" vs "result_uint8_BGGR-MHC.tiff" | ||
Computing diff of "testimage.exr" vs "result_uint8_BGGR-MHC.tiff" | ||
PASS |
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