From 5b7855183665cb8b0935fd572d81343509b63af1 Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Date: Sun, 12 Mar 2023 02:49:52 +0100 Subject: [PATCH] =?UTF-8?q?Reestructuraci=C3=B3n=20Commit=202=20----------?= =?UTF-8?q?------------------------------------------------------=20EncSli?= =?UTF-8?q?ce=20se=20ha=20llamado=20al=20constructor=20de=20EncCu=20para?= =?UTF-8?q?=20crear=20un=20nuevo=20objeto=20antes=20y=20despu=C3=A9s=20de?= =?UTF-8?q?=20llamar=20a=20compressCtu=20(l=C3=ADneas=201897-1903)=20-----?= =?UTF-8?q?-------------------------------------------------------=20Secun?= =?UTF-8?q?dariamente:=20-=20A=C3=B1adidos=20punteros=20CodingStructure=20?= =?UTF-8?q?-=20A=C3=B1adido=20atributo=20EncCfg=20(m=5FpcEncCfg)=20-------?= =?UTF-8?q?-----------------------------------------------------=20CONTINU?= =?UTF-8?q?AR=20CON=20ATRIBUTOS=20DE=20EncCU=20en=20la=20l=C3=ADnea=20marc?= =?UTF-8?q?ada=20con=20el=20comentario=20///////////CONTINUAR////////////?= =?UTF-8?q?=20------------------------------------------------------------?= =?UTF-8?q?=20Hasta=20este=20punto=20el=20encoder=20funciona=20con=20una?= =?UTF-8?q?=20media=20de=20115=20segundos=20por=20cada=20ejecucci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Lib/EncoderLib/EncCu.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/source/Lib/EncoderLib/EncCu.h b/source/Lib/EncoderLib/EncCu.h index 350cc46..2f1d38c 100644 --- a/source/Lib/EncoderLib/EncCu.h +++ b/source/Lib/EncoderLib/EncCu.h @@ -334,6 +334,25 @@ public: m_ctxPool = other.m_ctxPool ? new CtxPool(*other.m_ctxPool) : nullptr; m_cuChromaQpOffsetIdxPlus1 = other.m_cuChromaQpOffsetIdxPlus1; m_unitPool = XuPool(other.m_unitPool); + m_pelUnitBufPool = PelUnitBufPool(other.m_pelUnitBufPool); + + m_pTempCS = new CodingStructure**(*other.m_pTempCS); + *m_pTempCS = new CodingStructure*(); + **m_pTempCS = (**other.m_pTempCS) ? new CodingStructure(***other.m_pTempCS) : nullptr; + + m_pBestCS = new CodingStructure**(*other.m_pBestCS); + *m_pBestCS = new CodingStructure*(); + **m_pBestCS = (**other.m_pBestCS) ? new CodingStructure(***other.m_pBestCS) : nullptr; + + m_pTempCS2 = new CodingStructure**(*other.m_pTempCS2); + *m_pTempCS2 = new CodingStructure*(); + **m_pTempCS2 = (**other.m_pTempCS2) ? new CodingStructure(***other.m_pTempCS2) : nullptr; + + m_pBestCS2 = new CodingStructure**(*other.m_pBestCS2); + *m_pBestCS2 = new CodingStructure*(); + **m_pBestCS2 = (**other.m_pBestCS2) ? new CodingStructure(***other.m_pBestCS2) : nullptr; + + m_pcEncCfg = other.m_pcEncCfg ? new EncCfg(*other.m_pcEncCfg) : nullptr; ///////////CONTINUAR//////////// } //END ALBERTO -- 2.24.1