[x265] [PATCH] nal: remove unused helper functions

Gopu Govindaswamy gopu at multicorewareinc.com
Fri Oct 25 11:20:45 CEST 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1382692835 -19800
# Node ID 35144b9a28d2b7db09a95bfd78c232f4684c5aa1
# Parent  4ca4da7bdd36fbef00b9eefe54c0a56bf11633f3
nal: remove unused helper functions

diff -r 4ca4da7bdd36 -r 35144b9a28d2 source/Lib/TLibCommon/NAL.h
--- a/source/Lib/TLibCommon/NAL.h	Fri Oct 25 12:11:31 2013 +0530
+++ b/source/Lib/TLibCommon/NAL.h	Fri Oct 25 14:50:35 2013 +0530
@@ -63,38 +63,6 @@
 
     /** default constructor - no initialization; must be perfomed by user */
     NALUnit() {}
-
-    /** returns true if the NALunit is a slice NALunit */
-    bool isSlice()
-    {
-        return m_nalUnitType == NAL_UNIT_CODED_SLICE_TRAIL_R
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_TRAIL_N
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_TLA_R
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_TSA_N
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_STSA_R
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_STSA_N
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_LP
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_RADL
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_N_LP
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_N_LP
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_CRA
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_RADL_N
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_RADL_R
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_RASL_N
-               || m_nalUnitType == NAL_UNIT_CODED_SLICE_RASL_R;
-    }
-
-    bool isSei()
-    {
-        return m_nalUnitType == NAL_UNIT_PREFIX_SEI
-               || m_nalUnitType == NAL_UNIT_SUFFIX_SEI;
-    }
-
-    bool isVcl()
-    {
-        return (UInt)m_nalUnitType < 32;
-    }
 };
 
 struct OutputNALUnit;


More information about the x265-devel mailing list