summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 01:32:33 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 01:32:33 +0000
commitb3288056a36589a182c5ac7bf0f0d15698498d6d (patch)
treedcc0be3677207d2a563b90392c4925c96c3f7949 /media
parentd9003a4d83bf411698d38ec0c42c8847a3d27a3b (diff)
downloadchromium_src-b3288056a36589a182c5ac7bf0f0d15698498d6d.zip
chromium_src-b3288056a36589a182c5ac7bf0f0d15698498d6d.tar.gz
chromium_src-b3288056a36589a182c5ac7bf0f0d15698498d6d.tar.bz2
Changed horizontal scaler to start with 0 instead of 0.5.
BUG=19113 TEST=Left border in WebKit/LayoutTests/media/content/test.ogv is clearly visible. Review URL: http://codereview.chromium.org/1650002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/base/yuv_row_posix.cc6
-rw-r--r--media/base/yuv_row_win.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/media/base/yuv_row_posix.cc b/media/base/yuv_row_posix.cc
index 54ab715..c0d8cb5 100644
--- a/media/base/yuv_row_posix.cc
+++ b/media/base/yuv_row_posix.cc
@@ -378,7 +378,7 @@ void LinearScaleYUVToRGB32Row(const uint8* y_buf,
int width,
int scaled_dx) {
asm(
- "movq $32768,%%r11\n"
+ "xor %%r11,%%r11\n"
"sub $0x2,%4\n"
"js .lscalenext\n"
@@ -638,7 +638,7 @@ void LinearScaleYUVToRGB32Row(const uint8* y_buf,
"mov 0x24(%esp),%edx\n"
"mov 0x28(%esp),%edi\n"
"mov 0x30(%esp),%ebp\n"
- "movl $32768,%ebx\n"
+ "xor %ebx,%ebx\n"
// width = width * scaled_dx + ebx
"mov 0x34(%esp), %ecx\n"
@@ -901,7 +901,7 @@ void PICLinearScaleYUVToRGB32Row(const uint8* y_buf,
"mov 0x30(%esp),%ebp\n"
"mov 0x34(%esp),%ecx\n"
"mov 0x3c(%esp),%edi\n"
- "movl $32768,%ebx\n"
+ "xor %ebx,%ebx\n"
// width = width * scaled_dx + ebx
"mov 0x34(%esp), %ecx\n"
diff --git a/media/base/yuv_row_win.cc b/media/base/yuv_row_win.cc
index 34affa8..33712db 100644
--- a/media/base/yuv_row_win.cc
+++ b/media/base/yuv_row_win.cc
@@ -578,7 +578,7 @@ __asm {
mov edx, [esp + 32 + 4]
mov edi, [esp + 32 + 8]
mov ebp, [esp + 32 + 16]
- mov ebx, 32768
+ mov ebx, ebx
// width = width * scaled_dx + ebx
mov ecx, [esp + 32 + 20]