| 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 |
| 11 | 11 |
| 12 %include "vpx_ports/x86_abi_support.asm" | 12 %include "vpx_ports/x86_abi_support.asm" |
| 13 | 13 |
| 14 %define VP8_FILTER_WEIGHT 128 | 14 %define VP8_FILTER_WEIGHT 128 |
| 15 %define VP8_FILTER_SHIFT 7 | 15 %define VP8_FILTER_SHIFT 7 |
| 16 | 16 |
| 17 ;void vp8_post_proc_down_and_across_mmx | 17 ;void vp8_post_proc_down_and_across_mmx |
| 18 ;( | 18 ;( |
| 19 ; unsigned char *src_ptr, | 19 ; unsigned char *src_ptr, |
| 20 ; unsigned char *dst_ptr, | 20 ; unsigned char *dst_ptr, |
| 21 ; int src_pixels_per_line, | 21 ; int src_pixels_per_line, |
| 22 ; int dst_pixels_per_line, | 22 ; int dst_pixels_per_line, |
| 23 ; int rows, | 23 ; int rows, |
| 24 ; int cols, | 24 ; int cols, |
| 25 ; int flimit | 25 ; int flimit |
| 26 ;) | 26 ;) |
| 27 global sym(vp8_post_proc_down_and_across_mmx) | 27 global sym(vp8_post_proc_down_and_across_mmx) PRIVATE |
| 28 sym(vp8_post_proc_down_and_across_mmx): | 28 sym(vp8_post_proc_down_and_across_mmx): |
| 29 push rbp | 29 push rbp |
| 30 mov rbp, rsp | 30 mov rbp, rsp |
| 31 SHADOW_ARGS_TO_STACK 7 | 31 SHADOW_ARGS_TO_STACK 7 |
| 32 GET_GOT rbx | 32 GET_GOT rbx |
| 33 push rsi | 33 push rsi |
| 34 push rdi | 34 push rdi |
| 35 ; end prolog | 35 ; end prolog |
| 36 | 36 |
| 37 %if ABI_IS_32BIT=1 && CONFIG_PIC=1 | 37 %if ABI_IS_32BIT=1 && CONFIG_PIC=1 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 RESTORE_GOT | 258 RESTORE_GOT |
| 259 UNSHADOW_ARGS | 259 UNSHADOW_ARGS |
| 260 pop rbp | 260 pop rbp |
| 261 ret | 261 ret |
| 262 %undef RD | 262 %undef RD |
| 263 | 263 |
| 264 | 264 |
| 265 ;void vp8_mbpost_proc_down_mmx(unsigned char *dst, | 265 ;void vp8_mbpost_proc_down_mmx(unsigned char *dst, |
| 266 ; int pitch, int rows, int cols,int flimit) | 266 ; int pitch, int rows, int cols,int flimit) |
| 267 extern sym(vp8_rv) | 267 extern sym(vp8_rv) |
| 268 global sym(vp8_mbpost_proc_down_mmx) | 268 global sym(vp8_mbpost_proc_down_mmx) PRIVATE |
| 269 sym(vp8_mbpost_proc_down_mmx): | 269 sym(vp8_mbpost_proc_down_mmx): |
| 270 push rbp | 270 push rbp |
| 271 mov rbp, rsp | 271 mov rbp, rsp |
| 272 SHADOW_ARGS_TO_STACK 5 | 272 SHADOW_ARGS_TO_STACK 5 |
| 273 GET_GOT rbx | 273 GET_GOT rbx |
| 274 push rsi | 274 push rsi |
| 275 push rdi | 275 push rdi |
| 276 ; end prolog | 276 ; end prolog |
| 277 | 277 |
| 278 ALIGN_STACK 16, rax | 278 ALIGN_STACK 16, rax |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 ret | 458 ret |
| 459 %undef flimit2 | 459 %undef flimit2 |
| 460 | 460 |
| 461 | 461 |
| 462 ;void vp8_plane_add_noise_mmx (unsigned char *Start, unsigned char *noise, | 462 ;void vp8_plane_add_noise_mmx (unsigned char *Start, unsigned char *noise, |
| 463 ; unsigned char blackclamp[16], | 463 ; unsigned char blackclamp[16], |
| 464 ; unsigned char whiteclamp[16], | 464 ; unsigned char whiteclamp[16], |
| 465 ; unsigned char bothclamp[16], | 465 ; unsigned char bothclamp[16], |
| 466 ; unsigned int Width, unsigned int Height, int Pitch) | 466 ; unsigned int Width, unsigned int Height, int Pitch) |
| 467 extern sym(rand) | 467 extern sym(rand) |
| 468 global sym(vp8_plane_add_noise_mmx) | 468 global sym(vp8_plane_add_noise_mmx) PRIVATE |
| 469 sym(vp8_plane_add_noise_mmx): | 469 sym(vp8_plane_add_noise_mmx): |
| 470 push rbp | 470 push rbp |
| 471 mov rbp, rsp | 471 mov rbp, rsp |
| 472 SHADOW_ARGS_TO_STACK 8 | 472 SHADOW_ARGS_TO_STACK 8 |
| 473 GET_GOT rbx | 473 GET_GOT rbx |
| 474 push rsi | 474 push rsi |
| 475 push rdi | 475 push rdi |
| 476 ; end prolog | 476 ; end prolog |
| 477 | 477 |
| 478 addnoise_loop: | 478 addnoise_loop: |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 SECTION_RODATA | 525 SECTION_RODATA |
| 526 align 16 | 526 align 16 |
| 527 Blur: | 527 Blur: |
| 528 times 16 dw 16 | 528 times 16 dw 16 |
| 529 times 8 dw 64 | 529 times 8 dw 64 |
| 530 times 16 dw 16 | 530 times 16 dw 16 |
| 531 times 8 dw 0 | 531 times 8 dw 0 |
| 532 | 532 |
| 533 rd: | 533 rd: |
| 534 times 4 dw 0x40 | 534 times 4 dw 0x40 |
| OLD | NEW |