pub struct VideoConfig {
pub width: u32,
pub height: u32,
pub timescale: u32,
pub avcc: Vec<u8>,
}Expand description
The video track of an Mp4StreamWriter: H.264 configured by an avcC.
Fields§
§width: u32Picture width in pixels.
height: u32Picture height in pixels.
timescale: u32Ticks per second for this track’s durations. Use something fine-grained (1_000_000 for microseconds) so real presentation deltas survive.
avcc: Vec<u8>avcC box payload without its size/type header — see
crate::h264::avcc::build_avcc.
Trait Implementations§
Auto Trait Implementations§
impl Forget for VideoConfig
impl Freeze for VideoConfig
impl Move for VideoConfig
impl RefUnwindSafe for VideoConfig
impl Send for VideoConfig
impl Sync for VideoConfig
impl Unpin for VideoConfig
impl UnsafeUnpin for VideoConfig
impl UnwindSafe for VideoConfig
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<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 more