[x265] [PATCH] Reconfigure param if change in scalinglist
vignesh at multicorewareinc.com
vignesh at multicorewareinc.com
Mon Oct 3 08:08:41 CEST 2016
# HG changeset patch
# User Vignesh Vijayakumar
# Date 1466414741 -19800
# Mon Jun 20 14:55:41 2016 +0530
# Node ID b58624ba8027b059c0f2ba6473a993f37c150625
# Parent 11bfa0ae971029fed69554e700185a8ef93a289c
Reconfigure param if change in scalinglist
diff -r 11bfa0ae9710 -r b58624ba8027 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp Wed Sep 28 15:18:23 2016 +0530
+++ b/source/encoder/encoder.cpp Mon Jun 20 14:55:41 2016 +0530
@@ -56,6 +56,7 @@
{
m_aborted = false;
m_reconfigure = false;
+ m_scalingListChanged = false;
m_encodedFrameNum = 0;
m_pocLast = -1;
m_curEncoder = 0;
@@ -836,6 +837,11 @@
* curEncoder is guaranteed to be idle at this point */
if (!pass)
frameEnc = m_lookahead->getDecidedPicture();
+ if (frameEnc != NULL && (m_reconfigure == true && m_latestParam->scalingLists != m_param->scalingLists && !m_scalingListChanged))
+ {
+ frameEnc->m_lowres.bKeyframe = true;
+ m_scalingListChanged = true;
+ }
if (frameEnc && !pass)
{
if (curEncoder->m_reconfigure)
diff -r 11bfa0ae9710 -r b58624ba8027 source/encoder/encoder.h
--- a/source/encoder/encoder.h Wed Sep 28 15:18:23 2016 +0530
+++ b/source/encoder/encoder.h Mon Jun 20 14:55:41 2016 +0530
@@ -132,6 +132,7 @@
bool m_bZeroLatency; // x265_encoder_encode() returns NALs for the input picture, zero lag
bool m_aborted; // fatal error detected
bool m_reconfigure; // Encoder reconfigure in progress
+ bool m_scalingListChanged;
/* Begin intra refresh when one not in progress or else begin one as soon as the current
* one is done. Requires bIntraRefresh to be set.*/
More information about the x265-devel
mailing list