#[non_exhaustive]pub struct ExportOptions {Show 17 fields
pub tile_size: u32,
pub overwrite: bool,
pub max_prepared_frame_bytes: u64,
pub transfer_syntax: TransferSyntax,
pub jpeg_direct_htj2k_profile: JpegDirectHtj2kProfile,
pub jpeg_quality: u8,
pub icc_profile_policy: IccProfilePolicy,
pub uid_policy: UidPolicy,
pub encode_backend: EncodeBackendPreference,
pub codec_validation: CodecValidation,
pub source_device_decode: bool,
pub j2k_decomposition_levels: Option<u8>,
pub gpu_encode_inflight_tiles: Option<usize>,
pub gpu_encode_memory_mib: Option<u64>,
pub gpu_pipeline_depth: Option<usize>,
pub gpu_row_batch_rows: Option<usize>,
pub gpu_row_batch_target_tiles: Option<usize>,
}Expand description
Options controlling how a source WSI should be converted into DICOM.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tile_size: u32Target DICOM tile size in pixels for generated frames.
overwrite: boolWhether generated DICOM files may replace existing files.
max_prepared_frame_bytes: u64Maximum prepared uncompressed frame buffer size in bytes.
transfer_syntax: TransferSyntaxRequested output transfer syntax.
jpeg_direct_htj2k_profile: JpegDirectHtj2kProfileDirect JPEG-to-HTJ2K profile used when eligible.
jpeg_quality: u8JPEG quality used for JPEG Baseline fallback encoding.
icc_profile_policy: IccProfilePolicyICC profile policy for missing source color metadata.
uid_policy: UidPolicyPolicy for generated Study, Series, SOP, and related DICOM UIDs.
encode_backend: EncodeBackendPreferenceRuntime encoder backend preference.
codec_validation: CodecValidationRuntime codec validation policy.
source_device_decode: boolWhether source tile decode may use a device backend when available.
j2k_decomposition_levels: Option<u8>Optional maximum JPEG 2000 decomposition level override.
gpu_encode_inflight_tiles: Option<usize>Optional cap on concurrently in-flight GPU encode tiles.
gpu_encode_memory_mib: Option<u64>Optional GPU encode memory budget in MiB.
gpu_pipeline_depth: Option<usize>Optional GPU pipeline depth.
gpu_row_batch_rows: Option<usize>Optional maximum rows per GPU row batch.
gpu_row_batch_target_tiles: Option<usize>Optional target tile count per GPU row batch.
Implementations§
Source§impl ExportOptions
impl ExportOptions
Trait Implementations§
Source§impl Clone for ExportOptions
impl Clone for ExportOptions
Source§fn clone(&self) -> ExportOptions
fn clone(&self) -> ExportOptions
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 ExportOptions
impl Debug for ExportOptions
Source§impl Default for ExportOptions
impl Default for ExportOptions
Source§impl<'de> Deserialize<'de> for ExportOptionswhere
ExportOptions: Default,
impl<'de> Deserialize<'de> for ExportOptionswhere
ExportOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ExportOptions
Source§impl PartialEq for ExportOptions
impl PartialEq for ExportOptions
Source§impl Serialize for ExportOptions
impl Serialize for ExportOptions
impl StructuralPartialEq for ExportOptions
Auto Trait Implementations§
impl Freeze for ExportOptions
impl RefUnwindSafe for ExportOptions
impl Send for ExportOptions
impl Sync for ExportOptions
impl Unpin for ExportOptions
impl UnsafeUnpin for ExportOptions
impl UnwindSafe for ExportOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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