pub enum Need {
SourceFrame {
source: SourceId,
from: FrameFrom,
direction: Direction,
size: u32,
format: VideoFormat,
},
SourceAudio {
source: SourceId,
stream: u32,
start_sample: i64,
frames: u32,
rate: u32,
channels: AudioChannels,
},
TimelineFrame {
time: MediaTime,
size: u32,
format: VideoFormat,
},
TimelineAudio {
start_sample: i64,
frames: u32,
rate: u32,
channels: AudioChannels,
},
}Expand description
What the host must supply next.
Variants§
SourceFrame
A source frame; ExtractSession::supply_video or ExtractSession::supply_end answers.
Fields
§
size: u32The longest edge of the delivered frame (super::delivered_size).
§
format: VideoFormatAlways supplied as rgba8; the session converts.
SourceAudio
Source audio, answered by ExtractSession::supply_audio: exactly frames frames,
silence past the end of the stream.
Fields
§
channels: AudioChannelsThe channel layout.
TimelineFrame
A rendered timeline frame, answered by ExtractSession::supply_video.
Fields
§
format: VideoFormatAlways supplied as rgba8; the session converts.
TimelineAudio
Timeline mix audio, answered like Need::SourceAudio.
Trait Implementations§
impl Eq for Need
impl StructuralPartialEq for Need
Auto Trait Implementations§
impl Forget for Need
impl Freeze for Need
impl Move for Need
impl RefUnwindSafe for Need
impl Send for Need
impl Sync for Need
impl Unpin for Need
impl UnsafeUnpin for Need
impl UnwindSafe for Need
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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