Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: third_party/libjpeg_turbo/simd/jccolss2.asm

Issue 5862001: Integrate premultiply/unpremultiply operations into libjpeg-turbo.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/libjpeg_turbo/simd/jcclrss2.asm ('k') | third_party/libjpeg_turbo/simd/jsimd.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; 1 ;
2 ; jccolss2.asm - colorspace conversion (SSE2) 2 ; jccolss2.asm - colorspace conversion (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 26 matching lines...) Expand all
37 global EXTN(jconst_rgb_ycc_convert_sse2) 37 global EXTN(jconst_rgb_ycc_convert_sse2)
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 PF_255 times 4 dd 0x437f0000 ; 255.0f
47 48
48 alignz 16 49 alignz 16
49 50
50 ; -------------------------------------------------------------------------- 51 ; --------------------------------------------------------------------------
52 %define PREMULTIPLY 0
51 %include "jcclrss2.asm" 53 %include "jcclrss2.asm"
52 54
53 %undef RGB_RED 55 %undef RGB_RED
54 %undef RGB_GREEN 56 %undef RGB_GREEN
55 %undef RGB_BLUE 57 %undef RGB_BLUE
56 %undef RGB_PIXELSIZE 58 %undef RGB_PIXELSIZE
57 %define RGB_RED 0 59 %define RGB_RED 0
58 %define RGB_GREEN 1 60 %define RGB_GREEN 1
59 %define RGB_BLUE 2 61 %define RGB_BLUE 2
60 %define RGB_PIXELSIZE 3 62 %define RGB_PIXELSIZE 3
63 %define PREMULTIPLY 0
61 %define jsimd_rgb_ycc_convert_sse2 jsimd_extrgb_ycc_convert_sse2 64 %define jsimd_rgb_ycc_convert_sse2 jsimd_extrgb_ycc_convert_sse2
62 %include "jcclrss2.asm" 65 %include "jcclrss2.asm"
63 66
64 %undef RGB_RED 67 %undef RGB_RED
65 %undef RGB_GREEN 68 %undef RGB_GREEN
66 %undef RGB_BLUE 69 %undef RGB_BLUE
67 %undef RGB_PIXELSIZE 70 %undef RGB_PIXELSIZE
68 %define RGB_RED 0 71 %define RGB_RED 0
69 %define RGB_GREEN 1 72 %define RGB_GREEN 1
70 %define RGB_BLUE 2 73 %define RGB_BLUE 2
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 %undef RGB_RED 111 %undef RGB_RED
109 %undef RGB_GREEN 112 %undef RGB_GREEN
110 %undef RGB_BLUE 113 %undef RGB_BLUE
111 %undef RGB_PIXELSIZE 114 %undef RGB_PIXELSIZE
112 %define RGB_RED 1 115 %define RGB_RED 1
113 %define RGB_GREEN 2 116 %define RGB_GREEN 2
114 %define RGB_BLUE 3 117 %define RGB_BLUE 3
115 %define RGB_PIXELSIZE 4 118 %define RGB_PIXELSIZE 4
116 %define jsimd_rgb_ycc_convert_sse2 jsimd_extxrgb_ycc_convert_sse2 119 %define jsimd_rgb_ycc_convert_sse2 jsimd_extxrgb_ycc_convert_sse2
117 %include "jcclrss2.asm" 120 %include "jcclrss2.asm"
121
122 %define PREMULTIPLY 1
123 %undef RGB_RED
124 %undef RGB_GREEN
125 %undef RGB_BLUE
126 %undef RGB_PIXELSIZE
127 %define RGB_RED 2
128 %define RGB_GREEN 1
129 %define RGB_BLUE 0
130 %define RGB_PIXELSIZE 4
131 %define jsimd_rgb_ycc_convert_sse2 jsimd_extbgra_ycc_convert_sse2
132 %include "jcclrss2.asm"
OLDNEW
« no previous file with comments | « third_party/libjpeg_turbo/simd/jcclrss2.asm ('k') | third_party/libjpeg_turbo/simd/jsimd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698