[x265] [PATCH] Fix cost estimation error for hist-based scenecut
Pooja Venkatesan
pooja at multicorewareinc.com
Thu Jul 16 07:26:58 CEST 2020
>From 613e174411f9d52677444f142f6f6dc0fe2e7885 Mon Sep 17 00:00:00 2001
From: Pooja Venkatesan <pooja at multicorewareinc.com>
Date: Thu, 9 Jul 2020 18:04:29 +0530
Subject: [PATCH] Fix cost estimation error for hist-based scenecut
---
source/encoder/slicetype.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/encoder/slicetype.cpp b/source/encoder/slicetype.cpp
index 5292473b1..81d2adbe6 100644
--- a/source/encoder/slicetype.cpp
+++ b/source/encoder/slicetype.cpp
@@ -2244,7 +2244,7 @@ bool Lookahead::scenecut(Lowres **frames, int p0, int
p1, bool bRealScenecut, in
* and not considered a scenecut. */
for (int cp1 = p1; cp1 <= maxp1; cp1++)
{
- if (!m_param->bHistBasedSceneCut && !scenecutInternal(frames,
p0, cp1, false))
+ if (!scenecutInternal(frames, p0, cp1, false) &&
!m_param->bHistBasedSceneCut)
{
/* Any frame in between p0 and cur_p1 cannot be a real
scenecut. */
for (int i = cp1; i > p0; i--)
--
2.24.0.windows.2
Regards,
*Pooja Venkatesan*,
Video Codec Engineer,
Media & AI analytics BU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20200716/7f8f71c6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_hist_patch.diff
Type: application/octet-stream
Size: 1057 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20200716/7f8f71c6/attachment.obj>
More information about the x265-devel
mailing list