File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -688,7 +688,7 @@ comments and a patch is provided in the squish/ folder.
688
688
## tinyexr
689
689
690
690
- Upstream: https://github.com/syoyo/tinyexr
691
- - Version: 1.0.4 (7c92b8cd86a378ba5cb7b6d39a336457728dfb82 , 2023)
691
+ - Version: 1.0.5 (3627ab3060592468d49547b4cdf5353e9e2b50dc , 2023)
692
692
- License: BSD-3-Clause
693
693
694
694
Files extracted from upstream source:
Original file line number Diff line number Diff line change @@ -7546,21 +7546,24 @@ static size_t SaveEXRNPartImageToMemory(const EXRImage* exr_images,
7546
7546
return 0 ;
7547
7547
}
7548
7548
#endif
7549
- #if !TINYEXR_USE_ZFP
7550
7549
if (exr_headers[i]->compression_type == TINYEXR_COMPRESSIONTYPE_ZFP) {
7550
+ #if !TINYEXR_USE_ZFP
7551
7551
SetErrorMessage (" ZFP compression is not supported in this build" ,
7552
7552
err);
7553
7553
return 0 ;
7554
- }
7555
7554
#else
7556
- for (int c = 0 ; c < exr_header->num_channels ; ++c) {
7557
- if (exr_headers[i]->requested_pixel_types [c] != TINYEXR_PIXELTYPE_FLOAT) {
7558
- SetErrorMessage (" Pixel type must be FLOAT for ZFP compression" ,
7559
- err);
7560
- return 0 ;
7555
+ // All channels must be fp32.
7556
+ // No fp16 support in ZFP atm(as of 2023 June)
7557
+ // https://github.com/LLNL/fpzip/issues/2
7558
+ for (int c = 0 ; c < exr_headers[i]->num_channels ; ++c) {
7559
+ if (exr_headers[i]->requested_pixel_types [c] != TINYEXR_PIXELTYPE_FLOAT) {
7560
+ SetErrorMessage (" Pixel type must be FLOAT for ZFP compression" ,
7561
+ err);
7562
+ return 0 ;
7563
+ }
7561
7564
}
7562
- }
7563
7565
#endif
7566
+ }
7564
7567
}
7565
7568
}
7566
7569
@@ -8635,7 +8638,7 @@ int ParseEXRMultipartHeaderFromMemory(EXRHeader ***exr_headers,
8635
8638
if (!ConvertHeader (exr_header, infos[i], &warn, &_err)) {
8636
8639
8637
8640
// Free malloc-allocated memory here.
8638
- for (size_t k = 0 ; k < infos[i].attributes .size (); i ++) {
8641
+ for (size_t k = 0 ; k < infos[i].attributes .size (); k ++) {
8639
8642
if (infos[i].attributes [k].value ) {
8640
8643
free (infos[i].attributes [k].value );
8641
8644
}
You can’t perform that action at this time.
0 commit comments