From fd49c0125b72a0667cecd4167ba30df99a790535 Mon Sep 17 00:00:00 2001 From: Redzic Date: Tue, 30 Aug 2022 19:02:11 -0500 Subject: [PATCH] Reuse frame allocations for VS input --- Cargo.lock | 6 +++--- av1an-core/src/scene_detect.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fdebcde73..8bd1d355f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -147,7 +147,7 @@ dependencies = [ [[package]] name = "av-scenechange" version = "0.7.2" -source = "git+https://github.com/redzic/av-scenechange?branch=zerocopy#4d09add386b5ead81219f095a0d7677bff54dc72" +source = "git+https://github.com/redzic/av-scenechange?branch=zerocopy#cd259cac94278f2d431dce99774d3c9f4f8598b8" dependencies = [ "anyhow", "ffmpeg-next", @@ -381,9 +381,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.2.18" +version = "3.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15f2ea93df33549dbe2e8eecd1ca55269d63ae0b3ba1f55db030817d1c2867f" +checksum = "68d43934757334b5c0519ff882e1ab9647ac0258b47c24c4f490d78e42697fd5" dependencies = [ "atty", "bitflags", diff --git a/av1an-core/src/scene_detect.rs b/av1an-core/src/scene_detect.rs index f5fd35e01..a8998f837 100644 --- a/av1an-core/src/scene_detect.rs +++ b/av1an-core/src/scene_detect.rs @@ -2,7 +2,7 @@ use std::thread; use ansi_term::Style; use anyhow::bail; -use av_scenechange::decode::Decoder2; +use av_scenechange::decode::Decoder; use av_scenechange::ffmpeg::FfmpegDecoder; use av_scenechange::vapoursynth::VapoursynthDecoder; use av_scenechange::{detect_scene_changes, DetectionOptions, SceneDetectionSpeed}; @@ -110,7 +110,7 @@ pub fn av_scenechange_detect( /// Detect scene changes using rav1e scene detector. #[allow(clippy::option_if_let_else)] -pub fn scene_detect>( +pub fn scene_detect>( decoder: &mut D, // TODO use these fields _encoder: Encoder,