[x265] [PATCH] Fix bug in mcstf
Anusuya Kumarasamy
anusuya.kumarasamy at multicorewareinc.com
Mon Mar 20 06:42:27 UTC 2023
>From 2525cbbf847b42088a7637d08af673b6536d7ef7 Mon Sep 17 00:00:00 2001
From: AnusuyaKumarasamy <anusuya.kumarasamy at multicorewareinc.com>
Date: Fri, 10 Feb 2023 16:47:46 +0530
Subject: [PATCH] Fix bug in mcstf
---
source/encoder/encoder.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
index 5950f87e9..c2dd6f4e8 100644
--- a/source/encoder/encoder.cpp
+++ b/source/encoder/encoder.cpp
@@ -2396,7 +2396,7 @@ int Encoder::encode(const x265_picture* pic_in,
x265_picture* pic_out)
if (!*ref->isSubsampled)
{
primitives.frameSubSampleLuma((const pixel
*)ref->picBuffer->m_picOrg[0], ref->picBufferSubSampled2->m_picOrg[0],
ref->picBuffer->m_stride, ref->picBufferSubSampled2->m_stride,
ref->picBufferSubSampled2->m_picWidth,
ref->picBufferSubSampled2->m_picHeight);
-
extendPicBorder(frameEnc->m_fencPicSubsampled2->m_picOrg[0],
ref->picBufferSubSampled2->m_stride, ref->picBufferSubSampled2->m_picWidth,
ref->picBufferSubSampled2->m_picHeight,
ref->picBufferSubSampled2->m_lumaMarginX,
ref->picBufferSubSampled2->m_lumaMarginY);
+
extendPicBorder(ref->picBufferSubSampled2->m_picOrg[0],
ref->picBufferSubSampled2->m_stride, ref->picBufferSubSampled2->m_picWidth,
ref->picBufferSubSampled2->m_picHeight,
ref->picBufferSubSampled2->m_lumaMarginX,
ref->picBufferSubSampled2->m_lumaMarginY);
primitives.frameSubSampleLuma((const pixel
*)ref->picBufferSubSampled2->m_picOrg[0],ref->picBufferSubSampled4->m_picOrg[0],
ref->picBufferSubSampled2->m_stride, ref->picBufferSubSampled4->m_stride,
ref->picBufferSubSampled4->m_picWidth,
ref->picBufferSubSampled4->m_picHeight);
extendPicBorder(ref->picBufferSubSampled4->m_picOrg[0],
ref->picBufferSubSampled4->m_stride, ref->picBufferSubSampled4->m_picWidth,
ref->picBufferSubSampled4->m_picHeight,
ref->picBufferSubSampled4->m_lumaMarginX,
ref->picBufferSubSampled4->m_lumaMarginY);
*ref->isSubsampled = true;
--
2.36.0.windows.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20230320/f31b0145/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcstf_fix_patch.diff
Type: application/octet-stream
Size: 2138 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20230320/f31b0145/attachment.obj>
More information about the x265-devel
mailing list