pub struct FrameLayout {
pub size: usize,
pub planes: [Option<(usize, i32)>; 4],
}Expand description
Where the planes of a software frame are inside its pixel buffer.
Fields§
§size: usizeSize of the pixel buffer in bytes.
planes: [Option<(usize, i32)>; 4](offset, linesize) of every plane the format has.
Implementations§
Source§impl FrameLayout
impl FrameLayout
Sourcepub fn of(
format: AVPixelFormat,
width: i32,
height: i32,
) -> RenderEncodingResult<Self>
pub fn of( format: AVPixelFormat, width: i32, height: i32, ) -> RenderEncodingResult<Self>
The layout libav uses for frames of format: lines padded for SIMD access.
Trait Implementations§
Source§impl Clone for FrameLayout
impl Clone for FrameLayout
impl Copy for FrameLayout
Source§impl Debug for FrameLayout
impl Debug for FrameLayout
Source§impl Default for FrameLayout
impl Default for FrameLayout
impl Eq for FrameLayout
Source§impl PartialEq for FrameLayout
impl PartialEq for FrameLayout
impl StructuralPartialEq for FrameLayout
Auto Trait Implementations§
impl Freeze for FrameLayout
impl RefUnwindSafe for FrameLayout
impl Send for FrameLayout
impl Sync for FrameLayout
impl Unpin for FrameLayout
impl UnsafeUnpin for FrameLayout
impl UnwindSafe for FrameLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().