OLD | NEW |
1 ; | 1 ; |
2 ; jdclrss2.asm - colorspace conversion (SSE2) | 2 ; jdclrss2.asm - colorspace 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 |
22 SECTION SEG_TEXT | 24 SECTION SEG_TEXT |
23 BITS 32 | 25 BITS 32 |
| 26 %endif |
| 27 |
24 ; | 28 ; |
25 ; Convert some rows of samples to the output colorspace. | 29 ; Convert some rows of samples to the output colorspace. |
26 ; | 30 ; |
27 ; GLOBAL(void) | 31 ; GLOBAL(void) |
28 ; jsimd_ycc_rgb_convert_sse2 (JDIMENSION out_width, | 32 ; jsimd_ycc_rgb_convert_sse2 (JDIMENSION out_width, |
29 ; JSAMPIMAGE input_buf, JDIMENSION input_row, | 33 ; JSAMPIMAGE input_buf, JDIMENSION input_row, |
30 ; JSAMPARRAY output_buf, int num_rows) | 34 ; JSAMPARRAY output_buf, int num_rows) |
31 ; | 35 ; |
32 | 36 |
33 %define out_width(b) (b)+8 ; JDIMENSION out_width | 37 %define out_width(b) (b)+8 ; JDIMENSION out_width |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 ; pop ecx ; need not be preserved | 553 ; pop ecx ; need not be preserved |
550 pop ebx | 554 pop ebx |
551 mov esp,ebp ; esp <- aligned ebp | 555 mov esp,ebp ; esp <- aligned ebp |
552 pop esp ; esp <- original ebp | 556 pop esp ; esp <- original ebp |
553 pop ebp | 557 pop ebp |
554 ret | 558 ret |
555 | 559 |
556 ; For some reason, the OS X linker does not honor the request to align the | 560 ; For some reason, the OS X linker does not honor the request to align the |
557 ; segment unless we do this. | 561 ; segment unless we do this. |
558 align 16 | 562 align 16 |
OLD | NEW |