Commit c2b74366 authored by fbarchard@google.com's avatar fbarchard@google.com

CopyRows_X86 had parameters wrong

 TESTED=videotool save to file
 NEEDS_QA=false
Review URL: http://webrtc-codereview.appspot.com/304006

git-svn-id: http://libyuv.googlecode.com/svn/trunk@96 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent ca26f860
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 95 Version: 96
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -150,13 +150,14 @@ void CopyRow_SSE2(const uint8* src, uint8* dst, int count) { ...@@ -150,13 +150,14 @@ void CopyRow_SSE2(const uint8* src, uint8* dst, int count) {
} }
} }
__declspec(naked)
void CopyRow_X86(const uint8* src, uint8* dst, int count) { void CopyRow_X86(const uint8* src, uint8* dst, int count) {
__asm { __asm {
push esi push esi
push edi push edi
mov esi, [esp + 4 + 4] // src mov esi, [esp + 8 + 4] // src
mov edi, [esp + 4 + 8] // dst mov edi, [esp + 8 + 8] // dst
mov ecx, [esp + 4 + 12] // count mov ecx, [esp + 8 + 12] // count
shr ecx, 2 shr ecx, 2
rep movsd rep movsd
pop edi pop edi
...@@ -257,7 +258,6 @@ int I420Copy(const uint8* src_y, int src_stride_y, ...@@ -257,7 +258,6 @@ int I420Copy(const uint8* src_y, int src_stride_y,
return 0; return 0;
} }
// Copy ARGB with optional flipping // Copy ARGB with optional flipping
int ARGBCopy(const uint8* src_argb, int src_stride_argb, int ARGBCopy(const uint8* src_argb, int src_stride_argb,
uint8* dst_argb, int dst_stride_argb, uint8* dst_argb, int dst_stride_argb,
......
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