OLD | NEW |
1 ; | 1 ; |
2 ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 ; Copyright (c) 2010 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 |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 pop rbp | 622 pop rbp |
623 ret | 623 ret |
624 %undef flimit4 | 624 %undef flimit4 |
625 | 625 |
626 | 626 |
627 ;void vp9_plane_add_noise_wmt (unsigned char *start, unsigned char *noise, | 627 ;void vp9_plane_add_noise_wmt (unsigned char *start, unsigned char *noise, |
628 ; unsigned char blackclamp[16], | 628 ; unsigned char blackclamp[16], |
629 ; unsigned char whiteclamp[16], | 629 ; unsigned char whiteclamp[16], |
630 ; unsigned char bothclamp[16], | 630 ; unsigned char bothclamp[16], |
631 ; unsigned int width, unsigned int height, int pitch) | 631 ; unsigned int width, unsigned int height, int pitch) |
632 extern sym(rand) | |
633 global sym(vp9_plane_add_noise_wmt) PRIVATE | 632 global sym(vp9_plane_add_noise_wmt) PRIVATE |
634 sym(vp9_plane_add_noise_wmt): | 633 sym(vp9_plane_add_noise_wmt): |
635 push rbp | 634 push rbp |
636 mov rbp, rsp | 635 mov rbp, rsp |
637 SHADOW_ARGS_TO_STACK 8 | 636 SHADOW_ARGS_TO_STACK 8 |
638 GET_GOT rbx | 637 GET_GOT rbx |
639 push rsi | 638 push rsi |
640 push rdi | 639 push rdi |
641 ; end prolog | 640 ; end prolog |
642 | 641 |
643 .addnoise_loop: | 642 .addnoise_loop: |
644 call sym(rand) WRT_PLT | 643 call sym(LIBVPX_RAND) WRT_PLT |
645 mov rcx, arg(1) ;noise | 644 mov rcx, arg(1) ;noise |
646 and rax, 0xff | 645 and rax, 0xff |
647 add rcx, rax | 646 add rcx, rax |
648 | 647 |
649 ; we rely on the fact that the clamping vectors are stored contiguously | 648 ; we rely on the fact that the clamping vectors are stored contiguously |
650 ; in black/white/both order. Note that we have to reload this here because | 649 ; in black/white/both order. Note that we have to reload this here because |
651 ; rdx could be trashed by rand() | 650 ; rdx could be trashed by rand() |
652 mov rdx, arg(2) ; blackclamp | 651 mov rdx, arg(2) ; blackclamp |
653 | 652 |
654 | 653 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 pop rbp | 685 pop rbp |
687 ret | 686 ret |
688 | 687 |
689 | 688 |
690 SECTION_RODATA | 689 SECTION_RODATA |
691 align 16 | 690 align 16 |
692 rd42: | 691 rd42: |
693 times 8 dw 0x04 | 692 times 8 dw 0x04 |
694 four8s: | 693 four8s: |
695 times 4 dd 8 | 694 times 4 dd 8 |
OLD | NEW |