mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 12:47:25 +00:00
test(raw): cover missing-tag CR2 gradient decode
This commit is contained in:
@@ -486,6 +486,10 @@ pub(crate) mod tests {
|
||||
let (cfa, assumed) = fallback_cfa(&gradient, 192, Rect::new(0, 0, 192, 96), 0.0, 4000.0, None);
|
||||
assert_eq!(cfa.name(), "RGGB");
|
||||
assert!(assumed);
|
||||
let bytes = synthetic_cr2_of(&gradient, 192, 96, None, None);
|
||||
let decoded = crate::decode(&bytes).unwrap();
|
||||
assert_eq!(decoded.cfa.as_ref().unwrap().name(), "RGGB");
|
||||
assert!(decoded.notices.assumed_cfa);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user