OLD | NEW |
1 ; | 1 ; |
2 ; jccolss2-64.asm - colorspace conversion (64-bit SSE2) | 2 ; jccolss2-64.asm - colorspace conversion (64-bit 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 ; Copyright (C) 2009, D. R. Commander. | 6 ; Copyright (C) 2009, D. R. Commander. |
7 ; For conditions of distribution and use, see copyright notice in jsimdext.inc | 7 ; For conditions of distribution and use, see copyright notice in jsimdext.inc |
8 ; | 8 ; |
9 ; This file should be assembled with NASM (Netwide Assembler), | 9 ; This file should be assembled with NASM (Netwide Assembler), |
10 ; can *not* be assembled with Microsoft's MASM or any compatible | 10 ; can *not* be assembled with Microsoft's MASM or any compatible |
(...skipping 16 matching lines...) Expand all Loading... |
27 F_0_299 equ 19595 ; FIX(0.29900) | 27 F_0_299 equ 19595 ; FIX(0.29900) |
28 F_0_331 equ 21709 ; FIX(0.33126) | 28 F_0_331 equ 21709 ; FIX(0.33126) |
29 F_0_418 equ 27439 ; FIX(0.41869) | 29 F_0_418 equ 27439 ; FIX(0.41869) |
30 F_0_587 equ 38470 ; FIX(0.58700) | 30 F_0_587 equ 38470 ; FIX(0.58700) |
31 F_0_337 equ (F_0_587 - F_0_250) ; FIX(0.58700) - FIX(0.25000) | 31 F_0_337 equ (F_0_587 - F_0_250) ; FIX(0.58700) - FIX(0.25000) |
32 | 32 |
33 ; -------------------------------------------------------------------------- | 33 ; -------------------------------------------------------------------------- |
34 SECTION SEG_CONST | 34 SECTION SEG_CONST |
35 | 35 |
36 alignz 16 | 36 alignz 16 |
37 » global» EXTN(jconst_rgb_ycc_convert_sse2) | 37 » global» EXTN(jconst_rgb_ycc_convert_sse2) PRIVATE |
38 | 38 |
39 EXTN(jconst_rgb_ycc_convert_sse2): | 39 EXTN(jconst_rgb_ycc_convert_sse2): |
40 | 40 |
41 PW_F0299_F0337 times 4 dw F_0_299, F_0_337 | 41 PW_F0299_F0337 times 4 dw F_0_299, F_0_337 |
42 PW_F0114_F0250 times 4 dw F_0_114, F_0_250 | 42 PW_F0114_F0250 times 4 dw F_0_114, F_0_250 |
43 PW_MF016_MF033 times 4 dw -F_0_168,-F_0_331 | 43 PW_MF016_MF033 times 4 dw -F_0_168,-F_0_331 |
44 PW_MF008_MF041 times 4 dw -F_0_081,-F_0_418 | 44 PW_MF008_MF041 times 4 dw -F_0_081,-F_0_418 |
45 PD_ONEHALFM1_CJ times 4 dd (1 << (SCALEBITS-1)) - 1 + (CENTERJSAMPLE << SCALEBI
TS) | 45 PD_ONEHALFM1_CJ times 4 dd (1 << (SCALEBITS-1)) - 1 + (CENTERJSAMPLE << SCALEBI
TS) |
46 PD_ONEHALF times 4 dd (1 << (SCALEBITS-1)) | 46 PD_ONEHALF times 4 dd (1 << (SCALEBITS-1)) |
47 | 47 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 %undef RGB_RED | 108 %undef RGB_RED |
109 %undef RGB_GREEN | 109 %undef RGB_GREEN |
110 %undef RGB_BLUE | 110 %undef RGB_BLUE |
111 %undef RGB_PIXELSIZE | 111 %undef RGB_PIXELSIZE |
112 %define RGB_RED 1 | 112 %define RGB_RED 1 |
113 %define RGB_GREEN 2 | 113 %define RGB_GREEN 2 |
114 %define RGB_BLUE 3 | 114 %define RGB_BLUE 3 |
115 %define RGB_PIXELSIZE 4 | 115 %define RGB_PIXELSIZE 4 |
116 %define jsimd_rgb_ycc_convert_sse2 jsimd_extxrgb_ycc_convert_sse2 | 116 %define jsimd_rgb_ycc_convert_sse2 jsimd_extxrgb_ycc_convert_sse2 |
117 %include "jcclrss2-64.asm" | 117 %include "jcclrss2-64.asm" |
OLD | NEW |