Skip to main content

MultiGpuParams

Struct MultiGpuParams 

Source
pub struct MultiGpuParams<'a> {
Show 20 fields pub input: Bytes, pub rungs: &'a [Rung], pub header: DemuxHeader, pub source_color_metadata: ColorMetadata, pub source_pixel_format: PixelFormat, pub tonemap_to_sdr: bool, pub output_color_metadata: ColorMetadata, pub output_pixel_format: PixelFormat, pub needs_downsample: bool, pub frame_rate: f64, pub gpu_pool: Arc<GpuPool>, pub gpu_indices: Vec<u32>, pub decode_gpu: Option<u32>, pub output_root: PathBuf, pub timescale: u32, pub per_frame_ticks: u32, pub keyframe_interval: u32, pub segment_target_ticks: u64, pub total_input_frames: u64, pub constant_qp: bool,
}
Expand description

Inputs to run_multigpu_hls.

Fields§

§input: Bytes§rungs: &'a [Rung]§header: DemuxHeader§source_color_metadata: ColorMetadata§source_pixel_format: PixelFormat§tonemap_to_sdr: bool

Whether the decode pump tonemaps HDR→SDR (from the spec’s ColorPolicy).

§output_color_metadata: ColorMetadata

Resolved output color metadata + pixel format the encoders target (from OutputSpec::resolve_output).

§output_pixel_format: PixelFormat§needs_downsample: bool§frame_rate: f64§gpu_pool: Arc<GpuPool>§gpu_indices: Vec<u32>

GPU indices the encode policy selected, in detection order. The decode pump pins to these (round-robin for per-rung pumps) so decode honors the same Family / SingleGpu / AllGpus constraint as encode. Empty ⇒ the decoder dispatch auto-selects (legacy behavior).

§decode_gpu: Option<u32>

Explicit decode-pump GPU override. Some(i) forces every decode pump onto GPU i regardless of gpu_indices; None follows the policy.

§output_root: PathBuf§timescale: u32§per_frame_ticks: u32§keyframe_interval: u32§segment_target_ticks: u64§total_input_frames: u64§constant_qp: bool

Force constant-QP chunk encoding (single-file ChunkSeamMode::ParallelConstQp) so stitched chunk seams are quality-flat. false for HLS (segments are independent) and the default Parallel single-file mode.

Auto Trait Implementations§

§

impl<'a> !Freeze for MultiGpuParams<'a>

§

impl<'a> RefUnwindSafe for MultiGpuParams<'a>

§

impl<'a> Send for MultiGpuParams<'a>

§

impl<'a> Sync for MultiGpuParams<'a>

§

impl<'a> Unpin for MultiGpuParams<'a>

§

impl<'a> UnsafeUnpin for MultiGpuParams<'a>

§

impl<'a> UnwindSafe for MultiGpuParams<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more