<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 3, 2014 at 7:09 AM, <span dir="ltr"><<a href="mailto:ashok@multicorewareinc.com" target="_blank">ashok@multicorewareinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User <a href="mailto:ashok@multicorewareinc.com">ashok@multicorewareinc.com</a><br>
# Date 1388754532 -19800<br>
# Fri Jan 03 18:38:52 2014 +0530<br>
# Node ID d7f6034a4ead619cde6977033f908d879789b1d1<br>
# Parent d1f5cad1ac2f4394616633751f1b885178848b49<br>
Modify TComSlice structure to support multiple color space formats<br>
<br>
diff -r d1f5cad1ac2f -r d7f6034a4ead source/Lib/TLibCommon/TComSlice.cpp<br>
--- a/source/Lib/TLibCommon/TComSlice.cpp Fri Jan 03 18:37:35 2014 +0530<br>
+++ b/source/Lib/TLibCommon/TComSlice.cpp Fri Jan 03 18:38:52 2014 +0530<br>
@@ -1077,8 +1077,6 @@<br>
m_scalingListCoef[sizeId][listId] = new int[X265_MIN(MAX_MATRIX_COEF_NUM, (int)g_scalingListSize[sizeId])];<br>
}<br>
}<br>
-<br>
- m_scalingListCoef[SCALING_LIST_32x32][3] = m_scalingListCoef[SCALING_LIST_32x32][1]; // copy address for 32x32<br>
}<br>
<br>
/** destroy quantization matrix array<br>
diff -r d1f5cad1ac2f -r d7f6034a4ead source/Lib/TLibCommon/TComSlice.h<br>
--- a/source/Lib/TLibCommon/TComSlice.h Fri Jan 03 18:37:35 2014 +0530<br>
+++ b/source/Lib/TLibCommon/TComSlice.h Fri Jan 03 18:38:52 2014 +0530<br>
@@ -778,6 +778,7 @@<br>
int m_SPSId;<br>
int m_VPSId;<br>
int m_chromaFormatIdc;<br>
+ bool m_colorPlaneFlag;<br>
<br>
uint32_t m_maxTLayers; // maximum number of temporal layers<br>
<br>
@@ -863,6 +864,10 @@<br>
<br>
void setChromaFormatIdc(int i) { m_chromaFormatIdc = i; }<br>
<br>
+ void setSeparateColorPlaneFlag(bool c) { m_colorPlaneFlag = c;}<br>
+<br>
+ bool getSeparateColorPlaneFlag() { return m_colorPlaneFlag;}<br></blockquote><div><br></div><div>ugh, please don't add any more set/get methods, just make the variable public and access it directly.</div><div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
static int getWinUnitX(int chromaFormatIdc) { assert(chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return g_winUnitX[chromaFormatIdc]; }<br>
<br>
static int getWinUnitY(int chromaFormatIdc) { assert(chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return g_winUnitY[chromaFormatIdc]; }<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Steve Borho
</div></div>