Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/sinker/mixed/planar_8bit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ impl<'a> MixedSinker<'a, Yuv420p> {
///
/// ```compile_fail
/// // Attaching RGBA to a sink that doesn't write it is rejected
/// // at compile time. Yuv422p10 (10‑bit 4:2:2 planar) has not yet
/// // at compile time. Yuv444p10 (10‑bit 4:4:4 planar) has not yet
/// // been wired for RGBA — once a future tranche lands it the
/// // negative example here moves to the next not‑yet‑wired format.
/// use colconv::{sinker::MixedSinker, yuv::Yuv422p10};
/// use colconv::{sinker::MixedSinker, yuv::Yuv444p10};
/// let mut buf = vec![0u8; 16 * 8 * 4];
/// let _ = MixedSinker::<Yuv422p10>::new(16, 8).with_rgba(&mut buf);
/// let _ = MixedSinker::<Yuv444p10>::new(16, 8).with_rgba(&mut buf);
/// ```
#[cfg_attr(not(tarpaulin), inline(always))]
pub fn with_rgba(mut self, buf: &'a mut [u8]) -> Result<Self, MixedSinkerError> {
Expand Down
Loading
Loading