/// Read from in-memory in parallel
Read from in-memory in parallel
Read from in - memory in parallel
fn read_single_image_uncompressed_from_buffer_rgba(bench: &mut Bencher) {
    let file = fs::read("tests/images/valid/custom/crowskull/crow_uncompressed.exr").unwrap();
    bench.iter(||{
        let image = exr::prelude::read()
            .no_deep_data().largest_resolution_level()
            .rgba_channels(PixelVec::<(f16,f16,f16,f16)>::constructor, PixelVec::set_pixel)
            .all_layers().all_attributes()
            .from_buffered(Cursor::new(file.as_slice())).unwrap();
        bencher::black_box(image);
    })
}
fn read_single_image_uncompressed_from_buffer_rgba ( bench : & mut Bencher ) { let file = fs :: read ( " " ) . unwrap ( ) ; bench . iter ( | | { let image = exr :: prelude :: read ( ) . no_deep_data ( ) . largest_resolution_level ( ) . rgba_channels ( PixelVec :: < ( f16 , f16 , f16 , f16 ) > :: constructor , PixelVec :: set_pixel ) . all_layers ( ) . all_attributes ( ) . from_buffered ( Cursor :: new ( file . as_slice ( ) ) ) . unwrap ( ) ; bencher :: black_box ( image ) ; } ) }
Read from in-memory in parallel
Read from in - memory in parallel
bench
&mut Bencher