| OLD | NEW |
| 1 ; | 1 ; |
| 2 ; jcsample.asm - downsampling (MMX) | 2 ; jcsample.asm - downsampling (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 ; | 5 ; |
| 6 ; Based on | 6 ; Based on |
| 7 ; x86 SIMD extension for IJG JPEG library | 7 ; x86 SIMD extension for IJG JPEG library |
| 8 ; Copyright (C) 1999-2006, MIYASAKA Masaru. | 8 ; Copyright (C) 1999-2006, MIYASAKA Masaru. |
| 9 ; For conditions of distribution and use, see copyright notice in jsimdext.inc | 9 ; For conditions of distribution and use, see copyright notice in jsimdext.inc |
| 10 ; | 10 ; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ; | 33 ; |
| 34 | 34 |
| 35 %define img_width(b) (b)+8 ; JDIMENSION image_width | 35 %define img_width(b) (b)+8 ; JDIMENSION image_width |
| 36 %define max_v_samp(b) (b)+12 ; int max_v_samp_factor | 36 %define max_v_samp(b) (b)+12 ; int max_v_samp_factor |
| 37 %define v_samp(b) (b)+16 ; JDIMENSION v_samp_factor | 37 %define v_samp(b) (b)+16 ; JDIMENSION v_samp_factor |
| 38 %define width_blks(b) (b)+20 ; JDIMENSION width_blocks | 38 %define width_blks(b) (b)+20 ; JDIMENSION width_blocks |
| 39 %define input_data(b) (b)+24 ; JSAMPARRAY input_data | 39 %define input_data(b) (b)+24 ; JSAMPARRAY input_data |
| 40 %define output_data(b) (b)+28 ; JSAMPARRAY output_data | 40 %define output_data(b) (b)+28 ; JSAMPARRAY output_data |
| 41 | 41 |
| 42 align 16 | 42 align 16 |
| 43 global EXTN(jsimd_h2v1_downsample_mmx) | 43 global EXTN(jsimd_h2v1_downsample_mmx) PRIVATE |
| 44 | 44 |
| 45 EXTN(jsimd_h2v1_downsample_mmx): | 45 EXTN(jsimd_h2v1_downsample_mmx): |
| 46 push ebp | 46 push ebp |
| 47 mov ebp,esp | 47 mov ebp,esp |
| 48 ; push ebx ; unused | 48 ; push ebx ; unused |
| 49 ; push ecx ; need not be preserved | 49 ; push ecx ; need not be preserved |
| 50 ; push edx ; need not be preserved | 50 ; push edx ; need not be preserved |
| 51 push esi | 51 push esi |
| 52 push edi | 52 push edi |
| 53 | 53 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 ; | 175 ; |
| 176 | 176 |
| 177 %define img_width(b) (b)+8 ; JDIMENSION image_width | 177 %define img_width(b) (b)+8 ; JDIMENSION image_width |
| 178 %define max_v_samp(b) (b)+12 ; int max_v_samp_factor | 178 %define max_v_samp(b) (b)+12 ; int max_v_samp_factor |
| 179 %define v_samp(b) (b)+16 ; JDIMENSION v_samp_factor | 179 %define v_samp(b) (b)+16 ; JDIMENSION v_samp_factor |
| 180 %define width_blks(b) (b)+20 ; JDIMENSION width_blocks | 180 %define width_blks(b) (b)+20 ; JDIMENSION width_blocks |
| 181 %define input_data(b) (b)+24 ; JSAMPARRAY input_data | 181 %define input_data(b) (b)+24 ; JSAMPARRAY input_data |
| 182 %define output_data(b) (b)+28 ; JSAMPARRAY output_data | 182 %define output_data(b) (b)+28 ; JSAMPARRAY output_data |
| 183 | 183 |
| 184 align 16 | 184 align 16 |
| 185 global EXTN(jsimd_h2v2_downsample_mmx) | 185 global EXTN(jsimd_h2v2_downsample_mmx) PRIVATE |
| 186 | 186 |
| 187 EXTN(jsimd_h2v2_downsample_mmx): | 187 EXTN(jsimd_h2v2_downsample_mmx): |
| 188 push ebp | 188 push ebp |
| 189 mov ebp,esp | 189 mov ebp,esp |
| 190 ; push ebx ; unused | 190 ; push ebx ; unused |
| 191 ; push ecx ; need not be preserved | 191 ; push ecx ; need not be preserved |
| 192 ; push edx ; need not be preserved | 192 ; push edx ; need not be preserved |
| 193 push esi | 193 push esi |
| 194 push edi | 194 push edi |
| 195 | 195 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 pop esi | 315 pop esi |
| 316 ; pop edx ; need not be preserved | 316 ; pop edx ; need not be preserved |
| 317 ; pop ecx ; need not be preserved | 317 ; pop ecx ; need not be preserved |
| 318 ; pop ebx ; unused | 318 ; pop ebx ; unused |
| 319 pop ebp | 319 pop ebp |
| 320 ret | 320 ret |
| 321 | 321 |
| 322 ; For some reason, the OS X linker does not honor the request to align the | 322 ; For some reason, the OS X linker does not honor the request to align the |
| 323 ; segment unless we do this. | 323 ; segment unless we do this. |
| 324 align 16 | 324 align 16 |
| OLD | NEW |