OLD | NEW |
1 ; | 1 ; |
2 ; jcclrss2.asm - colorspace conversion (SSE2) | 2 ; jcclrss2.asm - colorspace conversion (SSE2) |
3 ; | 3 ; |
4 ; x86 SIMD extension for IJG JPEG library | 4 ; x86 SIMD extension for IJG JPEG library |
5 ; Copyright (C) 1999-2006, MIYASAKA Masaru. | 5 ; Copyright (C) 1999-2006, MIYASAKA Masaru. |
6 ; For conditions of distribution and use, see copyright notice in jsimdext.inc | 6 ; For conditions of distribution and use, see copyright notice in jsimdext.inc |
7 ; | 7 ; |
8 ; This file should be assembled with NASM (Netwide Assembler), | 8 ; This file should be assembled with NASM (Netwide Assembler), |
9 ; can *not* be assembled with Microsoft's MASM or any compatible | 9 ; can *not* be assembled with Microsoft's MASM or any compatible |
10 ; assembler (including Borland's Turbo Assembler). | 10 ; assembler (including Borland's Turbo Assembler). |
11 ; NASM is available from http://nasm.sourceforge.net/ or | 11 ; NASM is available from http://nasm.sourceforge.net/ or |
12 ; http://sourceforge.net/project/showfiles.php?group_id=6208 | 12 ; http://sourceforge.net/project/showfiles.php?group_id=6208 |
13 ; | 13 ; |
14 ; [TAB8] | 14 ; [TAB8] |
15 | 15 |
16 %include "jcolsamp.inc" | 16 %include "jcolsamp.inc" |
17 | 17 |
18 ; -------------------------------------------------------------------------- | 18 ; -------------------------------------------------------------------------- |
19 %ifndef NEED_SECTION | |
20 %define NEED_SECTION | |
21 SECTION SEG_TEXT | |
22 BITS 32 | |
23 %endif | |
24 | |
25 ; | 19 ; |
26 ; Convert some rows of samples to the output colorspace. | 20 ; Convert some rows of samples to the output colorspace. |
27 ; | 21 ; |
28 ; GLOBAL(void) | 22 ; GLOBAL(void) |
29 ; jsimd_rgb_ycc_convert_sse2 (JDIMENSION img_width, | 23 ; jsimd_rgb_ycc_convert_sse2 (JDIMENSION img_width, |
30 ; JSAMPARRAY input_buf, JSAMPIMAGE output_buf, | 24 ; JSAMPARRAY input_buf, JSAMPIMAGE output_buf, |
31 ; JDIMENSION output_row, int num_rows); | 25 ; JDIMENSION output_row, int num_rows); |
32 ; | 26 ; |
33 | 27 |
34 %define img_width(b) (b)+8 ; JDIMENSION img_width | 28 %define img_width(b) (b)+8 ; JDIMENSION img_width |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 ; pop ecx ; need not be preserved | 494 ; pop ecx ; need not be preserved |
501 pop ebx | 495 pop ebx |
502 mov esp,ebp ; esp <- aligned ebp | 496 mov esp,ebp ; esp <- aligned ebp |
503 pop esp ; esp <- original ebp | 497 pop esp ; esp <- original ebp |
504 pop ebp | 498 pop ebp |
505 ret | 499 ret |
506 | 500 |
507 ; For some reason, the OS X linker does not honor the request to align the | 501 ; For some reason, the OS X linker does not honor the request to align the |
508 ; segment unless we do this. | 502 ; segment unless we do this. |
509 align 16 | 503 align 16 |
OLD | NEW |