pub struct VideoFrameBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> VideoFrameBuilder<S>
impl<S: State> VideoFrameBuilder<S>
Sourcepub fn build(self) -> Result<VideoFrame, FfmpegError>where
S: IsComplete,
pub fn build(self) -> Result<VideoFrame, FfmpegError>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn width(self, value: i32) -> VideoFrameBuilder<SetWidth<S>>where
S::Width: IsUnset,
pub fn width(self, value: i32) -> VideoFrameBuilder<SetWidth<S>>where
S::Width: IsUnset,
Required.
Sourcepub fn height(self, value: i32) -> VideoFrameBuilder<SetHeight<S>>where
S::Height: IsUnset,
pub fn height(self, value: i32) -> VideoFrameBuilder<SetHeight<S>>where
S::Height: IsUnset,
Required.
Sourcepub fn pix_fmt(self, value: AVPixelFormat) -> VideoFrameBuilder<SetPixFmt<S>>where
S::PixFmt: IsUnset,
pub fn pix_fmt(self, value: AVPixelFormat) -> VideoFrameBuilder<SetPixFmt<S>>where
S::PixFmt: IsUnset,
Required.
Sourcepub fn sample_aspect_ratio(
self,
value: Rational,
) -> VideoFrameBuilder<SetSampleAspectRatio<S>>where
S::SampleAspectRatio: IsUnset,
pub fn sample_aspect_ratio(
self,
value: Rational,
) -> VideoFrameBuilder<SetSampleAspectRatio<S>>where
S::SampleAspectRatio: IsUnset,
Sourcepub fn maybe_sample_aspect_ratio(
self,
value: Option<Rational>,
) -> VideoFrameBuilder<SetSampleAspectRatio<S>>where
S::SampleAspectRatio: IsUnset,
pub fn maybe_sample_aspect_ratio(
self,
value: Option<Rational>,
) -> VideoFrameBuilder<SetSampleAspectRatio<S>>where
S::SampleAspectRatio: IsUnset,
Sourcepub fn pts(self, value: i64) -> VideoFrameBuilder<SetPts<S>>where
S::Pts: IsUnset,
pub fn pts(self, value: i64) -> VideoFrameBuilder<SetPts<S>>where
S::Pts: IsUnset,
Sourcepub fn maybe_pts(self, value: Option<i64>) -> VideoFrameBuilder<SetPts<S>>where
S::Pts: IsUnset,
pub fn maybe_pts(self, value: Option<i64>) -> VideoFrameBuilder<SetPts<S>>where
S::Pts: IsUnset,
Sourcepub fn dts(self, value: i64) -> VideoFrameBuilder<SetDts<S>>where
S::Dts: IsUnset,
pub fn dts(self, value: i64) -> VideoFrameBuilder<SetDts<S>>where
S::Dts: IsUnset,
Sourcepub fn maybe_dts(self, value: Option<i64>) -> VideoFrameBuilder<SetDts<S>>where
S::Dts: IsUnset,
pub fn maybe_dts(self, value: Option<i64>) -> VideoFrameBuilder<SetDts<S>>where
S::Dts: IsUnset,
Sourcepub fn duration(self, value: i64) -> VideoFrameBuilder<SetDuration<S>>where
S::Duration: IsUnset,
pub fn duration(self, value: i64) -> VideoFrameBuilder<SetDuration<S>>where
S::Duration: IsUnset,
Sourcepub fn maybe_duration(
self,
value: Option<i64>,
) -> VideoFrameBuilder<SetDuration<S>>where
S::Duration: IsUnset,
pub fn maybe_duration(
self,
value: Option<i64>,
) -> VideoFrameBuilder<SetDuration<S>>where
S::Duration: IsUnset,
Sourcepub fn time_base(self, value: Rational) -> VideoFrameBuilder<SetTimeBase<S>>where
S::TimeBase: IsUnset,
pub fn time_base(self, value: Rational) -> VideoFrameBuilder<SetTimeBase<S>>where
S::TimeBase: IsUnset,
Sourcepub fn maybe_time_base(
self,
value: Option<Rational>,
) -> VideoFrameBuilder<SetTimeBase<S>>where
S::TimeBase: IsUnset,
pub fn maybe_time_base(
self,
value: Option<Rational>,
) -> VideoFrameBuilder<SetTimeBase<S>>where
S::TimeBase: IsUnset,
Sourcepub fn alignment(self, value: i32) -> VideoFrameBuilder<SetAlignment<S>>where
S::Alignment: IsUnset,
pub fn alignment(self, value: i32) -> VideoFrameBuilder<SetAlignment<S>>where
S::Alignment: IsUnset,
Sourcepub fn maybe_alignment(
self,
value: Option<i32>,
) -> VideoFrameBuilder<SetAlignment<S>>where
S::Alignment: IsUnset,
pub fn maybe_alignment(
self,
value: Option<i32>,
) -> VideoFrameBuilder<SetAlignment<S>>where
S::Alignment: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for VideoFrameBuilder<S>
impl<S> RefUnwindSafe for VideoFrameBuilder<S>
impl<S> Send for VideoFrameBuilder<S>
impl<S> Sync for VideoFrameBuilder<S>
impl<S> Unpin for VideoFrameBuilder<S>
impl<S> UnwindSafe for VideoFrameBuilder<S>
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