MCSTF optimization - #923
Merged
kirithika7 merged 23 commits intoJul 28, 2026
Merged
Conversation
kirithika7
force-pushed
the
MCSTF-Optimization-updated
branch
4 times, most recently
from
July 24, 2026 12:51
6b26de1 to
40a49a2
Compare
The m_useSADinME conditionals are no longer required because m_useSADinME is always set to 0, causing the SSD-based motion error path to be selected unconditionally. Remove the unused SAD branches and invoke the SSD path directly. Also remove the unused average/variance computation and the associated leastError adjustment, as they do not affect motion vector selection or the final encoding result.
Generate low-resolution planes using the HM averaging method only when MCSTF is enabled. Otherwise, preserve the existing low-res pipeline.
This commit fixes segfault that occurs due to inadequate frames in lookahead(zerolatency / ultrafast case)
This commit reuses the existing variance computation and remove redundant Allocate/Free up gradMag buffer once per encode
Logaprakash-mcw
force-pushed
the
MCSTF-Optimization-updated
branch
from
July 28, 2026 09:44
40a49a2 to
c824ad9
Compare
kirithika7
force-pushed
the
MCSTF-Optimization-updated
branch
from
July 28, 2026 12:08
1d9efd2 to
e88d474
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds multi-threaded execution and AVX2 SIMD kernels to Motion-Compensated Spatio-Temporal Filtering (MCSTF), decouples it from the badapt (B-adaptive) flow so it can run independently, and adds a noise-based selective mode plus test bench coverage.
Key changes
Multi-threading
AVX2 SIMD kernels
Algorithm/pipeline changes
Selective MCSTF (noise-based)
Testing