| 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 "media/base/simd/media_export.asm" |
| 6 | 6 |
| 7 EXPORT SYMBOL | 7 EXPORT SYMBOL |
| 8 align function_align | 8 align function_align |
| 9 | 9 |
| 10 mangle(SYMBOL): | 10 mangle(SYMBOL): |
| 11 %assign stack_offset 0 | 11 %assign stack_offset 0 |
| 12 | 12 |
| 13 extern mangle(kCoefficientsRgbY) | |
| 14 | |
| 15 ; Parameters are in the following order: | 13 ; Parameters are in the following order: |
| 16 ; 1. Y plane | 14 ; 1. Y plane |
| 17 ; 2. U plane | 15 ; 2. U plane |
| 18 ; 3. V plane | 16 ; 3. V plane |
| 19 ; 4. ARGB frame | 17 ; 4. ARGB frame |
| 20 ; 5. Width | 18 ; 5. Width |
| 21 ; 6. Source dx | 19 ; 6. Source dx |
| 22 ; 7. Lookup table address | 20 ; 7. Lookup table address |
| 23 | 21 |
| 24 PROLOGUE 7, 7, 3, Y, U, V, ARGB, R1, R2, TEMP | 22 PROLOGUE 7, 7, 3, Y, U, V, ARGB, R1, R2, TEMP |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 movzx TEMPd, BYTE [Yq + TEMPq] | 89 movzx TEMPd, BYTE [Yq + TEMPq] |
| 92 movq mm1, [TABLE + 8 * TEMPq] | 90 movq mm1, [TABLE + 8 * TEMPq] |
| 93 paddsw mm1, mm0 | 91 paddsw mm1, mm0 |
| 94 psraw mm1, 6 | 92 psraw mm1, 6 |
| 95 packuswb mm1, mm1 | 93 packuswb mm1, mm1 |
| 96 movd DWORD [ARGBq], mm1 | 94 movd DWORD [ARGBq], mm1 |
| 97 | 95 |
| 98 .scaledone: | 96 .scaledone: |
| 99 ADD rsp, 2 * gprsize | 97 ADD rsp, 2 * gprsize |
| 100 RET | 98 RET |
| OLD | NEW |