Commit 3a0f6003 authored by Thomas Guillem's avatar Thomas Guillem

chroma: copy: favor uswc copy with SSE4.1

This commit improve the Y plane copy speed from GPU images.
parent f2342854
......@@ -418,7 +418,8 @@ static void SSE_CopyPlane(uint8_t *dst, size_t dst_pitch,
const unsigned hstep = cache_size / w16;
assert(hstep > 0);
if (src_pitch == dst_pitch)
/* If SSE4.1: CopyFromUswc is faster than memcpy */
if (!vlc_CPU_SSE4_1() && src_pitch == dst_pitch)
memcpy(dst, src, src_pitch * height);
for (unsigned y = 0; y < height; y += hstep) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment