Trait gstreamer_video::auto::video_encoder::VideoEncoderExt
source · pub trait VideoEncoderExt:
IsA<VideoEncoder>
+ Sealed
+ 'static {
// Provided methods
fn allocate_output_buffer(&self, size: usize) -> Buffer { ... }
fn finish_frame(
&self,
frame: VideoCodecFrame<'_>,
) -> Result<FlowSuccess, FlowError> { ... }
fn max_encode_time(&self, frame: &VideoCodecFrame<'_>) -> ClockTimeDiff { ... }
fn is_qos_enabled(&self) -> bool { ... }
fn merge_tags(&self, tags: Option<&TagList>, mode: TagMergeMode) { ... }
fn proxy_getcaps(&self, caps: Option<&Caps>, filter: Option<&Caps>) -> Caps { ... }
fn set_min_pts(&self, min_pts: impl Into<Option<ClockTime>>) { ... }
fn set_qos_enabled(&self, enabled: bool) { ... }
fn is_qos(&self) -> bool { ... }
fn set_qos(&self, qos: bool) { ... }
fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
fn allocate_output_buffer(&self, size: usize) -> Buffer
fn finish_frame( &self, frame: VideoCodecFrame<'_>, ) -> Result<FlowSuccess, FlowError>
fn max_encode_time(&self, frame: &VideoCodecFrame<'_>) -> ClockTimeDiff
fn is_qos_enabled(&self) -> bool
fn proxy_getcaps(&self, caps: Option<&Caps>, filter: Option<&Caps>) -> Caps
fn set_min_pts(&self, min_pts: impl Into<Option<ClockTime>>)
fn set_qos_enabled(&self, enabled: bool)
fn is_qos(&self) -> bool
fn set_qos(&self, qos: bool)
fn connect_qos_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.