pub struct RustCaptureSettings {Show 36 fields
pub width: i32,
pub height: i32,
pub scale: f64,
pub capture_x: i32,
pub capture_y: i32,
pub target_fps: f64,
pub jpeg_quality: i32,
pub paint_over_jpeg_quality: i32,
pub use_paint_over_quality: bool,
pub paint_over_trigger_frames: u32,
pub damage_block_threshold: u32,
pub damage_block_duration: u32,
pub output_mode: i32,
pub video_crf: i32,
pub video_paintover_crf: i32,
pub video_paintover_burst_frames: i32,
pub video_fullcolor: bool,
pub video_fullframe: bool,
pub video_streaming_mode: bool,
pub capture_cursor: bool,
pub cursor_size_cap: i32,
pub watermark_path: String,
pub watermark_location_enum: i32,
pub encode_node_index: i32,
pub use_cpu: bool,
pub debug_logging: bool,
pub auto_adjust_screen_capture_size: bool,
pub recording_socket: String,
pub wayland_host_display: String,
pub omit_stripe_headers: bool,
pub video_cbr_mode: bool,
pub video_bitrate_kbps: i32,
pub video_vbv_multiplier: f64,
pub keyframe_interval_s: f64,
pub video_min_qp: i32,
pub video_max_qp: i32,
}Expand description
The full set of capture + encode parameters the Python layer hands to the Rust backend.
A single value configures a capture session end to end: capture geometry and frame rate, the
output mode (striped JPEG/x264 vs full-frame H.264), the H.264 quality and rate-control knobs,
cursor and watermark options, the encode-device selection, and the optional recording socket.
It derives PartialEq so the backend can detect when a live setting actually changed, and
Clone so each capture pipeline can own its own copy.
Fields§
§width: i32§height: i32§scale: f64§capture_x: i32§capture_y: i32§target_fps: f64§jpeg_quality: i32§paint_over_jpeg_quality: i32§use_paint_over_quality: bool§paint_over_trigger_frames: u32§damage_block_threshold: u32§damage_block_duration: u32§output_mode: i32§video_crf: i32§video_paintover_crf: i32§video_paintover_burst_frames: i32§video_fullcolor: bool§video_fullframe: bool§video_streaming_mode: bool§capture_cursor: bool§cursor_size_cap: i32Longest cursor edge the out-of-band cursor callback delivers; larger images are
downscaled (<= 0 = uncapped). Compositing via capture_cursor is unaffected.
watermark_path: String§watermark_location_enum: i32§encode_node_index: i32§use_cpu: bool§debug_logging: bool§auto_adjust_screen_capture_size: bool§recording_socket: String§wayland_host_display: StringWayland display of an EXTERNAL compositor to capture (host-capture mode); empty composites own clients as usual.
omit_stripe_headers: boolWhen true, encoders emit the raw payload without the per-stripe header byte block; stripe metadata is then carried only on the frame attributes.
video_cbr_mode: bool§video_bitrate_kbps: i32§video_vbv_multiplier: f64CBR VBV/HRD size as a multiple of one frame’s bit budget (bitrate/framerate), so it
rescales with live bitrate/fps changes. <= 0 selects the policy default: 1.5 on an
infinite GOP, 3 when scheduled keyframes are enabled.
keyframe_interval_s: f64Seconds between scheduled recovery keyframes; <= 0 keeps the GOP infinite
(IDRs only on demand: client join / reset, recorder connect).
video_min_qp: i32Rate-controlled (CBR) QP clamp: video_max_qp bounds the quality FLOOR (screen text stays
legible under motion at the cost of overshooting impossible targets), video_min_qp bounds
bit WASTE on easy content. 0 keeps the encoder’s own default; CRF/CQP modes pin their QP
directly and ignore these.
video_max_qp: i32Trait Implementations§
Source§impl Clone for RustCaptureSettings
impl Clone for RustCaptureSettings
Source§fn clone(&self) -> RustCaptureSettings
fn clone(&self) -> RustCaptureSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RustCaptureSettings
impl Debug for RustCaptureSettings
Source§impl Default for RustCaptureSettings
impl Default for RustCaptureSettings
Source§impl PartialEq for RustCaptureSettings
impl PartialEq for RustCaptureSettings
Source§fn eq(&self, other: &RustCaptureSettings) -> bool
fn eq(&self, other: &RustCaptureSettings) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RustCaptureSettings
Auto Trait Implementations§
impl Freeze for RustCaptureSettings
impl RefUnwindSafe for RustCaptureSettings
impl Send for RustCaptureSettings
impl Sync for RustCaptureSettings
impl Unpin for RustCaptureSettings
impl UnsafeUnpin for RustCaptureSettings
impl UnwindSafe for RustCaptureSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().