pub struct DecodePumpConfig {
pub codec_name: String,
pub info_for_decoder: StreamInfo,
pub source_color_metadata: ColorMetadata,
pub source_pixel_format: PixelFormat,
pub needs_downsample: bool,
pub tonemap_to_sdr: bool,
pub gpu_index: Option<u32>,
}Expand description
Configuration for one decode pump.
Fields§
§codec_name: StringSource video codec label (e.g. "h264").
info_for_decoder: StreamInfoStream info handed to the decoder.
source_color_metadata: ColorMetadataSource color metadata (drives HDR-aware tonemap vs SDR passthrough).
source_pixel_format: PixelFormatSource pixel format.
needs_downsample: boolWhether to run the 4:4:4 → 4:2:0 downsample per frame.
tonemap_to_sdr: boolTonemap policy (from the OutputSpec): when
true, HDR (PQ/HLG) sources are mapped down to 8-bit SDR BT.709; when
false, the source color/transfer/bit-depth passes through unchanged.
The pump does not decide this on its own — the caller sets it from the
spec’s ColorPolicy.
gpu_index: Option<u32>Pin the decoder to this physical GPU; None = first matching adapter.
Trait Implementations§
Source§impl Clone for DecodePumpConfig
impl Clone for DecodePumpConfig
Source§fn clone(&self) -> DecodePumpConfig
fn clone(&self) -> DecodePumpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecodePumpConfig
impl RefUnwindSafe for DecodePumpConfig
impl Send for DecodePumpConfig
impl Sync for DecodePumpConfig
impl Unpin for DecodePumpConfig
impl UnsafeUnpin for DecodePumpConfig
impl UnwindSafe for DecodePumpConfig
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