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<'_>
impl Renderer<'_>
Sourcepub fn render(
&self,
plan: &Plan,
text: Option<&mut TextLayer>,
output: &Path,
) -> Result<Report, ExecError>
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.
Sourcepub fn render_piece(
&self,
piece: &Piece,
rate: f64,
out: &Path,
encoder: EncoderSettings,
output: Option<ColorSpace>,
) -> Result<(), ExecError>
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> 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