Skip to content

Commit aa10a8c

Browse files
committed
Improve scene detection
1 parent a3badce commit aa10a8c

File tree

2 files changed

+291
-209
lines changed

2 files changed

+291
-209
lines changed

src/api/internal.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ pub(crate) struct ContextInner<T: Pixel> {
246246
gop_output_frameno_start: BTreeMap<u64, u64>,
247247
/// Maps `output_frameno` to `gop_input_frameno_start`.
248248
pub(crate) gop_input_frameno_start: BTreeMap<u64, u64>,
249-
keyframe_detector: SceneChangeDetector,
249+
keyframe_detector: SceneChangeDetector<T>,
250250
pub(crate) config: Arc<EncoderConfig>,
251251
seq: Arc<Sequence>,
252252
pub(crate) rc_state: RCState,
@@ -291,7 +291,6 @@ impl<T: Pixel> ContextInner<T> {
291291
CpuFeatureLevel::default(),
292292
lookahead_distance,
293293
seq.clone(),
294-
true,
295294
),
296295
config: Arc::new(*enc),
297296
seq,

0 commit comments

Comments
 (0)