pub struct GOPDetector { /* private fields */ }Expand description
GOP (Group of Pictures) detector
Implementations§
Source§impl GOPDetector
impl GOPDetector
Sourcepub fn with_gop_range(self, min: usize, max: usize) -> Self
pub fn with_gop_range(self, min: usize, max: usize) -> Self
Set GOP size constraints
Sourcepub fn with_scene_threshold(self, threshold: f64) -> Self
pub fn with_scene_threshold(self, threshold: f64) -> Self
Set scene change threshold
Sourcepub async fn detect_gops(&self, _video_path: &Path) -> Result<Vec<GOPInfo>>
pub async fn detect_gops(&self, _video_path: &Path) -> Result<Vec<GOPInfo>>
Detect GOP structure in video
Sourcepub fn validate_alignment(
&self,
segments: &[VideoSegment],
gops: &[GOPInfo],
) -> Result<bool>
pub fn validate_alignment( &self, segments: &[VideoSegment], gops: &[GOPInfo], ) -> Result<bool>
Validate GOP alignment for segments
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GOPDetector
impl RefUnwindSafe for GOPDetector
impl Send for GOPDetector
impl Sync for GOPDetector
impl Unpin for GOPDetector
impl UnsafeUnpin for GOPDetector
impl UnwindSafe for GOPDetector
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request