mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
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
This commit is contained in:
parent
2217ced8cd
commit
53a0166719
@ -1,6 +1,6 @@
|
||||
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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user