mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 09:54:26 +08:00
Merge pull request #10817 from llyzs/rgbcopy
[core,primitive] fix rgb primitive copy without conversion.
This commit is contained in:
commit
7d8711cd72
@ -309,6 +309,23 @@ static INLINE pstatus_t generic_image_copy_no_overlap_dst_alpha(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case PIXEL_FORMAT_RGBX32:
|
||||||
|
case PIXEL_FORMAT_RGBA32:
|
||||||
|
switch (DstFormat)
|
||||||
|
{
|
||||||
|
case PIXEL_FORMAT_RGBX32:
|
||||||
|
case PIXEL_FORMAT_RGBA32:
|
||||||
|
return generic_image_copy_bgrx32_bgrx32(
|
||||||
|
pDstData, nDstStep, nXDst, nYDst, nWidth, nHeight, pSrcData, nSrcStep,
|
||||||
|
nXSrc, nYSrc, srcVMultiplier, srcVOffset, dstVMultiplier, dstVOffset);
|
||||||
|
case PIXEL_FORMAT_RGB24:
|
||||||
|
return generic_image_copy_bgr24_bgrx32(
|
||||||
|
pDstData, nDstStep, nXDst, nYDst, nWidth, nHeight, pSrcData, nSrcStep,
|
||||||
|
nXSrc, nYSrc, srcVMultiplier, srcVOffset, dstVMultiplier, dstVOffset);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -196,6 +196,19 @@ static pstatus_t avx2_image_copy_no_overlap_dst_alpha(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case PIXEL_FORMAT_RGBX32:
|
||||||
|
case PIXEL_FORMAT_RGBA32:
|
||||||
|
switch (DstFormat)
|
||||||
|
{
|
||||||
|
case PIXEL_FORMAT_RGBX32:
|
||||||
|
case PIXEL_FORMAT_RGBA32:
|
||||||
|
return avx2_image_copy_bgrx32_bgrx32(
|
||||||
|
pDstData, nDstStep, nXDst, nYDst, nWidth, nHeight, pSrcData, nSrcStep,
|
||||||
|
nXSrc, nYSrc, srcVMultiplier, srcVOffset, dstVMultiplier, dstVOffset);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -180,6 +180,19 @@ static pstatus_t sse_image_copy_no_overlap_dst_alpha(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case PIXEL_FORMAT_RGBX32:
|
||||||
|
case PIXEL_FORMAT_RGBA32:
|
||||||
|
switch (DstFormat)
|
||||||
|
{
|
||||||
|
case PIXEL_FORMAT_RGBX32:
|
||||||
|
case PIXEL_FORMAT_RGBA32:
|
||||||
|
return sse_image_copy_bgrx32_bgrx32(
|
||||||
|
pDstData, nDstStep, nXDst, nYDst, nWidth, nHeight, pSrcData, nSrcStep,
|
||||||
|
nXSrc, nYSrc, srcVMultiplier, srcVOffset, dstVMultiplier, dstVOffset);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user