| OLD | NEW |
| 1 ; | 1 ; |
| 2 ; jcgray.asm - grayscale colorspace conversion (MMX) | 2 ; jcgray.asm - grayscale 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 2011 D. R. Commander | 5 ; Copyright 2011 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 15 matching lines...) Expand all Loading... |
| 26 F_0_114 equ 7471 ; FIX(0.11400) | 26 F_0_114 equ 7471 ; FIX(0.11400) |
| 27 F_0_250 equ 16384 ; FIX(0.25000) | 27 F_0_250 equ 16384 ; FIX(0.25000) |
| 28 F_0_299 equ 19595 ; FIX(0.29900) | 28 F_0_299 equ 19595 ; FIX(0.29900) |
| 29 F_0_587 equ 38470 ; FIX(0.58700) | 29 F_0_587 equ 38470 ; FIX(0.58700) |
| 30 F_0_337 equ (F_0_587 - F_0_250) ; FIX(0.58700) - FIX(0.25000) | 30 F_0_337 equ (F_0_587 - F_0_250) ; FIX(0.58700) - FIX(0.25000) |
| 31 | 31 |
| 32 ; -------------------------------------------------------------------------- | 32 ; -------------------------------------------------------------------------- |
| 33 SECTION SEG_CONST | 33 SECTION SEG_CONST |
| 34 | 34 |
| 35 alignz 16 | 35 alignz 16 |
| 36 global EXTN(jconst_rgb_gray_convert_mmx) | 36 global EXTN(jconst_rgb_gray_convert_mmx) PRIVATE |
| 37 | 37 |
| 38 EXTN(jconst_rgb_gray_convert_mmx): | 38 EXTN(jconst_rgb_gray_convert_mmx): |
| 39 | 39 |
| 40 PW_F0299_F0337 times 2 dw F_0_299, F_0_337 | 40 PW_F0299_F0337 times 2 dw F_0_299, F_0_337 |
| 41 PW_F0114_F0250 times 2 dw F_0_114, F_0_250 | 41 PW_F0114_F0250 times 2 dw F_0_114, F_0_250 |
| 42 PD_ONEHALF times 2 dd (1 << (SCALEBITS-1)) | 42 PD_ONEHALF times 2 dd (1 << (SCALEBITS-1)) |
| 43 | 43 |
| 44 alignz 16 | 44 alignz 16 |
| 45 | 45 |
| 46 ; -------------------------------------------------------------------------- | 46 ; -------------------------------------------------------------------------- |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 %undef RGB_RED | 107 %undef RGB_RED |
| 108 %undef RGB_GREEN | 108 %undef RGB_GREEN |
| 109 %undef RGB_BLUE | 109 %undef RGB_BLUE |
| 110 %undef RGB_PIXELSIZE | 110 %undef RGB_PIXELSIZE |
| 111 %define RGB_RED EXT_XRGB_RED | 111 %define RGB_RED EXT_XRGB_RED |
| 112 %define RGB_GREEN EXT_XRGB_GREEN | 112 %define RGB_GREEN EXT_XRGB_GREEN |
| 113 %define RGB_BLUE EXT_XRGB_BLUE | 113 %define RGB_BLUE EXT_XRGB_BLUE |
| 114 %define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE | 114 %define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE |
| 115 %define jsimd_rgb_gray_convert_mmx jsimd_extxrgb_gray_convert_mmx | 115 %define jsimd_rgb_gray_convert_mmx jsimd_extxrgb_gray_convert_mmx |
| 116 %include "jcgryext-mmx.asm" | 116 %include "jcgryext-mmx.asm" |
| OLD | NEW |