pub struct TranscodeConfig {
pub block_size: usize,
pub compression_level: CompressionLevel,
pub format: FormatProfile,
pub num_threads: usize,
pub buffer_size: usize,
pub strict_bgzf_check: bool,
pub force_transcode: bool,
pub build_index: bool,
}Expand description
Configuration for transcoding
Fields§
§block_size: usizeTarget uncompressed block size (default: 65280, max for BGZF)
compression_level: CompressionLevelCompression level (1-9)
format: FormatProfileFormat profile for input-aware optimization
num_threads: usizeNumber of threads for parallel encoding (0 = auto, 1 = single-threaded)
buffer_size: usizeBuffer size for I/O operations
strict_bgzf_check: boolUse thorough BGZF validation (validates all blocks vs just first)
force_transcode: boolSkip BGZF detection entirely (always transcode)
build_index: boolBuild GZI index during transcoding
Implementations§
Source§impl TranscodeConfig
impl TranscodeConfig
Sourcepub fn use_fixed_huffman(&self) -> bool
pub fn use_fixed_huffman(&self) -> bool
Whether to use fixed Huffman tables based on compression level
Sourcepub fn use_smart_boundaries(&self) -> bool
pub fn use_smart_boundaries(&self) -> bool
Whether to use smart boundary splitting based on level and format
Trait Implementations§
Source§impl Clone for TranscodeConfig
impl Clone for TranscodeConfig
Source§fn clone(&self) -> TranscodeConfig
fn clone(&self) -> TranscodeConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranscodeConfig
impl Debug for TranscodeConfig
Auto Trait Implementations§
impl Freeze for TranscodeConfig
impl RefUnwindSafe for TranscodeConfig
impl Send for TranscodeConfig
impl Sync for TranscodeConfig
impl Unpin for TranscodeConfig
impl UnwindSafe for TranscodeConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)