[x265] [PATCH] TComPicYuv: Modification of variable names
murugan at multicorewareinc.com
murugan at multicorewareinc.com
Thu Mar 13 11:46:28 CET 2014
# HG changeset patch
# User Murugan Vairavel <murugan at multicorewareinc.com>
# Date 1394701821 -19800
# Thu Mar 13 14:40:21 2014 +0530
# Node ID 1b6c943dd7e4d5d7f53be90d99596fe004cb3c54
# Parent 40cd2a0c4eb2a0cfe51b9b70cf60e46dfb0f248b
TComPicYuv: Modification of variable names
diff -r 40cd2a0c4eb2 -r 1b6c943dd7e4 source/Lib/TLibCommon/TComPicYuv.cpp
--- a/source/Lib/TLibCommon/TComPicYuv.cpp Thu Mar 13 13:39:34 2014 +0530
+++ b/source/Lib/TLibCommon/TComPicYuv.cpp Thu Mar 13 14:40:21 2014 +0530
@@ -329,49 +329,49 @@
/* extend the right edge if width was not multiple of the minimum CU size */
if (padx)
{
- pixel *Y = getLumaAddr();
- pixel *U = getCbAddr();
- pixel *V = getCrAddr();
+ pixel *yPixel = getLumaAddr();
+ pixel *uPixel = getCbAddr();
+ pixel *vPixel = getCrAddr();
for (int r = 0; r < height; r++)
{
for (int x = 0; x < padx; x++)
{
- Y[width + x] = Y[width - 1];
+ yPixel[width + x] = yPixel[width - 1];
}
- Y += getStride();
+ yPixel += getStride();
}
for (int r = 0; r < height >> m_vChromaShift; r++)
{
for (int x = 0; x < padx >> m_hChromaShift; x++)
{
- U[(width >> m_hChromaShift) + x] = U[(width >> m_hChromaShift) - 1];
- V[(width >> m_hChromaShift) + x] = V[(width >> m_hChromaShift) - 1];
+ uPixel[(width >> m_hChromaShift) + x] = uPixel[(width >> m_hChromaShift) - 1];
+ vPixel[(width >> m_hChromaShift) + x] = vPixel[(width >> m_hChromaShift) - 1];
}
- U += getCStride();
- V += getCStride();
+ uPixel += getCStride();
+ vPixel += getCStride();
}
}
/* extend the bottom if height was not multiple of the minimum CU size */
if (pady)
{
- pixel *Y = getLumaAddr() + (height - 1) * getStride();
- pixel *U = getCbAddr() + ((height >> m_vChromaShift) - 1) * getCStride();
- pixel *V = getCrAddr() + ((height >> m_vChromaShift) - 1) * getCStride();
+ pixel *yPixel = getLumaAddr() + (height - 1) * getStride();
+ pixel *uPixel = getCbAddr() + ((height >> m_vChromaShift) - 1) * getCStride();
+ pixel *vPixel = getCrAddr() + ((height >> m_vChromaShift) - 1) * getCStride();
for (uint32_t i = 1; i <= pady; i++)
{
- memcpy(Y + i * getStride(), Y, (width + padx) * sizeof(pixel));
+ memcpy(yPixel + i * getStride(), yPixel, (width + padx) * sizeof(pixel));
}
for (uint32_t j = 1; j <= pady >> m_vChromaShift; j++)
{
- memcpy(U + j * getCStride(), U, ((width + padx) >> m_hChromaShift) * sizeof(pixel));
- memcpy(V + j * getCStride(), V, ((width + padx) >> m_hChromaShift) * sizeof(pixel));
+ memcpy(uPixel + j * getCStride(), uPixel, ((width + padx) >> m_hChromaShift) * sizeof(pixel));
+ memcpy(vPixel + j * getCStride(), vPixel, ((width + padx) >> m_hChromaShift) * sizeof(pixel));
}
}
}
More information about the x265-devel
mailing list