[x265] [PATCH] asm : Hook up chroma_vsp with the encoder
nabajit at multicorewareinc.com
nabajit at multicorewareinc.com
Wed Jan 22 14:35:04 CET 2014
# HG changeset patch
# User Nabajit Deka
# Date 1390397664 -19800
# Wed Jan 22 19:04:24 2014 +0530
# Node ID 7b3902dbcbf301d1e600bc6c828c690071131410
# Parent 0f0ad4c094bd840b5a3183425670bee51434cdf7
asm : Hook up chroma_vsp with the encoder.
diff -r 0f0ad4c094bd -r 7b3902dbcbf3 source/Lib/TLibCommon/TComPrediction.cpp
--- a/source/Lib/TLibCommon/TComPrediction.cpp Tue Jan 21 16:39:44 2014 -0600
+++ b/source/Lib/TLibCommon/TComPrediction.cpp Wed Jan 22 19:04:24 2014 +0530
@@ -522,19 +522,15 @@
}
else
{
- int hShift = CHROMA_H_SHIFT(csp);
- int vShift = CHROMA_V_SHIFT(csp);
- uint32_t cxWidth = width >> hShift;
- uint32_t cxHeight = height >> vShift;
- int extStride = cxWidth;
+ int extStride = width >> 1;
int filterSize = NTAPS_CHROMA;
int halfFilterSize = (filterSize >> 1);
- primitives.chroma[csp].filter_hps[partEnum](refCb, refStride, m_immedVals, extStride, xFrac, 1);
- primitives.chroma_vsp(m_immedVals + (halfFilterSize - 1) * extStride, extStride, dstCb, dstStride, cxWidth, cxHeight, yFrac);
+ primitives.chroma[csp].filter_hps[partEnum](refCb, refStride, m_immedVals, extStride, xFrac, 1);
+ primitives.chroma[csp].filter_vsp[partEnum](m_immedVals + (halfFilterSize - 1) * extStride, extStride, dstCb, dstStride, yFrac);
primitives.chroma[csp].filter_hps[partEnum](refCr, refStride, m_immedVals, extStride, xFrac, 1);
- primitives.chroma_vsp(m_immedVals + (halfFilterSize - 1) * extStride, extStride, dstCr, dstStride, cxWidth, cxHeight, yFrac);
+ primitives.chroma[csp].filter_vsp[partEnum](m_immedVals + (halfFilterSize - 1) * extStride, extStride, dstCr, dstStride, yFrac);
}
}
diff -r 0f0ad4c094bd -r 7b3902dbcbf3 source/encoder/weightPrediction.cpp
--- a/source/encoder/weightPrediction.cpp Tue Jan 21 16:39:44 2014 -0600
+++ b/source/encoder/weightPrediction.cpp Wed Jan 22 19:04:24 2014 +0530
@@ -69,14 +69,12 @@
}
else
{
- uint32_t cxWidth = m_blockSize;
- uint32_t cxHeight = m_blockSize;
- int extStride = cxWidth;
+ int extStride = m_blockSize;
int filterSize = NTAPS_CHROMA;
int halfFilterSize = (filterSize >> 1);
primitives.chroma[m_csp].filter_hps[partEnum](temp, strd, immedVal, extStride, xFrac, 1);
- primitives.chroma_vsp(immedVal + (halfFilterSize - 1) * extStride, extStride, m_buf + pixoff, m_refStride, cxWidth, cxHeight, yFrac);
+ primitives.chroma[m_csp].filter_vsp[partEnum](immedVal + (halfFilterSize - 1) * extStride, extStride, m_buf + pixoff, m_refStride, yFrac);
}
}
else
More information about the x265-devel
mailing list