projects
/
nihav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core/scale: use BT.601 YUV by default in conversion
[nihav.git]
/
nihav-core
/
src
/
scale
/
mod.rs
diff --git
a/nihav-core/src/scale/mod.rs
b/nihav-core/src/scale/mod.rs
index b67a62070350eb4180c0505d3028d7127b275f9c..caf489bb63a4188651b838c54720cb995684fd45 100644
(file)
--- a/
nihav-core/src/scale/mod.rs
+++ b/
nihav-core/src/scale/mod.rs
@@
-530,9
+530,9
@@
mod test {
let uoff = obuf.get_offset(1);
let voff = obuf.get_offset(2);
let odata = obuf.get_data();
let uoff = obuf.get_offset(1);
let voff = obuf.get_offset(2);
let odata = obuf.get_data();
- assert_eq!(odata[yoff],
28
);
- assert_eq!(odata[uoff], 1
54
);
- assert_eq!(odata[voff], 1
03
);
+ assert_eq!(odata[yoff],
11
);
+ assert_eq!(odata[uoff], 1
62
);
+ assert_eq!(odata[voff], 1
18
);
}
#[test]
fn test_scale_and_convert_to_pal() {
}
#[test]
fn test_scale_and_convert_to_pal() {
@@
-550,7
+550,7
@@
mod test {
let odata = obuf.get_data();
assert_eq!(odata[dataoff], 0);
assert_eq!(odata[paloff], 157);
let odata = obuf.get_data();
assert_eq!(odata[dataoff], 0);
assert_eq!(odata[paloff], 157);
- assert_eq!(odata[paloff + 1],
9
9);
+ assert_eq!(odata[paloff + 1],
12
9);
assert_eq!(odata[paloff + 2], 170);
}
}
assert_eq!(odata[paloff + 2], 170);
}
}