pub struct RenderConfig {
pub render_video: bool,
pub render_audio: bool,
pub width: u32,
pub height: u32,
pub pixel_format: PixelFormat,
pub sample_rate: u32,
pub sample_format: SampleFormat,
pub channels: ChannelLayout,
pub cache_size: usize,
pub num_threads: usize,
pub quality: RenderQuality,
}Expand description
Render configuration.
Fields§
§render_video: boolRender video.
render_audio: boolRender audio.
width: u32Video width.
height: u32Video height.
pixel_format: PixelFormatPixel format.
sample_rate: u32Sample rate.
sample_format: SampleFormatSample format.
channels: ChannelLayoutAudio channels.
cache_size: usizeFrame cache size.
num_threads: usizeNumber of render threads.
quality: RenderQualityQuality preset.
Implementations§
Source§impl RenderConfig
impl RenderConfig
Sourcepub fn from_timeline_config(config: &TimelineConfig) -> Self
pub fn from_timeline_config(config: &TimelineConfig) -> Self
Create config from timeline config.
Trait Implementations§
Source§impl Clone for RenderConfig
impl Clone for RenderConfig
Source§fn clone(&self) -> RenderConfig
fn clone(&self) -> RenderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderConfig
impl Debug for RenderConfig
Auto Trait Implementations§
impl Freeze for RenderConfig
impl RefUnwindSafe for RenderConfig
impl Send for RenderConfig
impl Sync for RenderConfig
impl Unpin for RenderConfig
impl UnsafeUnpin for RenderConfig
impl UnwindSafe for RenderConfig
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<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