| OLD | NEW |
| 1 ; Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 ; Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 ; Use of this source code is governed by a BSD-style license that can be | 2 ; Use of this source code is governed by a BSD-style license that can be |
| 3 ; found in the LICENSE file. | 3 ; found in the LICENSE file. |
| 4 | 4 |
| 5 %include "media/base/simd/media_export.asm" |
| 5 %include "third_party/x86inc/x86inc.asm" | 6 %include "third_party/x86inc/x86inc.asm" |
| 6 | 7 |
| 7 ; | 8 ; |
| 8 ; This file uses MMX instructions. | 9 ; This file uses MMX instructions. |
| 9 ; | 10 ; |
| 10 SECTION_TEXT | 11 SECTION_TEXT |
| 11 CPU MMX | 12 CPU MMX |
| 12 | 13 |
| 13 ;void LinearScaleYUVToRGB32Row_MMX_X64(const uint8* y_buf, | 14 ;void LinearScaleYUVToRGB32Row_MMX_X64(const uint8* y_buf, |
| 14 ; const uint8* u_buf, | 15 ; const uint8* u_buf, |
| 15 ; const uint8* v_buf, | 16 ; const uint8* v_buf, |
| 16 ; uint8* rgb_buf, | 17 ; uint8* rgb_buf, |
| 17 ; ptrdiff_t width, | 18 ; ptrdiff_t width, |
| 18 ; ptrdiff_t source_dx); | 19 ; ptrdiff_t source_dx); |
| 19 %define SYMBOL LinearScaleYUVToRGB32Row_MMX_X64 | 20 %define SYMBOL LinearScaleYUVToRGB32Row_MMX_X64 |
| 20 global mangle(SYMBOL) PRIVATE | 21 EXPORT SYMBOL |
| 21 align function_align | 22 align function_align |
| 22 | 23 |
| 23 mangle(SYMBOL): | 24 mangle(SYMBOL): |
| 24 %assign stack_offset 0 | 25 %assign stack_offset 0 |
| 25 extern mangle(kCoefficientsRgbY) | 26 extern mangle(kCoefficientsRgbY) |
| 26 | 27 |
| 27 ; Parameters are in the following order: | 28 ; Parameters are in the following order: |
| 28 ; 1. Y plane | 29 ; 1. Y plane |
| 29 ; 2. U plane | 30 ; 2. U plane |
| 30 ; 3. V plane | 31 ; 3. V plane |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 140 |
| 140 .lscalelastpixel: | 141 .lscalelastpixel: |
| 141 paddsw mm1, mm0 | 142 paddsw mm1, mm0 |
| 142 psraw mm1, 6 | 143 psraw mm1, 6 |
| 143 packuswb mm1, mm1 | 144 packuswb mm1, mm1 |
| 144 movd [ARGBq], mm1 | 145 movd [ARGBq], mm1 |
| 145 | 146 |
| 146 .epilogue | 147 .epilogue |
| 147 EPILOGUE | 148 EPILOGUE |
| 148 RET | 149 RET |
| OLD | NEW |