//! Workspace tooling: `cargo xtask `. //! //! Pure Rust (std + serde_json; flate2/brotli for the web bundle). External tools (`cargo`, `curl`, `tar`) are //! invoked through `std::process::Command`. mod assets; mod bench; mod ico; mod layers; mod parity; mod stats; mod version; mod web; use std::path::{Path, PathBuf}; use std::process::{Command, ExitCode}; const USAGE: &str = "\ usage: cargo xtask commands: assets every image/icon/font/media file is attributed in assets/ATTRIBUTION.md; no Adobe assets bench [FILE] [--strict] [--threshold PCT] run the render benchmark, append to target/bench/history.jsonl, compare CPU time with the previous run (default input: corpus/raw/arw-sony-a7m3-compressed.arw) ico ... pack square PNGs (<= 256 px) into a Windows .ico (see packaging/icons.sh) layers enforce the crate dependency layering (plan/architecture.md §3) parity [--write] check docs/parity-checklist.md (every cmd:/ctl: id and path it cites exists) and print the Lightroom parity summary; --write refreshes the summary table in the document wasm cargo check --target wasm32-unknown-unknown for the wasm-safe crates (+ the web app) web [--serve [port]] [--dev] build the browser app (apps/lightcraft-web) into /web-site/; --serve serves it on http://127.0.0.1: (default 8080) ci fmt --check, clippy -D warnings, heif, test, parity refs, layers, assets, wasm (stops at first failure) corpus [--download] show where test corpora live; --download fetches PngSuite and CC0 raw samples (raw.pixls.us) into corpus/ and checks their sha256 stats [--exact] count tests and lines per crate (--exact: ask the test harness via `-- --list`) "; fn main() -> ExitCode { let args: Vec = std::env::args().skip(1).collect(); let rest: Vec<&str> = args.iter().skip(1).map(String::as_str).collect(); let result = match args.first().map(String::as_str) { Some("ico") => ico::run(&rest), Some("version") => version::run(&root(), &rest), Some("layers") => cmd_layers(), Some("assets") => assets::run(&root()), Some("bench") => bench::run(&root(), &rest), Some("parity") => parity::run(&root(), rest.contains(&"--write")), Some("wasm") => cmd_wasm(), Some("web") => web::run(&rest), Some("ci") => cmd_ci(), Some("corpus") => cmd_corpus(rest.contains(&"--download")), Some("stats") => stats::run(&root(), rest.contains(&"--exact")), Some("-h" | "--help" | "help") | None => { print!("{USAGE}"); Ok(()) } Some(other) => Err(format!("unknown command `{other}`\n\n{USAGE}")), }; match result { Ok(()) => ExitCode::SUCCESS, Err(e) => { eprintln!("error: {e}"); ExitCode::FAILURE } } } /// Workspace root (parent of the xtask crate). pub fn root() -> PathBuf { // `cargo run` sets it at run time; prefer that over the compile-time value, which goes stale // when the checkout moves and the cached xtask binary isn't rebuilt let dir = std::env::var_os("CARGO_MANIFEST_DIR").map(PathBuf::from).filter(|d| d.join("Cargo.toml").is_file()); let dir = dir.unwrap_or_else(|| PathBuf::from(env!("CARGO_MANIFEST_DIR"))); dir.parent().expect("xtask has a parent dir").to_path_buf() } pub fn cargo() -> Command { let mut c = Command::new(std::env::var("CARGO").unwrap_or_else(|_| "cargo".into())); c.current_dir(root()); // Full Windows debuginfo plus one linker per CPU can exhaust RAM before any // tests run. Scope these overridable defaults to CI, including parity/WASM // subprocesses, without changing ordinary developer builds or GPU coverage. if std::env::args().nth(1).as_deref() == Some("ci") { static JOBS: std::sync::OnceLock<(String, String)> = std::sync::OnceLock::new(); let (build, threads) = JOBS.get_or_init(|| { let ram_mb = available_ram_mb().or_else(|| total_ram_gb().map(|gb| gb.saturating_mul(1024) / 2)); let jobs = ci_jobs(ram_mb, std::thread::available_parallelism().map_or(4, |n| n.get())); // More test threads barely shorten CI (a few heavy tests dominate) but make the // wall-clock frame-budget tests flaky on a loaded machine. (jobs.to_string(), jobs.min(4).to_string()) }); for (key, value) in [("CARGO_PROFILE_DEV_DEBUG", "line-tables-only"), ("CARGO_BUILD_JOBS", build.as_str()), ("RUST_TEST_THREADS", threads.as_str())] { if std::env::var_os(key).is_none() { c.env(key, value); } } } c } /// CI build jobs: one per 1.5 GB of RAM available when CI starts, at most one per CPU, 4 when it /// is unknown. With line-table debuginfo, 4 jobs measured about 3 GB of RAM in use and 2 jobs /// about 1.5 GB, so this leaves about half the available RAM to spare. Counting available rather /// than installed RAM keeps a busy machine (browsers, VMs, editors) from being overcommitted. /// Test threads are this, capped at 4. fn ci_jobs(available_mb: Option, cpus: usize) -> usize { available_mb.map_or(4, |mb| usize::try_from(mb / 1536).unwrap_or(usize::MAX)).clamp(1, cpus.max(1)) } /// RAM the OS could hand out now (free plus reclaimable cache) in MB, if it reports it. fn available_ram_mb() -> Option { let output = |program: &str, args: &[&str]| { let out = Command::new(program).args(args).output().ok()?; Some(String::from_utf8_lossy(&out.stdout).into_owned()) }; if cfg!(target_os = "linux") { let info = std::fs::read_to_string("/proc/meminfo").ok()?; let kb = info.lines().find_map(|l| l.strip_prefix("MemAvailable:"))?.trim().trim_end_matches("kB").trim(); Some(kb.parse::().ok()? / 1024) } else if cfg!(windows) { let cmd = "(Get-CimInstance Win32_PerfFormattedData_PerfOS_Memory).AvailableMBytes"; output("powershell", &["-NoProfile", "-Command", cmd])?.trim().parse().ok() } else { // macOS: free + inactive + speculative pages let stat = output("vm_stat", &[])?; let page: u64 = stat.split("page size of ").nth(1)?.split_whitespace().next()?.parse().ok()?; let pages = |name: &str| -> Option { let line = stat.lines().find(|l| l.starts_with(name))?; line.rsplit(':').next()?.trim().trim_end_matches('.').parse().ok() }; let free = pages("Pages free")?.saturating_add(pages("Pages inactive")?).saturating_add(pages("Pages speculative").unwrap_or(0)); Some(free.saturating_mul(page) >> 20) } } /// Installed physical memory in whole GB, if the OS reports it (the fallback when available RAM /// can't be read: half of it is assumed available). fn total_ram_gb() -> Option { let bytes: u64 = if cfg!(target_os = "linux") { let info = std::fs::read_to_string("/proc/meminfo").ok()?; let kb = info.lines().find_map(|l| l.strip_prefix("MemTotal:"))?.trim().trim_end_matches("kB").trim(); kb.parse::().ok()?.checked_mul(1024)? } else { let (program, args): (&str, &[&str]) = if cfg!(windows) { ("powershell", &["-NoProfile", "-Command", "(Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory"]) } else { ("sysctl", &["-n", "hw.memsize"]) }; let out = Command::new(program).args(args).output().ok()?; String::from_utf8_lossy(&out.stdout).trim().parse().ok()? }; // round to the nearest GB: "8 GB" machines report slightly less Some(bytes.saturating_add(1 << 29) >> 30) } pub fn run(mut cmd: Command, what: &str) -> Result<(), String> { eprintln!("$ {what}"); let status = cmd.status().map_err(|e| format!("{what}: failed to spawn: {e}"))?; if status.success() { Ok(()) } else { Err(format!("{what}: exited with {status}")) } } pub fn metadata() -> Result { let out = cargo().args(["metadata", "--format-version", "1", "--no-deps"]).output().map_err(|e| format!("cargo metadata: {e}"))?; if !out.status.success() { return Err(format!("cargo metadata failed:\n{}", String::from_utf8_lossy(&out.stderr))); } serde_json::from_slice(&out.stdout).map_err(|e| format!("cargo metadata: bad JSON: {e}")) } fn cmd_layers() -> Result<(), String> { let crates = layers::from_metadata(&metadata()?)?; println!("Dependency layering (plan/architecture.md §3)\n"); println!("{:<28} {:<14} workspace deps", "crate", "layer"); for c in &crates { let ws: Vec = c .deps .iter() .filter(|d| d.workspace) .map(|d| { let k = match d.kind { layers::DepKind::Normal => "", layers::DepKind::Dev => " (dev)", layers::DepKind::Build => " (build)", }; format!("{}{k}", layers::short_name(&d.name)) }) .collect(); println!("{:<28} {:<14} {}", c.name, layers::describe(layers::classify(&c.name)), ws.join(", ")); } let violations = layers::check(&crates); println!(); if violations.is_empty() { println!("OK: {} crates, no layering violations.", crates.len()); Ok(()) } else { println!("{} violation(s):", violations.len()); for v in &violations { println!(" - {v}"); } Err(format!("{} layering violation(s)", violations.len())) } } /// Workspace packages that must build for wasm32: all L0–L5 crates plus /// the egui shell and the web app. fn wasm_set() -> Result, String> { let crates = layers::from_metadata(&metadata()?)?; Ok(crates .into_iter() .filter(|c| match layers::classify(&c.name) { Some(layers::Class::Layer(l)) => l <= 5, Some(layers::Class::Standalone) => true, _ => false, }) .map(|c| c.name) .chain(std::iter::once("lightcraft-web".to_string())) .collect()) } fn cmd_wasm() -> Result<(), String> { let set = wasm_set()?; let mut results = Vec::new(); for pkg in &set { let mut c = cargo(); c.args(["check", "--target", "wasm32-unknown-unknown", "-p", pkg]); let ok = run(c, &format!("cargo check --target wasm32-unknown-unknown -p {pkg}")).is_ok(); results.push((pkg.clone(), ok)); } println!("\nwasm32-unknown-unknown check:"); for (p, ok) in &results { println!(" {:<6} {p}", if *ok { "ok" } else { "FAIL" }); } let failed = results.iter().filter(|r| !r.1).count(); if failed == 0 { Ok(()) } else { Err(format!("{failed} crate(s) failed the wasm check")) } } fn cmd_ci() -> Result<(), String> { type Step = (&'static str, Box Result<(), String>>); let steps: Vec = vec![ ( "fmt", Box::new(|| { let mut c = cargo(); c.args(["fmt", "--all", "--", "--check"]); run(c, "cargo fmt --all -- --check") }), ), ( "clippy", Box::new(|| { let mut c = cargo(); c.args(["clippy", "--workspace", "--all-targets", "--", "-D", "warnings"]); run(c, "cargo clippy --workspace --all-targets -- -D warnings") }), ), ( "heif", Box::new(|| { // the optional HEIC/HEIF decoder is off in the workspace build above let mut c = cargo(); c.args(["clippy", "-p", "lightcraft-codecs", "--features", "heif", "--all-targets", "--", "-D", "warnings"]); run(c, "cargo clippy -p lightcraft-codecs --features heif --all-targets -- -D warnings")?; let mut c = cargo(); c.args(["test", "-p", "lightcraft-codecs", "-p", "lightcraft-heif", "--features", "lightcraft-codecs/heif"]); run(c, "cargo test -p lightcraft-codecs -p lightcraft-heif --features lightcraft-codecs/heif")?; // the engine's HEIC import test, with the decoder (the workspace run checks the error) let mut c = cargo(); c.args(["test", "-p", "lightcraft-engine", "--lib", "--features", "lightcraft-codecs/heif", "heic"]); run(c, "cargo test -p lightcraft-engine --lib --features lightcraft-codecs/heif heic") }), ), ( "test", Box::new(|| { let mut c = cargo(); c.args(["test", "--workspace"]); run(c, "cargo test --workspace") }), ), ("parity", Box::new(|| parity::run(&root(), false))), ("layers", Box::new(cmd_layers)), ("assets", Box::new(|| assets::run(&root()))), ("wasm", Box::new(cmd_wasm)), ]; let mut done = Vec::new(); for (name, f) in &steps { eprintln!("\n=== ci: {name} ==="); if let Err(e) = f() { println!("\nCI summary:"); for d in &done { println!(" ok {d}"); } println!(" FAIL {name}: {e}"); for (n, _) in steps.iter().skip(done.len() + 1) { println!(" skip {n}"); } return Err(format!("ci failed at `{name}`")); } done.push(*name); } println!("\nCI summary: all {} steps passed ({})", done.len(), done.join(", ")); Ok(()) } /// CC0 raw samples (raw.pixls.us). Small, representative set; extend freely (CC0 only). /// CC0 raw samples from raw.pixls.us (each verified CC0 on the site). /// The third field is the SHA-256 of the file as downloaded; `cargo xtask corpus --download` checks it. /// One per format / compression variant we decode or deliberately report as unsupported (preview only). const RAW_SAMPLES: &[(&str, &str, &str)] = &[ ( "arw-sony-a7rm4a-compressed.arw", "https://raw.pixls.us/getfile.php/4822/nice/Sony%20-%20ILCE-7RM4A%20-%2014bit%2014bit%20compressed%20%283:2%29.ARW", "690c774f1d7bc1db3fa8c2489762743d8e7586e50b6f65d0b6a61cb467972c67", ), ( "arw-sony-a9m2-compressed.arw", "https://raw.pixls.us/getfile.php/3989/nice/Sony%20-%20ILCE-9M2%20-%2014bit%2014bit%20compressed%20%283:2%29.ARW", "161c2a9da2b5f1e50be6117a0b4da0ce249660b5d7de13568d301c4034716b97", ), ( "arw-sony-a7m3-compressed.arw", "https://raw.pixls.us/getfile.php/2414/nice/Sony%20-%20ILCE-7M3%20-%2014bit%2014bit%20compressed%20%283:2%29.ARW", "250784580ea527442c09004417bb0eead484f2bf3ee8f9121a776ac65bb50d0f", ), ( "arw-sony-a7m3-uncompressed.arw", "https://raw.pixls.us/getfile.php/2418/nice/Sony%20-%20ILCE-7M3%20-%2014bit%2014bit%20uncompressed%20%283:2%29.ARW", "ece80551abf64949dbe826985a80f1d9b265401ee4ea6b989e1829549616fdcd", ), ( "arw-sony-a7m4-14bit.arw", "https://raw.pixls.us/getfile.php/6936/nice/Sony%20-%20ILCE-7M4%20-%2014bit%20%283:2%29.ARW", "639a6d4db881f1359e3ea7e1137b314e59417d24e6d4d862b7202111a2c823b2", ), // lossless compressed (Compression 7): L is 2×2 CFA cells per LJ92 sample; M and S are subsampled ( "arw-sony-a7m4-lossless-l.arw", "https://raw.pixls.us/data/Sony/ILCE-7M4/ILCE-7M4_DSC06674_FullFrame-LossLess-Compressed-Large.ARW", "851b43c2116c4139104a5036f83ac3b6a148789b2142214dd7192c13972b25b6", ), ( "arw-sony-a7m4-lossless-m.arw", "https://raw.pixls.us/data/Sony/ILCE-7M4/ILCE-7M4_DSC06675_FullFrame-LossLess-Compressed-Medium.ARW", "d453005714327addd75bcb99c1c6223173dc92f2a59542d82e6761ef0e0e7571", ), ( "arw-sony-a7m4-lossless-s.arw", "https://raw.pixls.us/data/Sony/ILCE-7M4/ILCE-7M4_DSC06676_FullFrame-LossLess-Compressed-Small.ARW", "cbbd0930c7d8706dff84c68a2004454266e6fd0d8354f5f76a106b5d776e0223", ), // ILCE-7CR (61 MP), one scene in three codings: lossless compressed L (2×2 CFA cells per LJ92 sample) and M // (subsampled YCbCr), and compressed ARW2 ( "arw-sony-a7cr-lossless-l.arw", "https://raw.pixls.us/data/Sony/ILCE-7CR/DSC00795.ARW", "3e1642f3a1ae7c9f93228c5f09f27e362608e6a4ca1b3e5d8dd9eb8fae576997", ), ( "arw-sony-a7cr-lossless-m.arw", "https://raw.pixls.us/data/Sony/ILCE-7CR/DSC00796.ARW", "5bcba4acc52a5b902074581b4a2f5fb3c79ec56bd0fdc1746b9e2c0f9d3e9c88", ), ( "arw-sony-a7cr-compressed.arw", "https://raw.pixls.us/data/Sony/ILCE-7CR/DSC00798.ARW", "f5096e8fbccf0842c8a57763cabd2836608f019eb7fd54f7b22260c2f5bc4da5", ), // ILCE-7CM2 (33 MP, issue #697): lossless compressed L, and the compressed "M-size" coding, which is Bayer at // 4736×3132 with black 512 (only the lossless M/S codings are YCbCr with the 1024 pedestal) ( "arw-sony-a7cm2-lossless-l.arw", "https://raw.pixls.us/data/Sony/ILCE-7CM2/DSC02431.ARW", "342d893bd71fd050c273df181e3039d3f12d88947b0662de5de5325c84cc449b", ), ( "arw-sony-a7cm2-compressed-m.arw", "https://raw.pixls.us/data/Sony/ILCE-7CM2/DSC02436.ARW", "002c86d38a16b08a2438780728b4fda8efcc745fa6c26231dad6af67b383b11e", ), // a dusk sky clipped in green behind a poplar: the clipped-highlight colour of issue #523 ( "arw-sony-a7rm4-14bit-compressed.arw", "https://raw.pixls.us/getfile.php/3480/nice/Sony%20-%20ILCE-7RM4%20-%2014bit%2014bit%20compressed%20%283:2%29.ARW", "e6dafe42643f69ab9d1fd00414b7a1f5104df354bb589201600ac934b29b5e4a", ), // pre-2017 bodies: white balance and black level only in the encrypted SR2SubIFD (#148) ( "arw-sony-rx100m3.arw", "https://raw.pixls.us/data/Sony/DSC-RX100M3/DSC00734.ARW", "cb81392e3a8810231ce341fb45de3e4d1b9e2f87bc47f3c314d084041ccfd138", ), ( "arw-sony-rx100.arw", "https://raw.pixls.us/data/Sony/DSC-RX100/DSC00838.ARW", "579a485b5126a25cbd55cbd5dadfa7d09cf021c99cc7d4869f9e56e3f759390b", ), ( "arw-sony-a7rm2-12bit-uncompressed.arw", "https://raw.pixls.us/data/Sony/ILCE-7RM2/12-bit-uncompressed.ARW", "71e0888396ef52c7e6a990b4e72ebb4d8413a1fc1c35bada449870539cef6e39", ), // older DSLRs whose SR2SubIFD keeps the black level elsewhere than the bodies above (#535): A500 (27152-byte // layout, like the A450/A550), A700 (62112 bytes) ( "arw-sony-a500.arw", "https://raw.pixls.us/data/Sony/DSLR-A500/DSC02421.ARW", "1407fb596a391df67c15b90026a1a76702a2e7386dbdff2f0815b903ea49cead", ), ( "arw-sony-a700.arw", "https://raw.pixls.us/data/Sony/DSLR-A700/DSC07249.ARW", "3159e28892bf0771d01525cd4b6190f9c15bbb19fa2fab6d2515ced0594e8f40", ), // SR2SubIFD white balance (#535): the A500 and A700 above, a third layout of a body that had none before // (SLT-A33, 29000 bytes), and two shots whose maker-note gains differ from the preset applied (5600 K, Shade) ("arw-sony-a33.arw", "https://raw.pixls.us/data/Sony/SLT-A33/DSC01867.ARW", "1a59856394f10d4fadb40f5ab9c6d1c89f473f4dbcdefd216fbbbbf1ad8d21f9"), ( "arw-sony-a3500-5600k.arw", "https://raw.pixls.us/data/Sony/ILCE-3500/DSC06923.ARW", "04c4fe04425c3e6fff7c8af0f811923c35e750300373357bd54342150c5505d8", ), ( "arw-sony-a7s-shade.arw", "https://raw.pixls.us/data/Sony/ILCE-7S/DSC04125.ARW", "7cc338a0abc8fdad32d61006f1f8f412297b93e040c7efba572eb2bd8f8e8be2", ), // pre-2017 bodies in the camera's 16:9 mode (#535): the ILCE-7SM2 records it in FullImageSize, the DSLR-A580 only // in the Exif image size ( "arw-sony-a7sm2-16x9.arw", "https://raw.pixls.us/data/Sony/ILCE-7SM2/DSC01005.ARW", "46044fb6a9c805f2b4915cd4970316b4d04b0566bcf5287afaad3ef648d7a3db", ), ( "arw-sony-a580-16x9.arw", "https://raw.pixls.us/data/Sony/DSLR-A580/RAW_SONY_A580.ARW", "5b0924d39151239dce19e92e08318f4f62a5a8ac276bd7180ec8463d2cfee709", ), // packed 12-bit ARW (two pixels per three bytes): the DSLR-A900 ( "arw-sony-a900-packed12.arw", "https://raw.pixls.us/data/Sony/DSLR-A900/_DSC7969.ARW", "ac7c1532df77c321e8010aa1be60c1b9f245b1ac0db6f38fe617a73aae81af50", ), // CR2 colour-filter layouts differ by model (issue #85): CR2CFAPattern 3 (GBRG) and 1 (RGGB) samples ( "cr2-canon-40d.cr2", "https://raw.pixls.us/data/Canon/EOS%2040D/_MG_0153.CR2", "775c806358fedddec7622113a5e399a3330bd5a65e35e37ae1108d8bf58067be", ), ( "cr2-canon-550d.cr2", "https://raw.pixls.us/data/Canon/EOS%20550D/IMG_4047.CR2", "f390e0ba566f0be9af2d8e7f955b815996630c0c3cb13fcfb95d98baec1890f6", ), ( "cr2-canon-5d2.cr2", "https://raw.pixls.us/data/Canon/EOS%205D%20Mark%20II/08.canon.raw.cr2", "12b3ad6aed9fbcd19ba3bfffcd0769aa5a041d610205eee840bf4b2c420dffae", ), ( "cr2-canon-5dsr.cr2", "https://raw.pixls.us/data/Canon/EOS%205DS%20R/_DSR2002.CR2", "01b94b0586419d64894ccdf2e7b9f1defeedc7b51dfcd306c622fe784181a9b8", ), ( "cr2-canon-6d.cr2", "https://raw.pixls.us/data/Canon/EOS%206D/EOS_6D_RAW.CR2", "360842779d08fe4805b4a2fe4979f06fdc6da982c85c3acb181f25bcf4c9f536", ), ( "cr2-canon-7d.cr2", "https://raw.pixls.us/data/Canon/EOS%207D/RAW_CANON_EOS_7D-raw.CR2", "b5e47c5fcf7332ac03e0134926f17a338a42e68c1fd7f83e16f45f4b767544e8", ), ( "cr2-canon-5d3-sraw2.cr2", "https://raw.pixls.us/getfile.php/773/nice/Canon%20-%20EOS%205D%20Mark%20III%20-%20sRAW2%20%28sRAW%29.CR2", "a79065e78a6c5bdbc8726e786ade02d54a7d496cc3cb4504d804c924a3d999da", ), ( "cr2-canon-5d3.cr2", "https://raw.pixls.us/getfile.php/771/nice/Canon%20-%20EOS%205D%20Mark%20III.CR2", "ec069b178b9383d80c72f8cdc1b79bd54ca451e7c20793b109d8ad73bef6bdf6", ), ( "cr2-canon-80d.cr2", "https://raw.pixls.us/getfile.php/1294/nice/Canon%20-%20EOS%2080D%20-%20RAW%20%283:2%29.CR2", "8f28465cee09844ffad95dbd3ec91923717a329c5ec4f3f405f5b4fce83aaea3", ), ( "cr3-canon-m50-craw.cr3", "https://raw.pixls.us/getfile.php/2663/nice/Canon%20-%20EOS%20M50%20-%20CRAW%20%283:2%29.CR3", "15384b775867ec4c42b11882837f1e368cedc0561832ffab271221e6bb80be4c", ), ( "cr3-canon-m50-raw.cr3", "https://raw.pixls.us/getfile.php/4657/nice/Canon%20-%20EOS%20M50%20-%203:2.CR3", "1ba9ad6b51b315b88820eb0fe5fd7f52bc136ba37b1a5ca76825ebfe25b18058", ), ( "cr3-canon-r100-raw.cr3", "https://raw.pixls.us/getfile.php/7896/nice/Canon%20-%20EOS%20R100%20-%20RAW%20%283:2%29.CR3", "6d83217d58a5e6d2dabcf470430e91a16676b60531c025b81fa7453fc74b0521", ), ( "cr3-canon-r100-craw.cr3", "https://raw.pixls.us/getfile.php/7897/nice/Canon%20-%20EOS%20R100%20-%20CRAW%20%283:2%29.CR3", "0b66842b2fe00329ebc05fe8ab9357ddbbe1a0a2d2e69a2893102de7fdf5c942", ), ( "cr3-canon-r8-raw.cr3", "https://raw.pixls.us/getfile.php/6585/nice/Canon%20-%20EOS%20R8%20-%203:2.CR3", "7d5c6dbb11ff7e6ee58715d90a20f5d801e8b103f4711ff6ea329ceafcef254c", ), ( "cr3-canon-r8-craw.cr3", "https://raw.pixls.us/getfile.php/6587/nice/Canon%20-%20EOS%20R8%20-%203:2.CR3", "df33cf394573645ce03dea1b2e9f0b5cc2b7734e9e3391ee7114151414cf2812", ), // EOS R5 Mark II, full frame and 1.6x crop mode: odd-height (2825- / 1787-row) Bayer planes. ( "cr3-canon-r5m2-raw.cr3", "https://raw.pixls.us/getfile.php/7881/nice/Canon%20-%20EOS%20R5%20Mark%20II%20-%20RAW%20%283:2%29.CR3", "d6e6aa3b493ea8936dff0efb0cc17c87471437e7317bce37c8c82ba08b9cab7b", ), ( "cr3-canon-r5m2-craw.cr3", "https://raw.pixls.us/getfile.php/7882/nice/Canon%20-%20EOS%20R5%20Mark%20II%20-%20CRAW%20%283:2%29.CR3", "b3c08a5c7a97299dfd58896a12b939e7b43ec78682761812524825e6e5d087be", ), ( "cr3-canon-r5m2-apsc-raw.cr3", "https://raw.pixls.us/getfile.php/7883/nice/Canon%20-%20EOS%20R5%20Mark%20II%20-%20RAW%20%283:2%29.CR3", "9f88c0ff012924193b7f4497559d133dfe626766d600b5d67689156721739ead", ), ( "cr3-canon-r5m2-apsc-craw.cr3", "https://raw.pixls.us/getfile.php/7884/nice/Canon%20-%20EOS%20R5%20Mark%20II%20-%20CRAW%20%283:2%29.CR3", "6a597497776a6abbfab8fcf12d0086ac7a3f8afea2879d61accf6bbf48d357d7", ), ( "dng-adobe-canon-5d3-linear-lj92.dng", "https://raw.pixls.us/getfile.php/1032/nice/Adobe%20DNG%20Converter%20-%20Canon%20EOS%205D%20Mark%20III%20-%20Lossless%20JPEG%20compression%2C%20rgb%20%283:2%29.DNG", "0608c9f277307b745530e61b589c465540611df22f9a1fe2d01237c5b2b4c13b", ), ( "dng-adobe-canon-5d3-lj92.dng", "https://raw.pixls.us/getfile.php/1024/nice/Adobe%20DNG%20Converter%20-%20Canon%20EOS%205D%20Mark%20III%20-%2016bit%2016bit%20Lossless%20JPEG%20compression%20%283:2%29.DNG", "3118116735d4f6dd01fd9d6a80ee9aac52a2c2debdc6dcd112bd5e3059044a55", ), ( "dng-adobe-canon-5d3-lossy.dng", "https://raw.pixls.us/getfile.php/1023/nice/Adobe%20DNG%20Converter%20-%20Canon%20EOS%205D%20Mark%20III%20-%20Lossy%20JPEG%20compression%20%283:2%29.DNG", "159326856c29073e845c3c5a9ecf98c6474f43ca15798a88ad5e2baecd0664b7", ), // Apple ProRAW (iPhone 12 Pro, iOS 14.3): LinearRaw LJ92 tiles, ProfileToneCurve, ProfileGainTableMap, a sky matte. ( "dng-apple-iphone12pro-proraw.dng", "https://raw.pixls.us/data/Apple/iPhone%2012%20Pro/IMG_1361.DNG", "e91e77a4533ed7cce551d83330676ea5c47dd5e55fb38adda7819366afdbdfc2", ), ( "dng-canon-5d3-14bit-small.dng", "https://raw.pixls.us/getfile.php/2204/nice/Canon%20-%20EOS%205D%20Mark%20III%20-%2014bit%2014bit%20%282.3471882640587%29.dng", "1d77dcc6cdb839b10c1948f0b4471984ab48cf15e973fb77520584cee72b603e", ), ( "dng-canon-5d3-16bit-169.dng", "https://raw.pixls.us/getfile.php/2649/nice/Canon%20-%20EOS%205D%20Mark%20III%20-%2016bit%20%2816:9%29.dng", "bc29ac8a37c800346749b9a5a1adc2722357f7f0e49df05a7104454881604b92", ), ( "dng-canon-5d3-16bit.dng", "https://raw.pixls.us/getfile.php/885/nice/Canon%20-%20EOS%205D%20Mark%20III%20-%2016bit%2016bit%20RAW.dng", "6275226bfa2d86ba479130999d045ea0b8da6be4b011130c9eb91cd6a0eb2233", ), ( "dng-google-pixel2xl.dng", "https://raw.pixls.us/getfile.php/2206/nice/Google%20-%20Pixel%202%20XL%20-%2016bit%20%284:3%29.dng", "5541093a369f0487fef92bcd1f5fef1be6e4e3cec2aa4d52ad38d2211f3309d7", ), ( "dng-ricoh-gr3.dng", "https://raw.pixls.us/getfile.php/3115/nice/Ricoh%20-%20GR%20III%20-%2014bit%20%283:2%29.DNG", "05513ee72f7cac4165534c9f64995412084f414a033c80c473c79fd94154292e", ), ( "nef-nikon-d5100-lossless.nef", "https://raw.pixls.us/getfile.php/1597/nice/Nikon%20-%20D5100%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.nef", "3ce328830942381648be26b372a54b317fdb27b63c1aa9c2ee1fce076a2e1b4f", ), ( "nef-nikon-d5100-uncompressed.nef", "https://raw.pixls.us/getfile.php/1598/nice/Nikon%20-%20D5100%20-%2014bit%2014bit%20uncompressed%20%283:2%29.nef", "2fb2f1b87a3b89de5ba9e56527f21a912ca624f2fa2a594cef108ee8d7180412", ), ( "nef-nikon-d7000-lossy12.nef", "https://raw.pixls.us/getfile.php/961/nice/Nikon%20-%20D7000%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "986db2bf9ed08cf095bb94cfbaf02f0e89d123edad28b63c05133e7815749486", ), ( "nef-nikon-d7500-lossless12.nef", "https://raw.pixls.us/getfile.php/1532/nice/Nikon%20-%20D7500%20-%2012bit%2012bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "1f4e58a961d3d317fa39a7e1c8948b825651e968c8cd06e49e4239f612faccad", ), ( "nef-nikon-d7500-lossless14.nef", "https://raw.pixls.us/getfile.php/1534/nice/Nikon%20-%20D7500%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "430b4f1be4e53a011861b63294ad19fdc0353ec3ea62104f77d4c193e3dd3fc8", ), ( "nef-nikon-zf-he.nef", "https://raw.pixls.us/download/data/Nikon/Z%20f/DSC_0043.NEF", "98d6ca8e6c98048ca7ffed68ccaeda7b2b9f03807f0d320d97d5678db21748c2", ), ( "nef-nikon-zf-lossless.nef", "https://raw.pixls.us/download/data/Nikon/Z%20f/DSC_0040.NEF", "83c82be0be8865d796096dfbcc8ef2abf5af1bd37db44dfad6715070b0c99d15", ), ( "nrw-nikon-b700-uncompressed.nrw", "https://raw.pixls.us/getfile.php/1621/nice/Nikon%20-%20COOLPIX%20B700%20-%2012bit%2012bit%20uncompressed%20%284:3%29.NRW", "a175d5892304e79282add07eacf4bdc498ca3f050af48cf989c080355b4735ec", ), ( "orf-olympus-e1.orf", "https://raw.pixls.us/getfile.php/1800/nice/Olympus%20-%20E-1%20-%2016bit%20%284:3%29.ORF", "042286653fbae5b085bef4a4e626145385ea6e82e817f166b4904abcef64457c", ), ( "orf-olympus-e400.orf", "https://raw.pixls.us/getfile.php/2151/nice/Olympus%20-%20E-400%20-%2016bit%20%284:3%29.ORF", "1354e0ac98ea90820227650031d8215637a2aaabd15de995c5a1e00b1986261b", ), ( "orf-olympus-em1.orf", "https://raw.pixls.us/getfile.php/1051/nice/Olympus%20-%20E-M1%20-%2016bit%20%284:3%29.orf", "19ba17e778ae802d4039f0e88bb1cd68825780788b8058c479067e32b9a63eda", ), ( "orf-olympus-em10iii.orf", "https://raw.pixls.us/getfile.php/1787/nice/Olympus%20-%20E-M10%20Mark%20III%20-%2016bit%20%284:3%29.ORF", "11d90cbb564ad2c660c7a8d5d81d99c2c018aa27fdec45ed6c461fa5d24f942b", ), ( "orf-olympus-xz2.orf", "https://raw.pixls.us/getfile.php/1432/nice/Olympus%20-%20XZ-2%20-%2012bit%20%284:3%29.orf", "675fefe7c9e99281783b987889d723b5f46692f5c20e19fed5e422c7c6d2636b", ), ( "pef-pentax-k10d.pef", "https://raw.pixls.us/getfile.php/2239/nice/Pentax%20-%20K10D%20-%2012bit%2012bit%20compressed%20%283:2%29.PEF", "e35ae4154a468be3154f5f462e884ba5941f010d3e8f23d347fbec14809f44d3", ), ( "pef-pentax-k3.pef", "https://raw.pixls.us/getfile.php/1075/nice/Pentax%20-%20K-3%20-%2014bit%20%283:2%29.PEF", "abfb3907b53734b5f353e8de0c6173470c7aad07f9cecc10f723d222a49dec9a", ), ( "pef-pentax-k5iis.pef", "https://raw.pixls.us/getfile.php/1198/nice/Pentax%20-%20K-5%20II%20s%20-%2014bit%20%283:2%29.PEF", "e579e7360c35e512f9c3a5c0eb9519575b87b489c6f86be82590f7706a7ed17b", ), // Samsung SRW, one file per packing: 12-bit MSB-first (NX10), 12-bit LSB-first (NX20), 16-bit words (EX1). ( "srw-samsung-nx10.srw", "https://raw.pixls.us/getfile.php/5913/nice/Samsung%20-%20NX10%20-%2012bit%20%283:2%29.SRW", "dead7b4ad83b739ff7b8a1218882589f66cb14efc09f79eeba7a1dcbf7abd29f", ), ( "srw-samsung-nx20.srw", "https://raw.pixls.us/getfile.php/5370/nice/Samsung%20-%20NX20%20-%2012bit%20%283:2%29.SRW", "8a367db506b8f7a6661a6f33a730467cfb3bfd7e46020a9f0df702330a7b45bb", ), ( "srw-samsung-ex1.srw", "https://raw.pixls.us/getfile.php/1204/nice/Samsung%20-%20EX1%20-%2014bit%20%284:3%29.SRW", "a084890fd9d7995ceb746c18ecf5be48c95baf14286d5c0c480cc3daa25f3e37", ), ( "raf-fuji-xa2-12bit-bayer.raf", "https://raw.pixls.us/getfile.php/2883/nice/Fujifilm%20-%20X-A2%20-%2012bit%2012bit%20uncompressed%20%283:2%29.RAF", "58ad687b23138c3c49ebeb6c1f80daf13185349be364b947e2bf27e39a462d2f", ), ( "raf-fuji-xa5-14bit-bayer.raf", "https://raw.pixls.us/getfile.php/2526/nice/Fujifilm%20-%20X-A5%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "46daaf8c2b07f40bd01f737181d048a497bb0a87615a1fde65809fdd5de86bf1", ), ( "raf-fuji-xe1-12bit.raf", "https://raw.pixls.us/getfile.php/3098/nice/Fujifilm%20-%20X-E1%20-%2012bit%2012bit%20uncompressed%20%283:2%29.RAF", "0fa01fa1a674bcfa40f659225b4e66c5bedf15d2f78407ca1966dc8f38cd0e9f", ), ( "raf-fuji-xt20-14bit.raf", "https://raw.pixls.us/getfile.php/1177/nice/Fujifilm%20-%20X-T20%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "afe552f4a2794c7aa2376dd826165354b243dcf6f2296b01505dded8c8e4be76", ), ( "raf-fuji-xt20-compressed.raf", "https://raw.pixls.us/getfile.php/1178/nice/Fujifilm%20-%20X-T20%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "a23045101b2912e64f154100d646c228c0d16585d21e95e0d1a006e537f7784c", ), ( "raw-panasonic-fz50.raw", "https://raw.pixls.us/getfile.php/2234/nice/Panasonic%20-%20DMC-FZ50%20-%204:3.RAW", "a776a941758214bf4d1342e2b89ed756bfcad5877e038cf9df3bdda502c432ea", ), ( "raw-panasonic-fz8.raw", "https://raw.pixls.us/getfile.php/2282/nice/Panasonic%20-%20DMC-FZ8%20-%204:3.RAW", "a11f1534f3092a4d5f2b57d182f6b06f8d26cf766eb463c3e02b26a338b63b8b", ), ( "rw2-panasonic-fz1000m2-4x3.rw2", "https://raw.pixls.us/getfile.php/4706/nice/Panasonic%20-%20DC-FZ10002%20-%204:3.RW2", "ab30922774bd829a992471d89eeefe1e829565a886d1477958130a2fa4fb77a1", ), // Fujifilm predictive compression: older X-Trans, 40 MP X-Trans, 14/16-bit GFX; both compression modes. ( "raf-fuji-gfx100-3773.raf", "https://raw.pixls.us/getfile.php/3773/nice/Fujifilm%20-%20GFX%20100%20-%2016bit%2016bit%20compressed%20%284:3%29.RAF", "018781e126842596fcf3876b3fb6cd8973dc3936ccc753ee8648618be8889287", ), ( "raf-fuji-gfx100-3775.raf", "https://raw.pixls.us/getfile.php/3775/nice/Fujifilm%20-%20GFX%20100%20-%2014bit%2014bit%20compressed%20%284:3%29.RAF", "0e7dad9819a748bb3d3be26bbf5770d4968e2d80b9cb41d97036bf7c27f7bfe7", ), ( "raf-fuji-gfx100rf-8091.raf", "https://raw.pixls.us/getfile.php/8091/nice/Fujifilm%20-%20GFX100RF%20-%2016bit%20compressed%20%284:3%29.RAF", "14bed5ac8191d6f2a7c82984e3bf6470ad4740df329293eac42b8018cc6a668a", ), ( "raf-fuji-gfx100s-4495.raf", "https://raw.pixls.us/getfile.php/4495/nice/Fujifilm%20-%20GFX100S%20-%2016bit%2016bit%20lossless%20compressed%20%284:3%29.RAF", "a7bf8f061b603f7ef5fd29276eb6b2ac57355ca2f589a340117bfff0d03c065c", ), ( "raf-fuji-gfx100s-4503.raf", "https://raw.pixls.us/getfile.php/4503/nice/Fujifilm%20-%20GFX100S%20-%2016bit%2016bit%20compressed%20%284:3%29.RAF", "1bb4608b61861a3d9e85b0ca6c00689b8ba4620cbe8579374d958c21ed08edf0", ), ( "raf-fuji-gfx50s-1435.raf", "https://raw.pixls.us/getfile.php/1435/nice/Fujifilm%20-%20GFX%2050S%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "a7124d13910e0241a6b035154bc1fcdb7be4439371d043b1e1950a0251feb51e", ), ( "raf-fuji-xe5-8509.raf", "https://raw.pixls.us/getfile.php/8509/nice/Fujifilm%20-%20X-E5%20-%2014bit%20lossy%20compressed%20%283:2%29.RAF", "28f56cc9784164209e92fae209bdcc78267bd692aa2fb964595485f7e93692ab", ), ( "raf-fuji-xh2-6001.raf", "https://raw.pixls.us/getfile.php/6001/nice/Fujifilm%20-%20X-H2%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "caeadb2666f6c5d9bbe32fbe692c2079b6a7e028f8514a13173f360656d08507", ), ( "raf-fuji-xh2-6002.raf", "https://raw.pixls.us/getfile.php/6002/nice/Fujifilm%20-%20X-H2%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "109be38f59963c9b8ff289ebe1f5ec9168c52f609e5b601432bd194520b4605b", ), ( "raf-fuji-xm5-7748.raf", "https://raw.pixls.us/getfile.php/7748/nice/Fujifilm%20-%20X-M5%20-%2014bit%20compressed%20%283:2%29.RAF", "c76ce546e15727abb4ba201471010c554403176963a1a6b8cc017462606429e5", ), ( "raf-fuji-xt2-865.raf", "https://raw.pixls.us/getfile.php/865/nice/Fujifilm%20-%20X-T2%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "f756ad5be551a8b3e1b503a8a6f7e8e637fba519c0b0f8c79dd58e94b0287602", ), ( "raf-fuji-xt4-3914.raf", "https://raw.pixls.us/getfile.php/3914/nice/Fujifilm%20-%20X-T4%20-%2014bit%2014bit%20lossless%20compressed%20%283:2%29.RAF", "07ea642656074834ffe5c661870a612ffa2e80fc1218a05166ee966bbe5f6fae", ), ( "raf-fuji-xt4-3918.raf", "https://raw.pixls.us/getfile.php/3918/nice/Fujifilm%20-%20X-T4%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "871836938ffa695f4c41765ddb107c2703ce755f7f3ced7e10f9e04746f1734e", ), ( "raf-fuji-xt5-6122.raf", "https://raw.pixls.us/getfile.php/6122/nice/Fujifilm%20-%20X-T5%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "b2a067e7fda16338f15c2532caa12b238b2415dc1c75a96a6d24d3445cfd0ae3", ), ( "raf-fuji-xt5-6123.raf", "https://raw.pixls.us/getfile.php/6123/nice/Fujifilm%20-%20X-T5%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "cddd7ae0c43f9280876e5fdcbdf8878718972ebd3d034d8affc8cfc6752d33dc", ), ( "raf-fuji-xt50-7807.raf", "https://raw.pixls.us/getfile.php/7807/nice/Fujifilm%20-%20X-T50%20-%2014bit%20compressed%20%283:2%29.RAF", "3a8a9ac6d92274969aaa1f55ea669191b98bb8f588d00ec8ec17afd8b3963dea", ), // Sony ILCE-7RM6 ARW6, CC0 1.0 (RawDB): one full-frame Compressed (RAW-C) and one APS-C Compressed HQ (RAW-C-HD) file; // docs/arw6-compression.md lists the rest of the set. ( "arw6-sony-ilce7rm6-apsc-land-hq.arw", "https://rawdb.dnglab.org/api/download/Sony/ILCE-7RM6/arw6/ILCE-7RM6_APSC_land_RAW-C-HD.ARW", "b60a7e752d2a8102ccbe6eebcfdbf533c6b0f2545739090873e9e8eb32cc0637", ), ( "arw6-sony-ilce7rm6-ff-land-c.arw", "https://rawdb.dnglab.org/api/download/Sony/ILCE-7RM6/arw6/ILCE-7RM6_FF_land_RAW-C.ARW", "d900d6cbe838be864269ad54de4a33fcac7eb3a3d4f91009739f770b8f85a23b", ), ( "rw2-panasonic-g9-b.rw2", "https://raw.pixls.us/getfile.php/2348/nice/Panasonic%20-%20DC-G9%20-%204:3.RW2", "16282357ce0143ff7d36737f82074662db7aa0790ecd309196f406baf0f586a7", ), ( "rw2-panasonic-g9.rw2", "https://raw.pixls.us/getfile.php/2585/nice/Panasonic%20-%20DC-G9%20-%204:3.RW2", "7a56babeb19f9bde3eaa532a4c8d1b11637a0f550963a1182ec845722c65583d", ), ( "rw2-panasonic-gh1.rw2", "https://raw.pixls.us/getfile.php/1323/nice/Panasonic%20-%20DMC-GH1%20-%204:3.RW2", "2b846f932c665f196af9af97b18469730331b60b2c62811969be7db245ce6cce", ), ( "rw2-panasonic-gh5.rw2", "https://raw.pixls.us/getfile.php/1517/nice/Panasonic%20-%20DC-GH5%20-%204:3.RW2", "dae2281df393d8c3c1b8c513d00985f1834ae0e69ce18fbd571370c25d95d22b", ), ( "rw2-panasonic-gh5m2.rw2", "https://raw.pixls.us/getfile.php/5082/nice/Panasonic%20-%20DC-GH5M2%20-%204:3.RW2", "0ea0efd2a9442d8c68508e4196e29f1da4577407dc3df5add4cf360f70493c7b", ), ( "rw2-panasonic-gh5s.rw2", "https://raw.pixls.us/getfile.php/2603/nice/Panasonic%20-%20DC-GH5S%20-%204:3.RW2", "b617151876e62b492641cef14b8c98ee3797e5014d24c6af1c780715a501fa53", ), ( "rw2-panasonic-gh6.rw2", "https://raw.pixls.us/getfile.php/5876/nice/Panasonic%20-%20DC-GH6%20-%204:3.RW2", "07996bca904a178d02c5f56ee03a8dce775a0e1150c1beeaec51d72ff5e700d0", ), ( "rw2-panasonic-gx80.rw2", "https://raw.pixls.us/getfile.php/1569/nice/Panasonic%20-%20DMC-GX80%20-%204:3.RW2", "6e9a419c70c2124630912b2934027c635d3871e3d22dd91fed0655d58cfb5382", ), ( "rw2-panasonic-s1.rw2", "https://raw.pixls.us/getfile.php/3038/nice/Panasonic%20-%20DC-S1%20-%203:2.RW2", "45309a096d6010281e2fa310e6ec2fe1bcc02947fa37b1a2414cfc7377ce4ac6", ), ( "rw2-panasonic-s5-format7.rw2", "https://raw.pixls.us/getfile.php/6339/nice/Panasonic%20-%20DC-S5%20-%203:2.RW2", "3615c85207097180b231f0c89d018eb3f1a71988780612921eb0a05246bca706", ), ( "rw2-panasonic-s5m2.rw2", "https://raw.pixls.us/getfile.php/7790/nice/Panasonic%20-%20DC-S5M2%20-%2014bit%20%283:2%29.RW2", "53a171521a7f9af6910b4ab61c5a4a42de0cceb24166e15b07eee1e00675028f", ), ( "rw2-panasonic-s9.rw2", "https://raw.pixls.us/getfile.php/7702/nice/Panasonic%20-%20DC-S9%20-%203:2.RW2", "290ad5b4e396cb241a59459b2613d2b0659a03ff654e5d5368b3376d35812e50", ), ( "rwl-leica-dlux7.rwl", "https://raw.pixls.us/getfile.php/4204/nice/Leica%20-%20D-Lux%207%20-%204:3.RWL", "4f6db6492da83f7f2a5012591e370557249d1ed44d4c948784016605b799327c", ), ( "nef-nikon-d700.nef", "https://raw.pixls.us/getfile.php/2249/nice/Nikon%20-%20D700%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "00c3314f2ccf92aff17644943e6149e8793b517c24bb2c38a15ec41f3af109cb", ), ( "raf-fujifilm-xf10.raf", "https://raw.pixls.us/getfile.php/3124/nice/Fujifilm%20-%20XF10%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "0486676fdbbdc7f3f4c63cd45aa76581cbc1316f4c9baef8781bced0fbc137db", ), ( "raf-fujifilm-x-a10.raf", "https://raw.pixls.us/getfile.php/3570/nice/Fujifilm%20-%20X-A10%20-%2012bit%2012bit%20uncompressed%20%283:2%29.RAF", "05309c5434500cc53d5782072cc0dcdd947d2f0a34f0ddcd4656c82cc7803272", ), ( "nef-nikon-d5300.nef", "https://raw.pixls.us/getfile.php/8365/nice/Nikon%20-%20D5300%20-%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "0ae88fc81f082929d76dd1b932aacf7815cd6bc670b96ef55a81928e11084a6c", ), ( "raf-fujifilm-x-t100.raf", "https://raw.pixls.us/getfile.php/2676/nice/Fujifilm%20-%20X-T100%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "0af086b9569b59317da42b8e136013245486073b6b8d409fc997a71788538c4d", ), ( "raf-fujifilm-x-pro1.raf", "https://raw.pixls.us/getfile.php/1191/nice/Fujifilm%20-%20X-Pro1%20-%2012bit%2012bit%20uncompressed%20%283:2%29.RAF", "0b1046c299d9eb222a8f003bd047f2a34f507da0d1704ac32cefbc82f799d121", ), ( "nef-nikon-1-v1.nef", "https://raw.pixls.us/getfile.php/2210/nice/Nikon%20-%201%20V1%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "0dc76bc274f9cb776eb930683a4e53a3ebede1719abafd1cba4b0c800f13f7e4", ), ( "nef-nikon-1-j4.nef", "https://raw.pixls.us/getfile.php/5922/nice/Nikon%20-%201%20J4%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "0e2887892b8cfc80891b2c510721088fcac6d77eff9ba68089f382a0115b274c", ), ( "raf-fujifilm-gfx100s-ii.raf", "https://raw.pixls.us/getfile.php/7772/nice/Fujifilm%20-%20GFX100S%20II%20-%2016bit%20uncompressed%20%284:3%29.RAF", "10e007f3d1aef2ac9bf4da063ea1983e44515af818bf0ab63e3703cd67803810", ), ( "nef-nikon-d610.nef", "https://raw.pixls.us/getfile.php/888/nice/Nikon%20-%20D610%20-%2012bit%2012bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "11f0a71bb4141a8ed44c7e1c64f9a12571f5f67a11571f2bde8516aa95a7bea3", ), ( "nef-nikon-d5.nef", "https://raw.pixls.us/getfile.php/1636/nice/Nikon%20-%20D5%20-%2014bit%2014bit%20uncompressed%20%283:2%29.NEF", "13191560a6a9d9ed4156ec5d20863277c9618916aaba934758c5ae2be6654f6a", ), ( "nef-nikon-d2h.nef", "https://raw.pixls.us/getfile.php/5227/nice/Nikon%20-%20D2H%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%201%29%29%20%283:2%29.NEF", "155edb938f884ea7372ce98d4ff5f965c3e413b43b95bc9923da6e92082cf914", ), ( "nef-nikon-z-6-2.nef", "https://raw.pixls.us/getfile.php/4160/nice/Nikon%20-%20Z%206_2%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "1b67d15817dbd4143a1f1089e2f09e319a2a2327c124e2643284509dd7621030", ), ( "nrw-nikon-coolpix-p1000.nrw", "https://raw.pixls.us/getfile.php/3381/nice/Nikon%20-%20COOLPIX%20P1000%20-%2012bit%2012bit%20uncompressed%20%284:3%29.NRW", "1d9470ee083f914e51aa0be782161b432f27f87dbef551a59ec435f5dbc289dd", ), ( "raf-fujifilm-finepix-x100.raf", "https://raw.pixls.us/getfile.php/2392/nice/Fujifilm%20-%20FinePix%20X100%20-%2012bit%2012bit%20uncompressed%20%283:2%29.RAF", "1f4aea4fa43dd314f8b90954d7823655d4906d3e468a9ea014652b872a68db16", ), ( "raf-fujifilm-x30.raf", "https://raw.pixls.us/getfile.php/1144/nice/Fujifilm%20-%20X30%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "1f65f680600c85a6f561d2b0ad7cd1f9d93ee7f733aafe4ecd37667d984dd6c4", ), ( "raf-fujifilm-finepix-x10.raf", "https://raw.pixls.us/getfile.php/1344/nice/Fujifilm%20-%20FinePix%20X10%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "206448688c49b0a9da74dd94f12aba143c2d8842cb5bbf64d4ecdc501874451b", ), ( "nef-nikon-d2xs.nef", "https://raw.pixls.us/getfile.php/2871/nice/Nikon%20-%20D2Xs%20-%2012bit%2012bit%20uncompressed%20%283:2%29.NEF", "2204bc2e2178bf594e17886ca92a50a94350403a110846ca6e83bdc5f3352706", ), ( "nef-nikon-d4.nef", "https://raw.pixls.us/getfile.php/1974/nice/Nikon%20-%20D4%20-%2014bit%2014bit%20uncompressed%20%283:2%29.NEF", "23aa2dd3c409b3cbbfeea3e3f7b6752180efa15430d6e059e87404e969875cd7", ), ( "nef-nikon-d800.nef", "https://raw.pixls.us/getfile.php/750/nice/Nikon%20-%20D800%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "26d58c21ed3019af5a22ef6bc02f017b863aad9eafcf84252ed375cd495c0efb", ), ( "nef-nikon-d780.nef", "https://raw.pixls.us/getfile.php/3825/nice/Nikon%20-%20D780%20-%2012bit%2012bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "3178d0656e3b5fbe90176e38a1cd608d0b69292299445932dddc9a0b2d196b36", ), ( "nef-nikon-d850.nef", "https://raw.pixls.us/getfile.php/1835/nice/Nikon%20-%20D850%20-%2012bit%2012bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "31b7fe298a5c91694c6ca8b3284a0a016e572a02c3964b502d4732e8e9283da8", ), ( "raf-fujifilm-x-e2s.raf", "https://raw.pixls.us/getfile.php/745/nice/Fujifilm%20-%20X-E2S%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "330fc84b597e7be6d7477aad5715705efaa99d4663eb05aa47e1250d6f421549", ), ( "nef-nikon-d500.nef", "https://raw.pixls.us/getfile.php/2504/nice/Nikon%20-%20D500%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "33c96a2ba7167f780928767c0545719737d601883e5f98e5edba4f71bdc99d83", ), ( "raf-fujifilm-gfx-50r.raf", "https://raw.pixls.us/getfile.php/2979/nice/Fujifilm%20-%20GFX%2050R%20-%2014bit%2014bit%20compressed%20%283:2%29.raf", "35109fc20a849026c43c47674902431ef5a2d54b09b616995263dc75df17912f", ), ( "nef-nikon-df.nef", "https://raw.pixls.us/getfile.php/1385/nice/Nikon%20-%20Df%20-%2012bit%2012bit%20uncompressed%20%283:2%29.NEF", "38ea7aba6b7e0cdbd338fe6703d3c98291f4a9a28b0d1a81bfb1f77b21712c63", ), ( "raf-fujifilm-x-s10.raf", "https://raw.pixls.us/getfile.php/4188/nice/Fujifilm%20-%20X-S10%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "3d080f9ce8ac65c4beab1e9c0f49f7c72cdec71f31fe9e27dd1d88e551a1c262", ), ( "nef-nikon-1-v2.nef", "https://raw.pixls.us/getfile.php/1693/nice/Nikon%20-%201%20V2%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "3d29dfa6397b0aa4e72969bb5b85d040e8bebf2e02f61f6364f580ce39f30bf2", ), ( "nef-nikon-1-v3.nef", "https://raw.pixls.us/getfile.php/2802/nice/Nikon%20-%201%20V3%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "3f5376481f9ae59e9712b537dcc4eaffa72e311a8768c5396414506ae2eb1d69", ), ( "nef-nikon-d3s.nef", "https://raw.pixls.us/getfile.php/5203/nice/Nikon%20-%20D3S%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "402898e57007a4176b8686019ef2878c28481f7520c6136127f00148de9960b5", ), ( "nef-nikon-z-fc.nef", "https://raw.pixls.us/getfile.php/4812/nice/Nikon%20-%20Z%20fc%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.nef", "4099ecc46ebaca26e2a66a96a8313fed5e8c707b3836ccf0e77a134844b041c1", ), ( "nef-nikon-d810.nef", "https://raw.pixls.us/getfile.php/2029/nice/Nikon%20-%20D810%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "40a9df99865ad25a68b1131014cf954fb72da8bc32991b6a5e19d14937e21bc9", ), ( "raf-fujifilm-x-a3.raf", "https://raw.pixls.us/getfile.php/1371/nice/Fujifilm%20-%20X-A3%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "4187cb5caa72320a74e9b4355db01e8e21edd43f3084873f9b9b67169d8d4ad8", ), ( "nef-nikon-d40.nef", "https://raw.pixls.us/getfile.php/3618/nice/Nikon%20-%20D40%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%201%29%29%20%283:2%29.NEF", "44e88bc77b7a531b22647bcd07b9393c4568062e8f0906d3bbdecb42fbe29e03", ), ( "nef-nikon-d800e.nef", "https://raw.pixls.us/getfile.php/1303/nice/Nikon%20-%20D800E%20-%2014bit%2014bit%20uncompressed%20%283:2%29.NEF", "4559b9614ab6d558192d9d30e1db4a4ec44752553e45b2bd26c1569c1820441a", ), ( "nef-nikon-d3x.nef", "https://raw.pixls.us/getfile.php/3708/nice/Nikon%20-%20D3X%20-%2014bit%2014bit%20uncompressed%20%283:2%29.NEF", "48dc0339ef86541aabcc6bb68a6452f603e23a7d7a5597dad0d267f69e3e79d4", ), ( "raf-fujifilm-x100v.raf", "https://raw.pixls.us/getfile.php/3812/nice/Fujifilm%20-%20X100V%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "48f2055ab497c687347eee84103d4f48deb016fff711d2810eaf1317e506f621", ), ( "nef-nikon-d4s.nef", "https://raw.pixls.us/getfile.php/2220/nice/Nikon%20-%20D4S%20-%2012bit%2012bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "49067c81374549465f3c621acd249bf05dbdef4e44b9201fef1fb11c93572983", ), ( "raf-fujifilm-x-t30-iii.raf", "https://raw.pixls.us/getfile.php/8769/nice/Fujifilm%20-%20X-T30%20III%20-%2014bit%20compressed%20%283:2%29.RAF", "49f77d6162abfa5c94d2d8b90e4e926b7386c42bcf7e84a152c9ffe1ebd584da", ), ( "raf-fujifilm-xq2.raf", "https://raw.pixls.us/getfile.php/1844/nice/Fujifilm%20-%20XQ2%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "4bce88593f5ae8fc45aeeec8a6dee9a84c773493cc6db9dabdc28744c8ac4b4d", ), ( "raf-fujifilm-x-t10.raf", "https://raw.pixls.us/getfile.php/1192/nice/Fujifilm%20-%20X-T10%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "4c09401975cc6f95b1284693aac39fef85498f70b55e35bf458a133c6e61885d", ), ( "nef-nikon-d2x.nef", "https://raw.pixls.us/getfile.php/9064/nice/Nikon%20-%20D2X%20-%2012bit%20uncompressed%20%283:2%29.NEF", "4d4b89f85bdfef233ef9b8aa7ecfeb609874ab592cb44e777f5b36814df5883c", ), ( "raf-fujifilm-x70.raf", "https://raw.pixls.us/getfile.php/1301/nice/Fujifilm%20-%20X70%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "4f9c33fde578addebda991c37d26551b46fab8f592c74f7192560a05ec08d577", ), ( "dng-nikon-d80.dng", "https://raw.pixls.us/getfile.php/1988/nice/Nikon%20-%20D80%20-%2016bit%20%283:2%29.dng", "5095ca264e763624cd3aa62940286dd1bcff4504eefa1ce61cbb72f50f8426bb", ), ( "nef-nikon-1-aw1.nef", "https://raw.pixls.us/getfile.php/1171/nice/Nikon%20-%201%20AW1%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "519d354ec40907f1cd30329fc1a641ddec5b46e08e88883f3cf2fddc4ddd9974", ), ( "raf-fujifilm-x-h1.raf", "https://raw.pixls.us/getfile.php/2537/nice/Fujifilm%20-%20X-H1%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "5210bf896d2757cecda88bab0a87ef0b534d4b36c31dc08d5db7cd8f5bbf9b4e", ), ( "nef-nikon-1-j5.nef", "https://raw.pixls.us/getfile.php/1342/nice/Nikon%20-%201%20J5%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.nef", "56efc4f426fa489383a967102c6d30fa9d6b198ca0484c4725c91f0b0d47c063", ), ( "nef-nikon-1-j1.nef", "https://raw.pixls.us/getfile.php/1017/nice/Nikon%20-%201%20J1%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "5965935729931b72ca8398041f8fc15cb0a226004db941d1f0626ccc2c5bb5f3", ), ( "nef-nikon-d7200.nef", "https://raw.pixls.us/getfile.php/832/nice/Nikon%20-%20D7200%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "5dea8ff6f95f372e4eb0852f75e728f182d7aa4057b2b76631f0fd3066c6a4b5", ), ( "raf-fujifilm-x-t30-ii.raf", "https://raw.pixls.us/getfile.php/5064/nice/Fujifilm%20-%20X-T30%20II%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "5e2678038377cc7f146ceb7693c08535fa1af162cec705d06b0446c3d3017d47", ), ( "nef-nikon-z-50.nef", "https://raw.pixls.us/getfile.php/3647/nice/Nikon%20-%20Z%2050%20-%2014bit%2014bit%20compressed%20%283:2%29.NEF", "5e93735923229117abee2779d81f114f180f361e8ae553c9dd9bdaaedb0d9e02", ), ( "nef-nikon-d5000.nef", "https://raw.pixls.us/getfile.php/1341/nice/Nikon%20-%20D5000%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "5f8e8005be87366bbf7746d35c3c88f82a12a1dd18206c939d8f1254c5922360", ), ( "raf-fujifilm-xq1.raf", "https://raw.pixls.us/getfile.php/1741/nice/Fujifilm%20-%20XQ1%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "663c0bfcb8819c3931444acd9d1491de4d0c0aa1fd745b99e1faa68cc8de033b", ), ( "raf-fujifilm-finepix-hs30exr.raf", "https://raw.pixls.us/getfile.php/2613/nice/Fujifilm%20-%20FinePix%20HS30EXR%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "6b95bb5133d026dbbb7361985e81d9a2b93000e2aea88bcd3f120412d0061da7", ), ( "nef-nikon-d70s.nef", "https://raw.pixls.us/getfile.php/1117/nice/Nikon%20-%20D70s%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%201%29%29%20%283:2%29.NEF", "6c46f9854033e7623ebbb5de8c951df6762ca44f05d45035ccc5cb7e9f4e5692", ), ( "nef-nikon-d5200.nef", "https://raw.pixls.us/getfile.php/1691/nice/Nikon%20-%20D5200%20-%2014bit%2014bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "6c49ca47d189f9d6766f94be7c9d7d779ce45c79c0c6e48a0eba7d92f320fe0e", ), ( "nrw-nikon-coolpix-p1100.nrw", "https://raw.pixls.us/getfile.php/7689/nice/Nikon%20-%20Coolpix%20P1100%20-%2012bit%20uncompressed%20%284:3%29.NRW", "706840f7a36c3852092d4aad0465e75920e04f1aa653adf31626c0c05ab41258", ), ( "raf-fujifilm-x-s20.raf", "https://raw.pixls.us/getfile.php/6666/nice/Fujifilm%20-%20X-S20%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "737c1551843282d4963ccb351a4d6409f3eaf172928d563bbaf72fe0f1f74fdd", ), ( "nef-nikon-z-30.nef", "https://raw.pixls.us/getfile.php/5812/nice/Nikon%20-%20Z%2030%20-%2012bit%2012bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "75249c11a3a845367c7a322a1c4e7076f33c785ec2518fc6594c34c185b41161", ), ( "raf-fujifilm-x-e2.raf", "https://raw.pixls.us/getfile.php/937/nice/Fujifilm%20-%20X-E2%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "7588c70af7fd6be3abcec52546aabcd04e0aafc6541e7f7f50bdc60b60513c57", ), ( "nef-nikon-d60.nef", "https://raw.pixls.us/getfile.php/3698/nice/Nikon%20-%20D60%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%201%29%29%20%283:2%29.NEF", "780ce4867e997143acbd1734a889575a5eaeeb40c6afb33b6006c266831caaa6", ), ( "nef-nikon-1-j2.nef", "https://raw.pixls.us/getfile.php/923/nice/Nikon%20-%201%20J2%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "81051ee36135883acea55bd1e609d6d31212c0bf03640b7ae9fe177a1ca51219", ), ( "nef-nikon-d5600.nef", "https://raw.pixls.us/getfile.php/1415/nice/Nikon%20-%20D5600%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "82e15f02c4037820e80f14bacfacdc52ea29721b3c70d2cf08b237b50ce8db05", ), ( "nef-nikon-d3.nef", "https://raw.pixls.us/getfile.php/3516/nice/Nikon%20-%20D3%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "880c60c5f611adf6b70de3d099f8433492de3a3d96866d570122f17f0a651fc8", ), ( "nef-nikon-d300.nef", "https://raw.pixls.us/getfile.php/924/nice/Nikon%20-%20D300%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "8b989f53c96995f7014ddd16124530cf6d8f3341ea9570d6312d9da1eb0a117a", ), ( "raf-fujifilm-finepix-sl1000.raf", "https://raw.pixls.us/getfile.php/5760/nice/Fujifilm%20-%20FinePix%20SL1000%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "8bc9903cb1bff93376eb73b64f35861dcf3c66e2ca936cfac2d7c62435689dec", ), ( "raf-fujifilm-x-pro3.raf", "https://raw.pixls.us/getfile.php/3700/nice/Fujifilm%20-%20X-Pro3%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "8c50e965d7627932414e8790a5ef1d673fcb44b548b64130df6b9be42c418554", ), ( "raf-fujifilm-x-pro2.raf", "https://raw.pixls.us/getfile.php/1680/nice/Fujifilm%20-%20X-Pro2%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "8cc12566e5c0fc676b713bb1612ce0510d47b1dc691e9a5a0bcf3799ad9b8af1", ), ( "nef-nikon-1-s1.nef", "https://raw.pixls.us/getfile.php/5661/nice/Nikon%20-%201%20S1%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "8e540d40b842f61de69161cb0b8be72b024629c752fd82b6f8d10e460bce88cb", ), ( "raf-fujifilm-x100vi.raf", "https://raw.pixls.us/getfile.php/7300/nice/Fujifilm%20-%20X100VI%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "8e5e4d8d2e0a865ca79b3d40734b6abc2f4b00281afea8b9bd3d8c29808f2fb3", ), ( "raf-fujifilm-x-t200.raf", "https://raw.pixls.us/getfile.php/3899/nice/Fujifilm%20-%20X-T200%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "8fc8dfa5b4741246287c430010d9699fe6f1e512ac03e14abea72e63cb022051", ), ( "nef-nikon-d3200.nef", "https://raw.pixls.us/getfile.php/743/nice/Nikon%20-%20D3200%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "91657dd8e9c7a086826683f6d20799685657dd7ca2056702b145851465f57cd3", ), ( "raf-fujifilm-x-t3.raf", "https://raw.pixls.us/getfile.php/2783/nice/Fujifilm%20-%20X-T3%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "95b33021160b239ceb1a09d46a1b29cb60cb7dd47581feb126b337c219091754", ), ( "raf-fujifilm-finepix-f550exr.raf", "https://raw.pixls.us/getfile.php/3869/nice/Fujifilm%20-%20FinePix%20F550EXR%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "95b6c8a9d5d885f60bbc965ddfd899d325f2225c99ab087d02739543a3ff7dd6", ), ( "nef-nikon-d5500.nef", "https://raw.pixls.us/getfile.php/1469/nice/Nikon%20-%20D5500%20-%2014bit%2014bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "96d5b85dae24e190691c504781d8e7ee58cb9b63ea715760de9af3d345dc4c13", ), ( "raf-fujifilm-x-a7.raf", "https://raw.pixls.us/getfile.php/3879/nice/Fujifilm%20-%20X-A7%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "97db251dd129663da00d33e8eb4d7932d222f58d99ff7311c09cc277de5b6f18", ), ( "nef-nikon-d3300.nef", "https://raw.pixls.us/getfile.php/1734/nice/Nikon%20-%20D3300%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "97dfc95aecc00383d6da6197cb759bacb1e43c86071b4ca2d94748e498620f2f", ), ( "nef-nikon-z-5.nef", "https://raw.pixls.us/getfile.php/4136/nice/Nikon%20-%20Z%205%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "9870248c45532080c2459f3b52cdcc4a07bc8846ad50cbb81c7c1c6dc5e36d91", ), ( "nef-nikon-1-j3.nef", "https://raw.pixls.us/getfile.php/1814/nice/Nikon%20-%201%20J3%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "996d65705bf1ac9f83f055817ea92618ea44c822109196d7d97a803a0268b576", ), ( "nef-nikon-z-9.nef", "https://raw.pixls.us/getfile.php/5146/nice/Nikon%20-%20Z%209%20-%208bit%208bit%20compressed%20%283:2%29.NEF", "99d0fe24a38f0f7623aeab21440d266a5ac09f9665cf5283f590337e84323c38", ), ( "nrw-nikon-coolpix-a1000.nrw", "https://raw.pixls.us/getfile.php/4337/nice/Nikon%20-%20Coolpix%20A1000%20-%2012bit%2012bit%20uncompressed%20%284:3%29.NRW", "9b4edd03bbb17d66eacc2a72b30f044969e67666446f3f1ed25e88bb947d4f8a", ), ( "raf-fujifilm-x100s.raf", "https://raw.pixls.us/getfile.php/2115/nice/Fujifilm%20-%20X100S%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "9cea5b0d4dd3682f8850dc34e93f0045e0e28fa69f9715576d40c5a8a59e8ae9", ), ( "nef-nikon-d2hs.nef", "https://raw.pixls.us/getfile.php/2852/nice/Nikon%20-%20D2Hs%20-%2012bit%2012bit%20uncompressed%20%283:2%29.NEF", "9ea1c3d5d6c8a11f33239079559f1f0c86bbdb9440a2c7d2578368647abf7ea4", ), ( "nef-nikon-d90.nef", "https://raw.pixls.us/getfile.php/1325/nice/Nikon%20-%20D90%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "9eb3daa4e3d1c1614bccc4c6d136c4166960f936f17c437cc4d11a5786b2df06", ), ( "nef-nikon-d50.nef", "https://raw.pixls.us/getfile.php/1282/nice/Nikon%20-%20D50%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%201%29%29%20%283:2%29.NEF", "9f94c27672a63f946c92d43910ef0c266dffaa14dae0007ae00ac72d2c684935", ), ( "nef-nikon-d3000.nef", "https://raw.pixls.us/getfile.php/2161/nice/Nikon%20-%20D3000%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%201%29%29%20%283:2%29.NEF", "a07ee8a0b1ff7a1ad06085306ef8f9a197d95fec639994467317c56108eeb435", ), ( "raf-fujifilm-x100t.raf", "https://raw.pixls.us/getfile.php/2137/nice/Fujifilm%20-%20X100T%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "a12bb7fa3585b636b7fa487d767ba0ba1ae10fe6aaa74db4147dc0ec2b180a0a", ), ( "nef-nikon-z50-2.nef", "https://raw.pixls.us/getfile.php/7762/nice/Nikon%20-%20Z50_2%20-%208bit%20compressed%20%283:2%29.NEF", "a3314a026524396e603b461afc4fe61a8a5a3958232f3687bb1c8eca0dcbed93", ), ( "nef-nikon-d600.nef", "https://raw.pixls.us/getfile.php/916/nice/Nikon%20-%20D600%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "a70c3e54501efa7e4391ec4cf5705912a10c356a029e984ee13be5f68bc7482d", ), ( "raf-fujifilm-xf1.raf", "https://raw.pixls.us/getfile.php/3209/nice/Fujifilm%20-%20XF1%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "b17c389a59228881af8d50c22bdd8ce2295a54290d9a18447dd1e56d0743e913", ), ( "nef-nikon-d7100.nef", "https://raw.pixls.us/getfile.php/1855/nice/Nikon%20-%20D7100%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "b241cb95b1008f25b8ed7d1443354e8cc7dee9c4d4e1edd0a5856d92063a48d0", ), ( "raf-fujifilm-x-e3.raf", "https://raw.pixls.us/getfile.php/1864/nice/Fujifilm%20-%20X-E3%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "b2aeb7fd72a9ea116b1dcc2c8a8cf5462b15757ba3aca33bad8ce36339a1642f", ), ( "raf-fujifilm-x-a1.raf", "https://raw.pixls.us/getfile.php/1214/nice/Fujifilm%20-%20X-A1%20-%2012bit%2012bit%20uncompressed%20%283:2%29.RAF", "b2ddb5fe31a3b976d12961c72a2689de8742739df3d8f757614eca65f8df2a61", ), ( "nef-nikon-d3500.nef", "https://raw.pixls.us/getfile.php/2902/nice/Nikon%20-%20D3500%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "b53395f74674588a63f6b667325c5a2b400f26cba72ff402a65ddd02c5f841d5", ), ( "raf-fujifilm-finepix-hs50exr.raf", "https://raw.pixls.us/getfile.php/6018/nice/Fujifilm%20-%20FinePix%20HS50EXR%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "b5c4f3658dc686e535eeaf639729f2cb6b54e60a3e1ab206eabba1024c4dce83", ), ( "raf-fujifilm-gfx100-ii.raf", "https://raw.pixls.us/getfile.php/7174/nice/Fujifilm%20-%20GFX100%20II%20-%2014bit%2014bit%20uncompressed%20%284:3%29.RAF", "b7b329bcbfcc07c5523a2b172a5173f4de4b841c8315078a1b69150ddaa16f30", ), ( "raf-fujifilm-x100f.raf", "https://raw.pixls.us/getfile.php/1936/nice/Fujifilm%20-%20X100F%20-%2014bit%2014bit%20compressed%20%283:2%29.RAF", "bca8ad027b0ee0038107c01792ccb5c6b776512b77b584c6f93c6f2ced5f15a3", ), ( "nef-nikon-d40x.nef", "https://raw.pixls.us/getfile.php/804/nice/Nikon%20-%20D40X%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%201%29%29%20%283:2%29.NEF", "c3e4956f7e2d1f1b3f846b6ec9552678073db0bcaeb51132ec4c60bd2229d56e", ), ( "nef-nikon-coolpix-a.nef", "https://raw.pixls.us/getfile.php/2238/nice/Nikon%20-%20Coolpix%20A%20-%2014bit%2014bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "c5ca0333a7cda8a2fc33fb2157d18dfa89f1844548dc49c2fd2e67f502f72e25", ), ( "raf-fujifilm-x20.raf", "https://raw.pixls.us/getfile.php/1549/nice/Fujifilm%20-%20X20%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "ccb4fad836f1561b52859c3ee01db0fef7db770980d4a84e95595da1eda72b2a", ), ( "raf-fujifilm-x-e4.raf", "https://raw.pixls.us/getfile.php/4446/nice/Fujifilm%20-%20X-E4%20-%2014bit%2014bit%20compressed%20lossless%20%283:2%29.RAF", "ce4215079e4c6c8a86d493e15f6e574e4aa7684b346ef3439026c835ed2c8948", ), ( "raf-fujifilm-gfx50s-ii.raf", "https://raw.pixls.us/getfile.php/5002/nice/Fujifilm%20-%20GFX50S%20II%20-%2014bit%2014bit%20uncompressed%20%284:3%29.RAF", "cf53a9018d5a77cd854ea0a91afee2a35ac8fab8f814020d79f728f99ba99892", ), ( "nef-nikon-d1h.nef", "https://raw.pixls.us/getfile.php/5364/nice/Nikon%20-%20D1H%20-%2012bit%2012bit%20uncompressed%20%283:2%29.NEF", "d110b80a8b10a3a67b5cd1c15ef33f1a6397557b73d5d3f4e565739f0c072571", ), ( "nef-nikon-d200.nef", "https://raw.pixls.us/getfile.php/824/nice/Nikon%20-%20D200%20-%2012bit%2012bit%20uncompressed%20%283:2%29.nef", "d468895b0b30a60d05a7f6468d69f2f15830dd49b2d82698b34245072a22e747", ), ( "raf-fujifilm-finepix-hs33exr.raf", "https://raw.pixls.us/getfile.php/2907/nice/Fujifilm%20-%20FinePix%20HS33EXR%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "d72d5b67d67379fa310fc5a4615016d9456d086a8bfd32c74a3b256e0dfecee8", ), ( "raf-fujifilm-finepix-s1.raf", "https://raw.pixls.us/getfile.php/1651/nice/Fujifilm%20-%20FinePix%20S1%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "d77f104a9fa4ce11c78b5078ac40acf8b150d67ea837d187e0903d208bf2dbae", ), ( "nef-nikon-z-7-2.nef", "https://raw.pixls.us/getfile.php/4213/nice/Nikon%20-%20Z%207_2%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "dc83d3e49db54ca9c3a1e41dc847afd213c822d482c40158e42d01ee8968f33b", ), ( "nef-nikon-d70.nef", "https://raw.pixls.us/getfile.php/2060/nice/Nikon%20-%20D70%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%201%29%29%20%283:2%29.NEF", "dd6405aeb33b0cd5bf66c98ba98ccbb478a765450cfd130810e470dab8d1f4b4", ), ( "nef-nikon-d300s.nef", "https://raw.pixls.us/getfile.php/3049/nice/Nikon%20-%20D300S%20-%2014bit%2014bit%20compressed%20%28Lossless%29%20%283:2%29.NEF", "de950a2263c87f085ee611a21e69fc4e0ecb6e417fff61ff6a23ea3121e21a81", ), ( "raf-fujifilm-x-s1.raf", "https://raw.pixls.us/getfile.php/997/nice/Fujifilm%20-%20X-S1%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "e4652f3710cc972712a25370988ad8d72c8bf368956215348ea77b17d95f36f7", ), ( "nef-nikon-d750.nef", "https://raw.pixls.us/getfile.php/895/nice/Nikon%20-%20D750%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "e4a3f85e014275fc0a47600a373af95ec850872a5f6cf87649bcaa42b77ef2e4", ), ( "nef-nikon-d3100.nef", "https://raw.pixls.us/getfile.php/4229/nice/Nikon%20-%20D3100%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "e8113b6e7285155f9f2b88f81566dab63a59cf5559d6915113b74e8c3a8680f6", ), ( "raf-fujifilm-x-t1.raf", "https://raw.pixls.us/getfile.php/2421/nice/Fujifilm%20-%20X-T1%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "e994a1fd6e87e392432fe146a35b0b88584dc2bd50bee2c8c7e886ac2b59fcde", ), ( "nef-nikon-d3400.nef", "https://raw.pixls.us/getfile.php/1561/nice/Nikon%20-%20D3400%20-%2012bit%2012bit%20compressed%20%28Lossy%20%28type%202%29%29%20%283:2%29.NEF", "eced190786231f0081261b6c6b425fe23e42a53ade21dec3def5ae8551be71a5", ), ( "raf-fujifilm-x-m1.raf", "https://raw.pixls.us/getfile.php/842/nice/Fujifilm%20-%20X-M1%20-%2012bit%2012bit%20uncompressed%20%283:2%29.RAF", "eef4e9ae629d2d81cef5a234fb853c14c88b3c0c12c39d635a1f9fa2a871bec3", ), ( "raf-fujifilm-x-t30.raf", "https://raw.pixls.us/getfile.php/3068/nice/Fujifilm%20-%20X-T30%20-%2014bit%2014bit%20uncompressed%20%283:2%29.RAF", "f0353544bc62a6816385de0850e1d37e2f3383892a7eb3928c73e4517fe47ff5", ), ( "nrw-nikon-coolpix-p950.nrw", "https://raw.pixls.us/getfile.php/3806/nice/Nikon%20-%20COOLPIX%20P950%20-%2012bit%2012bit%20uncompressed%20%284:3%29.NRW", "fc6136b9e5a7e133d7dc30fe65baa04c09ff8c18ca3c7ad82b4ffdbb71ce5bef", ), ( "raf-fujifilm-finepix-f770exr.raf", "https://raw.pixls.us/getfile.php/3039/nice/Fujifilm%20-%20FinePix%20F770EXR%20-%2012bit%2012bit%20uncompressed%20%284:3%29.RAF", "ffc905e325a00c57a5335681654fdf226b724269cd5d26cd976983939f88043d", ), ]; fn cmd_corpus(download: bool) -> Result<(), String> { let corpus = root().join("corpus"); println!( "Test corpora live under {} (git-ignored, never committed). Tests that use a corpus skip cleanly when it is absent. corpus/raw/ raw.pixls.us samples (CC0) — lightcraft-raw decodes every file. corpus/images/ CC0 / public-domain JPEG/PNG/TIFF/HEIC samples (optional) ", corpus.display() ); if !download { return Ok(()); } let dest = corpus.join("raw"); std::fs::create_dir_all(&dest).map_err(|e| format!("create {}: {e}", dest.display()))?; let mut bad = Vec::new(); for (name, url, sha256) in RAW_SAMPLES { let out = dest.join(name); if !out.exists() { let mut curl = Command::new("curl"); curl.args(["-fsSL", "-o"]).arg(&out).arg(url); run(curl, &format!("curl {url}"))?; } let actual = file_sha256(&out)?; if actual != *sha256 { // delete it, so the next run downloads it again instead of trusting it std::fs::remove_file(&out).map_err(|e| format!("remove {}: {e}", out.display()))?; bad.push(format!("{name}: sha256 is {actual}, expected {sha256} (file deleted; source {url})")); } } if bad.is_empty() { return Ok(()); } Err(format!( "{} corpus file(s) do not match their pinned sha256: {}", bad.len(), bad.join( " " ) )) } fn file_sha256(path: &Path) -> Result { use sha2::{Digest, Sha256}; let mut file = std::fs::File::open(path).map_err(|e| format!("open {}: {e}", path.display()))?; let mut hash = Sha256::new(); std::io::copy(&mut file, &mut hash).map_err(|e| format!("read {}: {e}", path.display()))?; Ok(format!("{:x}", hash.finalize())) } #[cfg(test)] mod ci_jobs_tests { use super::ci_jobs; #[test] fn jobs_follow_available_ram_and_never_exceed_the_cpus() { assert_eq!(ci_jobs(Some(3 * 1024), 8), 2, "a 4 GB machine with 3 GB free"); assert_eq!(ci_jobs(Some(6 * 1024), 8), 4, "an 8 GB machine with 6 GB free"); assert_eq!(ci_jobs(Some(7 * 1024), 32), 4, "a busy 32 GB machine: what is free counts"); assert_eq!(ci_jobs(Some(24 * 1024), 32), 16); assert_eq!(ci_jobs(Some(64 * 1024), 8), 8, "capped at the CPU count"); assert_eq!(ci_jobs(Some(500), 8), 1, "at least one"); assert_eq!(ci_jobs(None, 32), 4, "unknown RAM keeps the old default"); assert_eq!(ci_jobs(None, 2), 2); } } #[cfg(test)] mod corpus_tests { use super::RAW_SAMPLES; #[test] fn every_sample_has_a_unique_name_and_a_sha256() { let mut names: Vec<_> = RAW_SAMPLES.iter().map(|s| s.0).collect(); names.sort_unstable(); names.dedup(); assert_eq!(names.len(), RAW_SAMPLES.len(), "duplicate file name"); for (name, _, sha256) in RAW_SAMPLES { assert!(sha256.len() == 64 && sha256.bytes().all(|b| matches!(b, b'0'..=b'9' | b'a'..=b'f')), "{name}: not a lowercase sha256"); } } }