mediaframe/source/
yuv444p9.rs1use crate::frame::Yuv444pFrame16;
8
9walker! {
10 planar3_be {
11 #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
13 marker: Yuv444p9,
14 frame: Yuv444pFrame16<'_, 9, BE>,
15 frame_le: Yuv444pFrame16<'_, 9, false>,
16 row: Yuv444p9Row,
17 sink: Yuv444p9Sink,
18 walker: yuv444p9_to,
19 walker_endian: yuv444p9_to_endian,
20 elem_type: u16,
21 chroma_h: full,
22 chroma_v: full,
23 row_doc: "One output row of a [`Yuv444p9`] source.",
24 walker_doc: "Walks a [`Yuv444p9Frame`](crate::frame::Yuv444p9Frame) row by row into the sink.",
25 }
26}
27
28#[cfg(all(test, feature = "std"))]
29mod tests {
30 use super::*;
31 use crate::color::Matrix;
32
33 #[test]
38 fn yuv444p9_to_explicit_turbofish_one_generic_compiles() {
39 #[allow(clippy::type_complexity)]
40 fn _check<S: Yuv444p9Sink>() {
41 let _: fn(&crate::frame::Yuv444p9LeFrame<'_>, bool, Matrix, &mut S) -> Result<(), S::Error> =
42 yuv444p9_to::<S>;
43 }
44 }
45}