pub struct BlockFPS { /* private fields */ }Expand description
Block-based frame-rate conversion filter.
Implementations§
Source§impl BlockFPS
impl BlockFPS
Sourcepub fn new(
info: VideoInfo,
actual_super_resolution: Resolution,
super_info: SuperClipInfo,
backward_data: MVAnalysisData,
forward_data: MVAnalysisData,
options: BlockFPSOptions,
) -> Result<Self>
pub fn new( info: VideoInfo, actual_super_resolution: Resolution, super_info: SuperClipInfo, backward_data: MVAnalysisData, forward_data: MVAnalysisData, options: BlockFPSOptions, ) -> Result<Self>
Builds a block-based FPS filter from validated clip and vector metadata.
§Errors
Returns an error if the clip format, super geometry, vector metadata, or options are invalid.
Sourcepub fn vectors_are_usable(
&self,
backward: &FakeGroupOfPlanes,
forward: &FakeGroupOfPlanes,
thscd1: u64,
thscd2: u64,
) -> bool
pub fn vectors_are_usable( &self, backward: &FakeGroupOfPlanes, forward: &FakeGroupOfPlanes, thscd1: u64, thscd2: u64, ) -> bool
Returns whether both vector fields pass the supplied scene-change thresholds.
Sourcepub fn render_frame<T: Pixel>(
&self,
current: &FrameView<'_, T>,
reference: &FrameView<'_, T>,
output: &mut FramePlanesMut<'_, T>,
output_pitch: PlaneSizeTuple,
backward_vectors: &FakeGroupOfPlanes,
forward_vectors: &FakeGroupOfPlanes,
time256: i32,
) -> Result<()>
pub fn render_frame<T: Pixel>( &self, current: &FrameView<'_, T>, reference: &FrameView<'_, T>, output: &mut FramePlanesMut<'_, T>, output_pitch: PlaneSizeTuple, backward_vectors: &FakeGroupOfPlanes, forward_vectors: &FakeGroupOfPlanes, time256: i32, ) -> Result<()>
Renders one interpolated frame into output.
time256 uses the MVTools 8.8 fixed-point time domain.
§Errors
Returns an error if the frames, vectors, or output buffers do not match the filter configuration.
Auto Trait Implementations§
impl Freeze for BlockFPS
impl RefUnwindSafe for BlockFPS
impl Send for BlockFPS
impl Sync for BlockFPS
impl Unpin for BlockFPS
impl UnsafeUnpin for BlockFPS
impl UnwindSafe for BlockFPS
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