OLD | NEW |
1 ; | 1 ; |
2 ; jdmerge.asm - merged upsampling/color conversion (SSE2) | 2 ; jdmerge.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 ; Copyright 2009 D. R. Commander | 5 ; Copyright 2009 D. R. Commander |
6 ; | 6 ; |
7 ; Based on | 7 ; Based on |
8 ; x86 SIMD extension for IJG JPEG library | 8 ; x86 SIMD extension for IJG JPEG library |
9 ; Copyright (C) 1999-2006, MIYASAKA Masaru. | 9 ; Copyright (C) 1999-2006, MIYASAKA Masaru. |
10 ; For conditions of distribution and use, see copyright notice in jsimdext.inc | 10 ; For conditions of distribution and use, see copyright notice in jsimdext.inc |
(...skipping 17 matching lines...) Expand all Loading... |
28 F_1_402 equ 91881 ; FIX(1.40200) | 28 F_1_402 equ 91881 ; FIX(1.40200) |
29 F_1_772 equ 116130 ; FIX(1.77200) | 29 F_1_772 equ 116130 ; FIX(1.77200) |
30 F_0_402 equ (F_1_402 - 65536) ; FIX(1.40200) - FIX(1) | 30 F_0_402 equ (F_1_402 - 65536) ; FIX(1.40200) - FIX(1) |
31 F_0_285 equ ( 65536 - F_0_714) ; FIX(1) - FIX(0.71414) | 31 F_0_285 equ ( 65536 - F_0_714) ; FIX(1) - FIX(0.71414) |
32 F_0_228 equ (131072 - F_1_772) ; FIX(2) - FIX(1.77200) | 32 F_0_228 equ (131072 - F_1_772) ; FIX(2) - FIX(1.77200) |
33 | 33 |
34 ; -------------------------------------------------------------------------- | 34 ; -------------------------------------------------------------------------- |
35 SECTION SEG_CONST | 35 SECTION SEG_CONST |
36 | 36 |
37 alignz 16 | 37 alignz 16 |
38 global EXTN(jconst_merged_upsample_sse2) | 38 global EXTN(jconst_merged_upsample_sse2) PRIVATE |
39 | 39 |
40 EXTN(jconst_merged_upsample_sse2): | 40 EXTN(jconst_merged_upsample_sse2): |
41 | 41 |
42 PW_F0402 times 8 dw F_0_402 | 42 PW_F0402 times 8 dw F_0_402 |
43 PW_MF0228 times 8 dw -F_0_228 | 43 PW_MF0228 times 8 dw -F_0_228 |
44 PW_MF0344_F0285 times 4 dw -F_0_344, F_0_285 | 44 PW_MF0344_F0285 times 4 dw -F_0_344, F_0_285 |
45 PW_ONE times 8 dw 1 | 45 PW_ONE times 8 dw 1 |
46 PD_ONEHALF times 4 dd 1 << (SCALEBITS-1) | 46 PD_ONEHALF times 4 dd 1 << (SCALEBITS-1) |
47 | 47 |
48 alignz 16 | 48 alignz 16 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 %undef RGB_GREEN | 117 %undef RGB_GREEN |
118 %undef RGB_BLUE | 118 %undef RGB_BLUE |
119 %undef RGB_PIXELSIZE | 119 %undef RGB_PIXELSIZE |
120 %define RGB_RED EXT_XRGB_RED | 120 %define RGB_RED EXT_XRGB_RED |
121 %define RGB_GREEN EXT_XRGB_GREEN | 121 %define RGB_GREEN EXT_XRGB_GREEN |
122 %define RGB_BLUE EXT_XRGB_BLUE | 122 %define RGB_BLUE EXT_XRGB_BLUE |
123 %define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE | 123 %define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE |
124 %define jsimd_h2v1_merged_upsample_sse2 jsimd_h2v1_extxrgb_merged_upsample_sse2 | 124 %define jsimd_h2v1_merged_upsample_sse2 jsimd_h2v1_extxrgb_merged_upsample_sse2 |
125 %define jsimd_h2v2_merged_upsample_sse2 jsimd_h2v2_extxrgb_merged_upsample_sse2 | 125 %define jsimd_h2v2_merged_upsample_sse2 jsimd_h2v2_extxrgb_merged_upsample_sse2 |
126 %include "jdmrgext-sse2.asm" | 126 %include "jdmrgext-sse2.asm" |
OLD | NEW |