pub enum EncodePolicy {
AllGpus,
SingleGpu(Option<u32>),
Family(GpuFamily),
}Expand description
Selects how a job’s encode work is distributed across the host’s GPUs.
Applies to both the single-file and HLS paths: AllGpus runs the multi-GPU
engine (decode once, chunk each rung across every GPU, stitch); SingleGpu
constrains the GPU pool to one device and (for single-file) takes the serial
encode path with no chunk overhead.
Variants§
AllGpus
Use all available GPUs (the multi-GPU lease-pool engine). For single-file this chunk-encodes each rung across the GPUs and stitches the packets; it falls back to single-GPU serial encode when only one GPU is present or the frame count is unknown. This is the default.
SingleGpu(Option<u32>)
Use a single GPU. None picks the first available GPU; Some(i)
pins to GPU index i. Single-file uses the serial encode path.
Family(GpuFamily)
Use every GPU of one vendor family (and only that family) — e.g.
Family(GpuFamily::Nvidia) on a host with an NVIDIA discrete + an
integrated AMD/Intel GPU uses just the NVIDIA cards. With more than one
device in the family, single-file chunks across them like AllGpus.
Trait Implementations§
Source§impl Clone for EncodePolicy
impl Clone for EncodePolicy
Source§fn clone(&self) -> EncodePolicy
fn clone(&self) -> EncodePolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EncodePolicy
Source§impl Debug for EncodePolicy
impl Debug for EncodePolicy
Source§impl Default for EncodePolicy
impl Default for EncodePolicy
Source§fn default() -> EncodePolicy
fn default() -> EncodePolicy
impl Eq for EncodePolicy
Source§impl PartialEq for EncodePolicy
impl PartialEq for EncodePolicy
Source§fn eq(&self, other: &EncodePolicy) -> bool
fn eq(&self, other: &EncodePolicy) -> bool
self and other values to be equal, and is used by ==.