diff options
author | metamuffin <metamuffin@disroot.org> | 2023-03-07 08:00:00 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-03-07 08:00:00 +0100 |
commit | 2167abcf72d978b4ac2f08fa7cbbddaada01f165 (patch) | |
tree | 3f384b868333271ba8e47ed583bae0a6af62b3fb /evc/src/codec/decode.rs | |
parent | 200f8064e1b1b96acc7d4a6f0f8321b2da5c2830 (diff) | |
download | video-codec-experiments-2167abcf72d978b4ac2f08fa7cbbddaada01f165.tar video-codec-experiments-2167abcf72d978b4ac2f08fa7cbbddaada01f165.tar.bz2 video-codec-experiments-2167abcf72d978b4ac2f08fa7cbbddaada01f165.tar.zst |
a
Diffstat (limited to 'evc/src/codec/decode.rs')
-rw-r--r-- | evc/src/codec/decode.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/evc/src/codec/decode.rs b/evc/src/codec/decode.rs index bb2aadf..b1f6a3d 100644 --- a/evc/src/codec/decode.rs +++ b/evc/src/codec/decode.rs @@ -3,9 +3,7 @@ use crate::{ block::Block, frame::Frame, helpers::threading::both_par, refsampler::Sampler, view::View, }; -pub struct DecodeConfig { - pub max_threads: usize, -} +pub struct DecodeConfig {} pub fn decode_block( block: &Block, @@ -24,10 +22,9 @@ pub fn decode_block( unsafe { std::mem::transmute::<_, [View<&'static Frame>; 2]>(prev.split()) }; let config = unsafe { std::mem::transmute::<_, &'static DecodeConfig>(config) }; - both_par( + rayon::join( move || decode_block(a, at, ap, config), move || decode_block(b, bt, bp, config), - config.max_threads, ); } Block::CompressedLiteral(data) => { |