[primitives,YCoCg] remove 16 bye alignment

This commit is contained in:
akallabeth
2025-03-07 10:03:36 +01:00
parent 8795ca181a
commit 8cb4741f03

View File

@@ -74,27 +74,6 @@ static pstatus_t ssse3_YCoCgRToRGB_8u_AC4R_invert(const BYTE* WINPR_RESTRICT pSr
{
UINT32 w = width;
/* Get to a 16-byte destination boundary. */
if ((ULONG_PTR)dptr & 0x0f)
{
pstatus_t status = 0;
UINT32 startup = (16 - ((ULONG_PTR)dptr & 0x0f)) / 4;
if (startup > width)
startup = width;
status = generic->YCoCgToRGB_8u_AC4R(
sptr, WINPR_ASSERTING_INT_CAST(INT32, srcStep), dptr, DstFormat,
WINPR_ASSERTING_INT_CAST(INT32, dstStep), startup, 1, shift, withAlpha);
if (status != PRIMITIVES_SUCCESS)
return status;
sptr += startup * sizeof(UINT32);
dptr += startup * sizeof(UINT32);
w -= startup;
}
while (w >= 8)
{
__m128i R0;
@@ -247,27 +226,6 @@ static pstatus_t ssse3_YCoCgRToRGB_8u_AC4R_no_invert(const BYTE* WINPR_RESTRICT
{
UINT32 w = width;
/* Get to a 16-byte destination boundary. */
if ((ULONG_PTR)dptr & 0x0f)
{
pstatus_t status = 0;
UINT32 startup = (16 - ((ULONG_PTR)dptr & 0x0f)) / 4;
if (startup > width)
startup = width;
status = generic->YCoCgToRGB_8u_AC4R(
sptr, WINPR_ASSERTING_INT_CAST(INT32, srcStep), dptr, DstFormat,
WINPR_ASSERTING_INT_CAST(INT32, dstStep), startup, 1, shift, withAlpha);
if (status != PRIMITIVES_SUCCESS)
return status;
sptr += startup * sizeof(UINT32);
dptr += startup * sizeof(UINT32);
w -= startup;
}
while (w >= 8)
{
__m128i R7;