Skip to main content

mediaframe/source/gray14/
mod.rs

1//! Walker spec for `Gray14` (FFmpeg `gray14{le,be}`).
2//!
3//! The marker carries `<const BE: bool = false>`; see [`Gray9`](crate::source::Gray9)
4//! for the full BE-flag contract.
5
6use crate::frame::{Gray14Frame, GrayNFrame};
7
8walker! {
9  planar1_bits_be {
10    /// Marker type for the `Gray14` source format (14-bit low-packed u16).
11    /// `<const BE: bool>` defaults to `false` (LE).
12    marker: Gray14,
13    frame: Gray14Frame,
14    generic_frame: GrayNFrame,
15    bits: 14,
16    row: Gray14Row,
17    sink: Gray14Sink,
18    walker: gray14_to,
19    walker_endian: gray14_to_endian,
20    walker_inner: gray14_to_inner,
21    elem_type: u16,
22    row_doc: "A single row from a [`Gray14Frame`](crate::frame::Gray14Frame).",
23    walker_doc: "Walks a [`Gray14Frame<'_, BE>`] row by row, dispatching each \
24                 row to the sink. Propagates `<const BE: bool>` from the \
25                 frame into [`Gray14Sink<BE>`].",
26  }
27}
28
29#[cfg(all(test, feature = "std"))]
30mod tests;