pub struct Picture<'a> { /* private fields */ }Expand description
A picture to encode: 8-bit planes, row by row without padding, the chroma planes rounded up in size where they are subsampled.
Implementations§
Source§impl<'a> Picture<'a>
impl<'a> Picture<'a>
Sourcepub fn new(
width: u32,
height: u32,
sampling: ChromaSampling,
planes: &[&'a [u8]],
) -> Result<Self, Av1Error>
pub fn new( width: u32, height: u32, sampling: ChromaSampling, planes: &[&'a [u8]], ) -> Result<Self, Av1Error>
Sourcepub fn with_color(
self,
color: ColorDescription,
full_range: bool,
) -> Result<Self, Av1Error>
pub fn with_color( self, color: ColorDescription, full_range: bool, ) -> Result<Self, Av1Error>
The picture with its colours described, in full range or in the limited range of video (16 to 235 for luma).
§Errors
When color is ColorDescription::SRGB_IDENTITY but the
picture is not 4:4:4 and in full range.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Picture<'a>
impl<'a> Freeze for Picture<'a>
impl<'a> Move for Picture<'a>
impl<'a> RefUnwindSafe for Picture<'a>
impl<'a> Send for Picture<'a>
impl<'a> Sync for Picture<'a>
impl<'a> Unpin for Picture<'a>
impl<'a> UnsafeUnpin for Picture<'a>
impl<'a> UnwindSafe for Picture<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more