OLD | NEW |
1 ; | 1 ; |
2 ; jdmrgss2.asm - merged upsampling/color conversion (SSE2) | 2 ; jdmrgss2.asm - merged upsampling/color conversion (SSE2) |
3 ; | 3 ; |
4 ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB | 4 ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB |
5 ; | 5 ; |
6 ; Based on | 6 ; Based on |
7 ; x86 SIMD extension for IJG JPEG library | 7 ; x86 SIMD extension for IJG JPEG library |
8 ; Copyright (C) 1999-2006, MIYASAKA Masaru. | 8 ; Copyright (C) 1999-2006, MIYASAKA Masaru. |
9 ; For conditions of distribution and use, see copyright notice in jsimdext.inc | 9 ; For conditions of distribution and use, see copyright notice in jsimdext.inc |
10 ; | 10 ; |
11 ; This file should be assembled with NASM (Netwide Assembler), | 11 ; This file should be assembled with NASM (Netwide Assembler), |
12 ; can *not* be assembled with Microsoft's MASM or any compatible | 12 ; can *not* be assembled with Microsoft's MASM or any compatible |
13 ; assembler (including Borland's Turbo Assembler). | 13 ; assembler (including Borland's Turbo Assembler). |
14 ; NASM is available from http://nasm.sourceforge.net/ or | 14 ; NASM is available from http://nasm.sourceforge.net/ or |
15 ; http://sourceforge.net/project/showfiles.php?group_id=6208 | 15 ; http://sourceforge.net/project/showfiles.php?group_id=6208 |
16 ; | 16 ; |
17 ; [TAB8] | 17 ; [TAB8] |
18 | 18 |
19 %include "jcolsamp.inc" | 19 %include "jcolsamp.inc" |
20 | 20 |
21 ; -------------------------------------------------------------------------- | 21 ; -------------------------------------------------------------------------- |
22 %ifndef NEED_SECTION | |
23 %define NEED_SECTION | |
24 SECTION SEG_TEXT | |
25 BITS 32 | |
26 %endif | |
27 | |
28 ; | 22 ; |
29 ; Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical. | 23 ; Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical. |
30 ; | 24 ; |
31 ; GLOBAL(void) | 25 ; GLOBAL(void) |
32 ; jsimd_h2v1_merged_upsample_sse2 (JDIMENSION output_width, | 26 ; jsimd_h2v1_merged_upsample_sse2 (JDIMENSION output_width, |
33 ; JSAMPIMAGE input_buf, | 27 ; JSAMPIMAGE input_buf, |
34 ; JDIMENSION in_row_group_ctr, | 28 ; JDIMENSION in_row_group_ctr, |
35 ; JSAMPARRAY output_buf); | 29 ; JSAMPARRAY output_buf); |
36 ; | 30 ; |
37 | 31 |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 pop esi | 606 pop esi |
613 ; pop edx ; need not be preserved | 607 ; pop edx ; need not be preserved |
614 ; pop ecx ; need not be preserved | 608 ; pop ecx ; need not be preserved |
615 pop ebx | 609 pop ebx |
616 pop ebp | 610 pop ebp |
617 ret | 611 ret |
618 | 612 |
619 ; For some reason, the OS X linker does not honor the request to align the | 613 ; For some reason, the OS X linker does not honor the request to align the |
620 ; segment unless we do this. | 614 ; segment unless we do this. |
621 align 16 | 615 align 16 |
OLD | NEW |