OLD | NEW |
1 ; | 1 ; |
2 ; jdcolor.asm - colorspace conversion (MMX) | 2 ; jdcolor.asm - colorspace conversion (MMX) |
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_ycc_rgb_convert_mmx) | 38 global EXTN(jconst_ycc_rgb_convert_mmx) PRIVATE |
39 | 39 |
40 EXTN(jconst_ycc_rgb_convert_mmx): | 40 EXTN(jconst_ycc_rgb_convert_mmx): |
41 | 41 |
42 PW_F0402 times 4 dw F_0_402 | 42 PW_F0402 times 4 dw F_0_402 |
43 PW_MF0228 times 4 dw -F_0_228 | 43 PW_MF0228 times 4 dw -F_0_228 |
44 PW_MF0344_F0285 times 2 dw -F_0_344, F_0_285 | 44 PW_MF0344_F0285 times 2 dw -F_0_344, F_0_285 |
45 PW_ONE times 4 dw 1 | 45 PW_ONE times 4 dw 1 |
46 PD_ONEHALF times 2 dd 1 << (SCALEBITS-1) | 46 PD_ONEHALF times 2 dd 1 << (SCALEBITS-1) |
47 | 47 |
48 alignz 16 | 48 alignz 16 |
(...skipping 62 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_ycc_rgb_convert_mmx jsimd_ycc_extxrgb_convert_mmx | 119 %define jsimd_ycc_rgb_convert_mmx jsimd_ycc_extxrgb_convert_mmx |
120 %include "jdcolext-mmx.asm" | 120 %include "jdcolext-mmx.asm" |
OLD | NEW |