mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[primitives,YCoCg] remove 16 bye alignment
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user