Commit 53a01667 authored by fbarchard@google.com's avatar fbarchard@google.com

bilinear ssse3 fix

BUG=none
TEST=none
Review URL: https://webrtc-codereview.appspot.com/452001

git-svn-id: http://libyuv.googlecode.com/svn/trunk@212 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 2217ced8
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 211
Version: 212
License: BSD
License File: LICENSE
......
......@@ -11,7 +11,7 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 211
#define LIBYUV_VERSION 212
#endif // INCLUDE_LIBYUV_VERSION_H_
......@@ -1433,13 +1433,12 @@ static void ScaleFilterRows_SSSE3(uint8* dst_ptr, const uint8* src_ptr,
mov ecx, [esp + 8 + 16] // dst_width
mov eax, [esp + 8 + 20] // source_y_fraction (0..255)
sub edi, esi
shr eax, 1
cmp eax, 0
je xloop1
cmp eax, 128
cmp eax, 64
je xloop2
shr eax, 1
mov ah,al
mov ah, al
neg al
add al, 128
movd xmm5, eax
......@@ -2199,11 +2198,11 @@ extern "C" void ScaleFilterRows_SSSE3(uint8* dst_ptr,
"mov 0x18(%esp),%ecx \n"
"mov 0x1c(%esp),%eax \n"
"sub %esi, %edi \n"
"shr %eax \n"
"cmp $0x0,%eax \n"
"je 2f \n"
"cmp $0x80,%eax \n"
"cmp $0x40,%eax \n"
"je 3f \n"
"shr %eax \n"
"mov %al,%ah \n"
"neg %al \n"
"add $0x80,%al \n"
......@@ -2688,7 +2687,7 @@ static void ScaleFilterRows_SSE2(uint8* dst_ptr,
static void ScaleFilterRows_SSSE3(uint8* dst_ptr,
const uint8* src_ptr, int src_stride,
int dst_width, int source_y_fraction) {
if (source_y_fraction == 0) {
if (source_y_fraction <= 1) {
asm volatile (
"1:"
"movdqa (%1),%%xmm0 \n"
......
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