Download small image sample

This commit is contained in:
Dominik Werder committed 2021-12-17 18:23:54 +01:00
1 parent 8f33b894a8
commit 22ba7bb0d3
21 files changed
+576 -358

No files matched your search

+4
View File
@@ -73,7 +73,11 @@ impl ConfigEntry {
Some(lens) => {
if lens.len() == 1 {
Shape::Wave(lens[0])
} else if lens.len() == 2 {
Shape::Image(lens[0], lens[1])
} else {
// TODO
// Need a new Shape variant for images.
return Err(Error::with_msg(format!("Channel config unsupported shape {:?}", self)))?;
}
}