From 2545765e2adcdee5f949d07d5bcb6f3948be393a Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Sat, 6 Mar 2021 16:46:28 +0530 Subject: [PATCH] Reverted some changes --- Cargo.lock | 57 +---------------------------------------------------- Cargo.toml | 7 ++++++- src/main.rs | 2 +- 3 files changed, 8 insertions(+), 58 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 27c3a80..8d273eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,12 +2,6 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "adler" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" - [[package]] name = "adler32" version = "1.2.0" @@ -137,16 +131,6 @@ dependencies = [ "wasi", ] -[[package]] -name = "gif" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02efba560f227847cb41463a7395c514d127d4f74fff12ef0137fff1b84b96c4" -dependencies = [ - "color_quant", - "weezl", -] - [[package]] name = "hermit-abi" version = "0.1.18" @@ -165,14 +149,11 @@ dependencies = [ "bytemuck", "byteorder", "color_quant", - "gif", "jpeg-decoder", "num-iter", "num-rational", "num-traits", "png", - "scoped_threadpool", - "tiff", ] [[package]] @@ -180,9 +161,6 @@ name = "jpeg-decoder" version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "229d53d58899083193af11e15917b5640cd40b29ff475a1fe4ef725deb02d0f2" -dependencies = [ - "rayon", -] [[package]] name = "lazy_static" @@ -214,16 +192,6 @@ dependencies = [ "adler32", ] -[[package]] -name = "miniz_oxide" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" -dependencies = [ - "adler", - "autocfg", -] - [[package]] name = "num-integer" version = "0.1.44" @@ -284,7 +252,7 @@ dependencies = [ "bitflags", "crc32fast", "deflate", - "miniz_oxide 0.3.7", + "miniz_oxide", ] [[package]] @@ -368,12 +336,6 @@ dependencies = [ "sdl2", ] -[[package]] -name = "scoped_threadpool" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8" - [[package]] name = "scopeguard" version = "1.1.0" @@ -403,17 +365,6 @@ dependencies = [ "version-compare", ] -[[package]] -name = "tiff" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a53f4706d65497df0c4349241deddf35f84cee19c87ed86ea8ca590f4464437" -dependencies = [ - "jpeg-decoder", - "miniz_oxide 0.4.4", - "weezl", -] - [[package]] name = "version-compare" version = "0.0.10" @@ -425,9 +376,3 @@ name = "wasi" version = "0.10.2+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" - -[[package]] -name = "weezl" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a32b378380f4e9869b22f0b5177c68a5519f03b3454fde0b291455ddbae266c" diff --git a/Cargo.toml b/Cargo.toml index 9623e9a..a0a9a11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,10 +3,15 @@ authors = ["ishanjain28 "] edition = "2018" name = "rtnw" version = "0.1.0" + [dependencies] -image = "*" rayon = "1.5.0" +[dependencies.image] +features = ["jpeg", "png"] +version = "0.23.14" +default-features = false + [dependencies.rand] features = ["small_rng"] version = "0.8.3" diff --git a/src/main.rs b/src/main.rs index 51021d2..c7cd902 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,7 @@ use demos::Demo; use std::time::Instant; -const NUM_SAMPLES: u8 = 255; +const NUM_SAMPLES: u8 = 100; const VERTICAL_PARTITION: usize = 12; const HORIZONTAL_PARTITION: usize = 12; const WIDTH: usize = 1920;