[x265] [PATCH] SEI: Replaced STL Classes
Gopu Govindaswamy
gopu at multicorewareinc.com
Thu Sep 5 11:27:30 CEST 2013
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1378373236 -19800
# Node ID 06061c31e894a2703a92acba968930fa971e2093
# Parent c30558100e0d0f0f464b02911123dab02589e2a4
SEI: Replaced STL Classes
diff -r c30558100e0d -r 06061c31e894 source/Lib/TLibCommon/SEI.h
--- a/source/Lib/TLibCommon/SEI.h Thu Sep 05 14:36:28 2013 +0530
+++ b/source/Lib/TLibCommon/SEI.h Thu Sep 05 14:57:16 2013 +0530
@@ -146,7 +146,7 @@
bool m_fullRandomAccessFlag;
bool m_noParamSetUpdateFlag;
int numSpsIdsMinus1;
- std::vector<int> activeSeqParamSetId;
+ int activeSeqParamSetId;
};
class SEIBufferingPeriod : public SEI
diff -r c30558100e0d -r 06061c31e894 source/Lib/TLibEncoder/SEIwrite.cpp
--- a/source/Lib/TLibEncoder/SEIwrite.cpp Thu Sep 05 14:36:28 2013 +0530
+++ b/source/Lib/TLibEncoder/SEIwrite.cpp Thu Sep 05 14:57:16 2013 +0530
@@ -256,13 +256,7 @@
WRITE_FLAG(sei.m_fullRandomAccessFlag, "full_random_access_flag");
WRITE_FLAG(sei.m_noParamSetUpdateFlag, "no_param_set_update_flag");
WRITE_UVLC(sei.numSpsIdsMinus1, "num_sps_ids_minus1");
-
- assert(sei.activeSeqParamSetId.size() == (sei.numSpsIdsMinus1 + 1));
-
- for (int i = 0; i < sei.activeSeqParamSetId.size(); i++)
- {
- WRITE_UVLC(sei.activeSeqParamSetId[i], "active_seq_param_set_id");
- }
+ WRITE_UVLC(sei.activeSeqParamSetId, "active_seq_param_set_id");
UInt bits = m_bitIf->getNumberOfWrittenBits();
UInt alignedBits = (8 - (bits & 7)) % 8;
diff -r c30558100e0d -r 06061c31e894 source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp Thu Sep 05 14:36:28 2013 +0530
+++ b/source/encoder/frameencoder.cpp Thu Sep 05 14:57:16 2013 +0530
@@ -184,8 +184,7 @@
sei.m_fullRandomAccessFlag = false;
sei.m_noParamSetUpdateFlag = false;
sei.numSpsIdsMinus1 = 0;
- sei.activeSeqParamSetId.resize(sei.numSpsIdsMinus1 + 1);
- sei.activeSeqParamSetId[0] = m_sps.getSPSId();
+ sei.activeSeqParamSetId = m_sps.getSPSId();
entropyCoder->setBitstream(&nalu.m_Bitstream);
m_seiWriter.writeSEImessage(nalu.m_Bitstream, sei, &m_sps);
More information about the x265-devel
mailing list