[x265] [PATCH] Modify TComSlice structure to support multiple color space formats

ashok at multicorewareinc.com ashok at multicorewareinc.com
Fri Dec 20 15:02:40 CET 2013


# HG changeset patch
# User ashok at multicorewareinc.com
# Date 1387548138 -19800
#      Fri Dec 20 19:32:18 2013 +0530
# Node ID ee5e76287a4858456dddcdbff0684dbe8569b6db
# Parent  b44bd26b4a1e5be57df7cc9b5de039cfec830d43
Modify TComSlice structure to support multiple color space formats

diff -r b44bd26b4a1e -r ee5e76287a48 source/Lib/TLibCommon/TComSlice.cpp
--- a/source/Lib/TLibCommon/TComSlice.cpp	Fri Dec 20 19:30:22 2013 +0530
+++ b/source/Lib/TLibCommon/TComSlice.cpp	Fri Dec 20 19:32:18 2013 +0530
@@ -1076,8 +1076,6 @@
             m_scalingListCoef[sizeId][listId] = new int[X265_MIN(MAX_MATRIX_COEF_NUM, (int)g_scalingListSize[sizeId])];
         }
     }
-
-    m_scalingListCoef[SCALING_LIST_32x32][3] = m_scalingListCoef[SCALING_LIST_32x32][1]; // copy address for 32x32
 }
 
 /** destroy quantization matrix array
diff -r b44bd26b4a1e -r ee5e76287a48 source/Lib/TLibCommon/TComSlice.h
--- a/source/Lib/TLibCommon/TComSlice.h	Fri Dec 20 19:30:22 2013 +0530
+++ b/source/Lib/TLibCommon/TComSlice.h	Fri Dec 20 19:32:18 2013 +0530
@@ -777,6 +777,7 @@
     int         m_SPSId;
     int         m_VPSId;
     int         m_chromaFormatIdc;
+    bool        m_colorPlaneFlag;
 
     uint32_t        m_maxTLayers;         // maximum number of temporal layers
 
@@ -862,6 +863,10 @@
 
     void setChromaFormatIdc(int i)    { m_chromaFormatIdc = i; }
 
+    void setSeparateColorPlaneFlag(bool c)      { m_colorPlaneFlag = c;}
+
+    bool getSeparateColorPlaneFlag()      { return m_colorPlaneFlag;}
+
     static int getWinUnitX(int chromaFormatIdc) { assert(chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return g_winUnitX[chromaFormatIdc]; }
 
     static int getWinUnitY(int chromaFormatIdc) { assert(chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return g_winUnitY[chromaFormatIdc]; }


More information about the x265-devel mailing list