[x265] [PATCH 08/10] search range optimization-2
Anusuya Kumarasamy
anusuya.kumarasamy at multicorewareinc.com
Mon Nov 11 14:22:16 UTC 2024
>From d480d271c7174cb9f05097297d7b9254f64dbc88 Mon Sep 17 00:00:00 2001
From: Karam Singh <karam.singh at multicorewareinc.com>
Date: Mon, 11 Dec 2023 16:13:40 +0530
Subject: [PATCH 08/10] search range optimization-2
---
source/common/temporalfilter.cpp | 21 +--------------------
1 file changed, 1 insertion(+), 20 deletions(-)
diff --git a/source/common/temporalfilter.cpp
b/source/common/temporalfilter.cpp
index 521e367c8..db58a0c15 100644
--- a/source/common/temporalfilter.cpp
+++ b/source/common/temporalfilter.cpp
@@ -893,26 +893,7 @@ void TemporalFilter::motionEstimationLumaDoubleRes(MV
*mvs, uint32_t mvStride, P
}
prevBest = best;
- int doubleRange = 1 * 4;
- for (int y2 = prevBest.y - doubleRange; y2 <= prevBest.y +
doubleRange; y2 += 4)
- {
- for (int x2 = prevBest.x - doubleRange; x2 <= prevBest.x +
doubleRange; x2 += 4)
- {
- if (m_useSADinME)
- error = motionErrorLumaSAD(orig->m_picOrg[0],
orig->m_stride, buffer->m_picOrg[0], blockX, blockY, x2, y2, blockSize,
leastError);
- else
- error = motionErrorLumaSSD(orig->m_picOrg[0],
orig->m_stride, buffer->m_picOrg[0], blockX, blockY, x2, y2, blockSize,
leastError);
-
- if (error < leastError)
- {
- best.set(x2, y2);
- leastError = error;
- }
- }
- }
-
- prevBest = best;
- doubleRange = 3;
+ int doubleRange = 3;
for (int y2 = prevBest.y - doubleRange; y2 <= prevBest.y +
doubleRange; y2++)
{
for (int x2 = prevBest.x - doubleRange; x2 <= prevBest.x +
doubleRange; x2++)
--
2.36.0.windows.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20241111/c31774b8/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-search-range-optimization-2.patch
Type: application/octet-stream
Size: 1846 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20241111/c31774b8/attachment-0001.obj>
More information about the x265-devel
mailing list