OLD | NEW |
1 ; | 1 ; |
2 ; Copyright (c) 2015 The WebM project authors. All Rights Reserved. | 2 ; Copyright (c) 2015 The WebM project authors. All Rights Reserved. |
3 ; | 3 ; |
4 ; Use of this source code is governed by a BSD-style license | 4 ; Use of this source code is governed by a BSD-style license |
5 ; that can be found in the LICENSE file in the root of the source | 5 ; that can be found in the LICENSE file in the root of the source |
6 ; tree. An additional intellectual property rights grant can be found | 6 ; tree. An additional intellectual property rights grant can be found |
7 ; in the file PATENTS. All contributing project authors may | 7 ; in the file PATENTS. All contributing project authors may |
8 ; be found in the AUTHORS file in the root of the source tree. | 8 ; be found in the AUTHORS file in the root of the source tree. |
9 ; | 9 ; |
10 | 10 |
11 %include "third_party/x86inc/x86inc.asm" | 11 %include "third_party/x86inc/x86inc.asm" |
12 | 12 |
| 13 |
13 SECTION_RODATA | 14 SECTION_RODATA |
14 pw_1: times 8 dw 1 | 15 pw_1: times 8 dw 1 |
15 | 16 |
16 SECTION .text | 17 SECTION .text |
17 | 18 |
18 ; TODO(yunqingwang)fix quantize_b code for skip=1 case. | 19 ; TODO(yunqingwang)fix quantize_b code for skip=1 case. |
19 %macro QUANTIZE_FN 2 | 20 %macro QUANTIZE_FN 2 |
20 cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \ | 21 cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \ |
21 shift, qcoeff, dqcoeff, dequant, \ | 22 shift, qcoeff, dqcoeff, dequant, \ |
22 eob, scan, iscan | 23 eob, scan, iscan |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 mova [qcoeffq+ncoeffq*2+16], m7 | 208 mova [qcoeffq+ncoeffq*2+16], m7 |
208 add ncoeffq, mmsize | 209 add ncoeffq, mmsize |
209 jl .blank_loop | 210 jl .blank_loop |
210 mov word [eobq], 0 | 211 mov word [eobq], 0 |
211 RET | 212 RET |
212 %endmacro | 213 %endmacro |
213 | 214 |
214 INIT_XMM ssse3 | 215 INIT_XMM ssse3 |
215 QUANTIZE_FN b, 7 | 216 QUANTIZE_FN b, 7 |
216 QUANTIZE_FN b_32x32, 7 | 217 QUANTIZE_FN b_32x32, 7 |
OLD | NEW |