Skip to main content

Renderer

Struct Renderer 

Source
pub struct Renderer<'a> {
    pub backend: &'a dyn Backend,
    pub cache: PathBuf,
    pub ffmpeg: OsString,
    pub device: Device,
    pub decode: Decode,
    pub progress: Progress,
    pub grader: Option<&'a Grader<'a>>,
    pub detect: Option<&'a Detector<'a>>,
}
Expand description

Renders plans against a cache directory.

Fields§

§backend: &'a dyn Backend§cache: PathBuf§ffmpeg: OsString§device: Device§decode: Decode§progress: Progress§grader: Option<&'a Grader<'a>>

Builds the GPU grade for a shot’s resolved params (LUT, look hook, sharpen); the size is set by the renderer. None: the LUT and sharpen only.

§detect: Option<&'a Detector<'a>>

Stabilizer motion detect on the GPU (NVOF, cached on disk): a source file and range to per-frame motions. Required by stabilized clips; there is no CPU fallback.

Implementations§

Source§

impl Renderer<'_>

Source

pub fn render( &self, plan: &Plan, text: Option<&mut TextLayer>, output: &Path, ) -> Result<Report, ExecError>

Renders plan to output (an .mp4); writes <output>.ffcine.json next to it.

Source

pub fn render_piece( &self, piece: &Piece, rate: f64, out: &Path, encoder: EncoderSettings, output: Option<ColorSpace>, ) -> Result<(), ExecError>

Renders one lowered comp piece to out with encoder (ffcine still of a comp: one frame, a PNG); output overrides the pass’s output colour space.

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Renderer<'a>

§

impl<'a> !Send for Renderer<'a>

§

impl<'a> !Sync for Renderer<'a>

§

impl<'a> !UnwindSafe for Renderer<'a>

§

impl<'a> Forget for Renderer<'a>

§

impl<'a> Freeze for Renderer<'a>

§

impl<'a> Unpin for Renderer<'a>

§

impl<'a> UnsafeUnpin for Renderer<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.