| OLD | NEW |
| 1 ; | 1 ; |
| 2 ; jccolor.asm - colorspace conversion (64-bit SSE2) | 2 ; jccolor.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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 %undef RGB_RED | 111 %undef RGB_RED |
| 112 %undef RGB_GREEN | 112 %undef RGB_GREEN |
| 113 %undef RGB_BLUE | 113 %undef RGB_BLUE |
| 114 %undef RGB_PIXELSIZE | 114 %undef RGB_PIXELSIZE |
| 115 %define RGB_RED EXT_XRGB_RED | 115 %define RGB_RED EXT_XRGB_RED |
| 116 %define RGB_GREEN EXT_XRGB_GREEN | 116 %define RGB_GREEN EXT_XRGB_GREEN |
| 117 %define RGB_BLUE EXT_XRGB_BLUE | 117 %define RGB_BLUE EXT_XRGB_BLUE |
| 118 %define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE | 118 %define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE |
| 119 %define jsimd_rgb_ycc_convert_sse2 jsimd_extxrgb_ycc_convert_sse2 | 119 %define jsimd_rgb_ycc_convert_sse2 jsimd_extxrgb_ycc_convert_sse2 |
| 120 %include "jccolext-sse2-64.asm" | 120 %include "jccolext-sse2-64.asm" |
| OLD | NEW |