| 1 |
use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/::Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path#; |
| 2 |
use exrrust-analyzer cargo exr 1.74.0 crate/::preluderust-analyzer cargo exr 1.74.0 prelude/::*; |
| 3 |
use exrrust-analyzer cargo exr 1.74.0 crate/::imagerust-analyzer cargo exr 1.74.0 image/::validate_resultsrust-analyzer cargo exr 1.74.0 image/validate_results/::ValidateResultrust-analyzer cargo exr 1.74.0 image/validate_results/ValidateResult#; |
| 4 |
|
| 5 |
fn dirrust-analyzer cargo exr 1.74.0 dir().() -> &'static Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path# { Pathrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/Path#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]new().("tests/images/valid/custom/compression_methods") } |
| 6 |
|
| 7 |
fn expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().(sub_dir: &str, image_name: &str, expected: &str) { |
| 8 |
let path = dirrust-analyzer cargo exr 1.74.0 dir().().joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().(sub_dir).joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().(image_name); |
| 9 |
|
| 10 |
match read_first_flat_layer_from_filerust-analyzer cargo exr 1.74.0 image/read/read_first_flat_layer_from_file().(path) { |
| 11 |
Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(Errorrust-analyzer cargo exr 1.74.0 error/Error#::NotSupportedrust-analyzer cargo exr 1.74.0 error/Error#NotSupported#(message)) => printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("skipping ({})", message), |
| 12 |
Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(error) => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("unexpected error: {}", error), |
| 13 |
Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(mut decompressed) => { |
| 14 |
let decompressed_path = dirrust-analyzer cargo exr 1.74.0 dir().().joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().(sub_dir).joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().(expected); |
| 15 |
let mut expected_decompressed = read_first_flat_layer_from_filerust-analyzer cargo exr 1.74.0 image/read/read_first_flat_layer_from_file().(decompressed_path) |
| 16 |
.expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("uncompressed image could not be loaded"); |
| 17 |
|
| 18 |
// HACK: make metadata match artificially, to avoid failing the check due to meta data mismatch |
| 19 |
// (the name of the compression methods should not be equal, as we test between compression methods) |
| 20 |
expected_decompressed.layer_datarust-analyzer cargo exr 1.74.0 image/Image#layer_data..encodingrust-analyzer cargo exr 1.74.0 image/Layer#encoding..compressionrust-analyzer cargo exr 1.74.0 image/Encoding#compression. = Compressionrust-analyzer cargo exr 1.74.0 compression/Compression#::Uncompressedrust-analyzer cargo exr 1.74.0 compression/Compression#Uncompressed#; |
| 21 |
decompressed.layer_datarust-analyzer cargo exr 1.74.0 image/Image#layer_data..encodingrust-analyzer cargo exr 1.74.0 image/Layer#encoding..compressionrust-analyzer cargo exr 1.74.0 image/Encoding#compression. = Compressionrust-analyzer cargo exr 1.74.0 compression/Compression#::Uncompressedrust-analyzer cargo exr 1.74.0 compression/Compression#Uncompressed#; |
| 22 |
|
| 23 |
debug_assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/debug_assert_eq!!(expected_decompressed.layer_datarust-analyzer cargo exr 1.74.0 image/Image#layer_data..attributesrust-analyzer cargo exr 1.74.0 image/Layer#attributes., decompressed.layer_datarust-analyzer cargo exr 1.74.0 image/Image#layer_data..attributesrust-analyzer cargo exr 1.74.0 image/Layer#attributes., "attributes should not be affected by compression"); |
| 24 |
debug_assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/debug_assert_eq!!(expected_decompressed.layer_datarust-analyzer cargo exr 1.74.0 image/Image#layer_data..sizerust-analyzer cargo exr 1.74.0 image/Layer#size., decompressed.layer_datarust-analyzer cargo exr 1.74.0 image/Image#layer_data..sizerust-analyzer cargo exr 1.74.0 image/Layer#size., "size should not be affected by compression"); |
| 25 |
|
| 26 |
// Note: Unimplemented methods may still work, if each compressed tile would be larger than uncompressed. |
| 27 |
expected_decompressed.assert_equals_resultrust-analyzer cargo exr 1.74.0 image/validate_results/ValidateResult#assert_equals_result().(&decompressed); |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
// comparing to a different format, png, |
| 33 |
// is the only real way to check that |
| 34 |
// little endian data is unpacked correctly on big endian systems |
| 35 |
// it does not attempt to compare NaN |
| 36 |
fn expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().(image_name: &str) { |
| 37 |
type Rgb16Imagerust-analyzer cargo exr 1.74.0 Rgb16Image# = ::imagerust-analyzer cargo image 0.25.8 crate/::ImageBufferrust-analyzer cargo image 0.25.8 images/buffer/ImageBuffer#<::imagerust-analyzer cargo image 0.25.8 crate/::Rgbrust-analyzer cargo image 0.25.8 color/Rgb#<u16>, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u16>>; |
| 38 |
|
| 39 |
let exr_path = dirrust-analyzer cargo exr 1.74.0 dir().().joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().("u16").joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().(image_name); |
| 40 |
let png_from_exr = read_first_rgba_layer_from_filerust-analyzer cargo exr 1.74.0 image/read/read_first_rgba_layer_from_file().( |
| 41 |
exr_path, |
| 42 |
|
| 43 |
|resolution, _channels: &RgbaChannelsrust-analyzer cargo exr 1.74.0 image/RgbaChannels#| -> Rgb16Imagerust-analyzer cargo exr 1.74.0 Rgb16Image# { |
| 44 |
::imagerust-analyzer cargo image 0.25.8 crate/::ImageBufferrust-analyzer cargo image 0.25.8 images/buffer/ImageBuffer#::newrust-analyzer cargo image 0.25.8 images/buffer/impl#[`ImageBuffer<P, Vec<<P as Pixel>::Subpixel>>`]new().( |
| 45 |
resolution.widthrust-analyzer cargo exr 1.74.0 math/impl#[`Vec2<T>`]width().() as u32, |
| 46 |
resolution.heightrust-analyzer cargo exr 1.74.0 math/impl#[`Vec2<T>`]height().() as u32 |
| 47 |
) |
| 48 |
}, |
| 49 |
|
| 50 |
// set each pixel in the png buffer from the exr file |
| 51 |
|png_pixels: &mut Rgb16Imagerust-analyzer cargo exr 1.74.0 Rgb16Image#, position: Vec2rust-analyzer cargo exr 1.74.0 math/Vec2#<usize>, (r,g,b,_): (f32,f32,f32,f32)| { |
| 52 |
png_pixels.put_pixelrust-analyzer cargo image 0.25.8 images/buffer/impl#[`ImageBuffer<P, Container>`]put_pixel().( |
| 53 |
position.xrust-analyzer cargo exr 1.74.0 math/impl#[`Vec2<T>`]x().() as u32, position.yrust-analyzer cargo exr 1.74.0 math/impl#[`Vec2<T>`]y().() as u32, |
| 54 |
::imagerust-analyzer cargo image 0.25.8 crate/::Rgbrust-analyzer cargo image 0.25.8 color/Rgb#([to_u16rust-analyzer cargo exr 1.74.0 to_u16().(r), to_u16rust-analyzer cargo exr 1.74.0 to_u16().(g), to_u16rust-analyzer cargo exr 1.74.0 to_u16().(b)]) |
| 55 |
); |
| 56 |
} |
| 57 |
); |
| 58 |
|
| 59 |
fn to_u16rust-analyzer cargo exr 1.74.0 to_u16().(num: f32) -> u16 { (num.powfrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]powf().(1.0/rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Div<Self>`]div().2.14).clamprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]clamp().(0.0, 1.0) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][`Mul<Self>`]mul().u16::MAXrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u16]MAX. as f32).roundrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f32/impl#[f32]round().() as u16 } |
| 60 |
|
| 61 |
match png_from_exr { |
| 62 |
Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(Errorrust-analyzer cargo exr 1.74.0 error/Error#::NotSupportedrust-analyzer cargo exr 1.74.0 error/Error#NotSupported#(message)) => printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("skipping ({})", message), |
| 63 |
Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(error) => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("unexpected error: {}", error), |
| 64 |
Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(decompressed) => { |
| 65 |
let truth_path = dirrust-analyzer cargo exr 1.74.0 dir().().joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().("u16").joinrust-analyzer cargo std https://github.com/rust-lang/rust/library/std path/impl#[Path]join().("ground_truth.png"); |
| 66 |
let truth_dyn_img = imagerust-analyzer cargo image 0.25.8 crate/::openrust-analyzer cargo image 0.25.8 images/dynimage/open().(truth_path).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 67 |
|
| 68 |
let ground_truth_png = truth_dyn_img.to_rgb16rust-analyzer cargo image 0.25.8 images/dynimage/impl#[DynamicImage]to_rgb16().(); |
| 69 |
let exr_as_png_px = decompressed.layer_datarust-analyzer cargo exr 1.74.0 image/Image#layer_data..channel_datarust-analyzer cargo exr 1.74.0 image/Layer#channel_data..pixelsrust-analyzer cargo exr 1.74.0 image/SpecificChannels#pixels.; |
| 70 |
debug_assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/debug_assert_eq!!(ground_truth_png.dimensionsrust-analyzer cargo image 0.25.8 images/buffer/impl#[`ImageBuffer<P, Container>`]dimensions().(), exr_as_png_px.dimensionsrust-analyzer cargo image 0.25.8 images/buffer/impl#[`ImageBuffer<P, Container>`]dimensions().(), "size should not be affected by compression"); |
| 71 |
|
| 72 |
let expected_px = ground_truth_png.pixelsrust-analyzer cargo image 0.25.8 images/buffer/impl#[`ImageBuffer<P, Container>`]pixels().() |
| 73 |
.flat_maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#flat_map().(|px| px.0rust-analyzer cargo image 0.25.8 color/Rgb#0..iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().copiedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#copied().()); |
| 74 |
|
| 75 |
let actual_px = exr_as_png_px.pixelsrust-analyzer cargo image 0.25.8 images/buffer/impl#[`ImageBuffer<P, Container>`]pixels().() |
| 76 |
.flat_maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#flat_map().(|px| px.0rust-analyzer cargo image 0.25.8 color/Rgb#0..iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().copiedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#copied().()); |
| 77 |
|
| 78 |
let max_diff = u16::MAXrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u16]MAX./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u16][`Div<Self>`]div().10; |
| 79 |
for (exp, val) in expected_px.ziprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#zip().(actual_px) { |
| 80 |
assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!( |
| 81 |
exp.abs_diffrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u16]abs_diff().(val) <rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u16][`PartialOrd<Self>`]lt(). max_diff, |
| 82 |
"values not similar enough: found {}, expected {}", val, exp |
| 83 |
); |
| 84 |
} |
| 85 |
} |
| 86 |
} |
| 87 |
} |
| 88 |
|
| 89 |
fn expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().(sub_dir: &str, image_name: &str) { |
| 90 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().(sub_dir, image_name, "uncompressed.exr") |
| 91 |
} |
| 92 |
|
| 93 |
|
| •94 |
#[ignore] |
| 95 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 96 |
fn compare_compression_contents_zip_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_zip_f32().() { |
| 97 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f32", "zip.exr"); |
| 98 |
} |
| 99 |
|
| •100 |
#[ignore] |
| 101 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 102 |
fn compare_compression_contents_zip_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_zip_f16().() { |
| 103 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f16", "zip.exr"); |
| 104 |
} |
| 105 |
|
| •106 |
#[ignore] |
| 107 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 108 |
fn compare_compression_contents_zips_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_zips_f32().() { |
| 109 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f32", "zips.exr"); |
| 110 |
} |
| 111 |
|
| •112 |
#[ignore] |
| 113 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 114 |
fn compare_compression_contents_zips_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_zips_f16().() { |
| 115 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f16", "zips.exr"); |
| 116 |
} |
| 117 |
|
| •118 |
#[ignore] |
| 119 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 120 |
fn compare_compression_contents_b44_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_b44_f32().() { |
| 121 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f32", "b44.exr"); // f32s are not compressed in b44 and can be compared exactly |
| 122 |
} |
| 123 |
|
| •124 |
#[ignore] |
| 125 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 126 |
fn compare_compression_contents_b44_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_b44_f16().() { |
| 127 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().("f16", "b44.exr", "decompressed_b44.exr"); |
| 128 |
} |
| 129 |
|
| •130 |
#[ignore] |
| 131 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 132 |
fn compare_compression_contents_b44a_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_b44a_f32().() { |
| 133 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f32", "b44a.exr"); // f32s are not compressed in b44 and can be compared exactly |
| 134 |
} |
| 135 |
|
| •136 |
#[ignore] |
| 137 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 138 |
fn compare_compression_contents_b44a_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_b44a_f16().() { |
| 139 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().("f16", "b44a.exr", "decompressed_b44a.exr"); |
| 140 |
} |
| 141 |
|
| •142 |
#[ignore] |
| 143 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 144 |
fn compare_compression_contents_dwaa_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_dwaa_f32().() { |
| 145 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().("f32", "dwaa.exr", "decompressed_dwaa.exr"); |
| 146 |
} |
| 147 |
|
| •148 |
#[ignore] |
| 149 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 150 |
fn compare_compression_contents_dwaa_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_dwaa_f16().() { |
| 151 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().("f16", "dwaa.exr", "decompressed_dwaa.exr"); |
| 152 |
} |
| 153 |
|
| •154 |
#[ignore] |
| 155 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 156 |
fn compare_compression_contents_dwab_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_dwab_f32().() { |
| 157 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().("f32", "dwab.exr", "decompressed_dwab.exr"); |
| 158 |
} |
| 159 |
|
| •160 |
#[ignore] |
| 161 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 162 |
fn compare_compression_contents_dwab_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_dwab_f16().() { |
| 163 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().("f16", "dwab.exr", "decompressed_dwab.exr"); |
| 164 |
} |
| 165 |
|
| •166 |
#[ignore] |
| 167 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 168 |
fn compare_compression_contents_piz_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_piz_f32().() { |
| 169 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f32", "piz.exr"); |
| 170 |
} |
| 171 |
|
| •172 |
#[ignore] |
| 173 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 174 |
fn compare_compression_contents_piz_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_piz_f16().() { |
| 175 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f16", "piz.exr"); |
| 176 |
} |
| 177 |
|
| •178 |
#[ignore] |
| 179 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 180 |
fn compare_compression_contents_rle_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_rle_f32().() { |
| 181 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f32", "rle.exr"); |
| 182 |
} |
| 183 |
|
| •184 |
#[ignore] |
| 185 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 186 |
fn compare_compression_contents_rle_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_rle_f16().() { |
| 187 |
expect_eq_uncompressedrust-analyzer cargo exr 1.74.0 expect_eq_uncompressed().("f16", "rle.exr"); |
| 188 |
} |
| 189 |
|
| 190 |
|
| •191 |
#[ignore] |
| 192 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 193 |
fn compare_compression_contents_pxr24_f16rust-analyzer cargo exr 1.74.0 compare_compression_contents_pxr24_f16().() { |
| 194 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().("f16", "pxr24.exr", "decompressed_pxr24.exr"); |
| 195 |
} |
| 196 |
|
| •197 |
#[ignore] |
| 198 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 199 |
fn compare_compression_contents_pxr24_f32rust-analyzer cargo exr 1.74.0 compare_compression_contents_pxr24_f32().() { |
| 200 |
expect_eq_otherrust-analyzer cargo exr 1.74.0 expect_eq_other().("f32", "pxr24.exr", "decompressed_pxr24.exr"); |
| 201 |
} |
| 202 |
|
| •203 |
#[ignore] |
| 204 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 205 |
fn compare_png_to_uncompressed_f16rust-analyzer cargo exr 1.74.0 compare_png_to_uncompressed_f16().() { |
| 206 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_uncompressed.exr"); |
| 207 |
} |
| 208 |
|
| •209 |
#[ignore] |
| 210 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 211 |
fn compare_png_to_piz_f16rust-analyzer cargo exr 1.74.0 compare_png_to_piz_f16().() { |
| 212 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_piz.exr"); |
| 213 |
} |
| 214 |
|
| •215 |
#[ignore] |
| 216 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 217 |
fn compare_png_to_rle_f16rust-analyzer cargo exr 1.74.0 compare_png_to_rle_f16().() { |
| 218 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_rle.exr"); |
| 219 |
} |
| 220 |
|
| •221 |
#[ignore] |
| 222 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 223 |
fn compare_png_to_zip_f16rust-analyzer cargo exr 1.74.0 compare_png_to_zip_f16().() { |
| 224 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_zip.exr"); |
| 225 |
} |
| 226 |
|
| •227 |
#[ignore] |
| 228 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 229 |
fn compare_png_to_zips_f16rust-analyzer cargo exr 1.74.0 compare_png_to_zips_f16().() { |
| 230 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_zips.exr"); |
| 231 |
} |
| 232 |
|
| •233 |
#[ignore] |
| 234 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 235 |
fn compare_png_to_dwaa_f16rust-analyzer cargo exr 1.74.0 compare_png_to_dwaa_f16().() { |
| 236 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_dwaa.exr"); |
| 237 |
} |
| 238 |
|
| •239 |
#[ignore] |
| 240 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 241 |
fn compare_png_to_b44_f16rust-analyzer cargo exr 1.74.0 compare_png_to_b44_f16().() { |
| 242 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_b44.exr"); |
| 243 |
} |
| 244 |
|
| •245 |
#[ignore] |
| 246 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 247 |
fn compare_png_to_b44a_f16rust-analyzer cargo exr 1.74.0 compare_png_to_b44a_f16().() { |
| 248 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_b44a.exr"); |
| 249 |
} |
| 250 |
|
| •251 |
#[ignore] |
| 252 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 253 |
fn compare_png_to_pxr24_f16rust-analyzer cargo exr 1.74.0 compare_png_to_pxr24_f16().() { |
| 254 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f16_pxr24.exr"); |
| 255 |
} |
| 256 |
|
| 257 |
|
| •258 |
#[ignore] |
| 259 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 260 |
fn compare_png_to_uncompressed_f32rust-analyzer cargo exr 1.74.0 compare_png_to_uncompressed_f32().() { |
| 261 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f32_uncompressed.exr"); |
| 262 |
} |
| 263 |
|
| •264 |
#[ignore] |
| 265 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 266 |
fn compare_png_to_piz_f32rust-analyzer cargo exr 1.74.0 compare_png_to_piz_f32().() { |
| 267 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f32_piz.exr"); |
| 268 |
} |
| 269 |
|
| •270 |
#[ignore] |
| 271 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 272 |
fn compare_png_to_rle_f32rust-analyzer cargo exr 1.74.0 compare_png_to_rle_f32().() { |
| 273 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f32_rle.exr"); |
| 274 |
} |
| 275 |
|
| •276 |
#[ignore] |
| 277 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 278 |
fn compare_png_to_zip_f32rust-analyzer cargo exr 1.74.0 compare_png_to_zip_f32().() { |
| 279 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f32_zip.exr"); |
| 280 |
} |
| 281 |
|
| •282 |
#[ignore] |
| 283 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 284 |
fn compare_png_to_dwaa_f32rust-analyzer cargo exr 1.74.0 compare_png_to_dwaa_f32().() { |
| 285 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f32_dwaa.exr"); |
| 286 |
} |
| 287 |
|
| •288 |
#[ignore] |
| 289 |
#[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 290 |
fn compare_png_to_pxr24_f32rust-analyzer cargo exr 1.74.0 compare_png_to_pxr24_f32().() { |
| 291 |
expect_eq_pngrust-analyzer cargo exr 1.74.0 expect_eq_png().("f32_pxr24.exr"); |
| 292 |
} |