Home
last modified time | relevance | path

Searched refs:SCALEBITS (Results 1 – 25 of 37) sorted by relevance

12

/external/pdfium/third_party/libjpeg/
Dfpdfapi_jccolor.c58 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
59 #define CBCR_OFFSET ((INT32) CENTERJSAMPLE << SCALEBITS)
60 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
61 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
161 >> SCALEBITS); in rgb_ycc_convert()
165 >> SCALEBITS); in rgb_ycc_convert()
169 >> SCALEBITS); in rgb_ycc_convert()
210 >> SCALEBITS); in rgb_gray_convert()
259 >> SCALEBITS); in cmyk_ycck_convert()
263 >> SCALEBITS); in cmyk_ycck_convert()
[all …]
Dfpdfapi_jdmerge.c75 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
76 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
77 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
111 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
114 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
257 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in h2v1_merged_upsample()
276 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in h2v1_merged_upsample()
321 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in h2v2_merged_upsample()
350 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in h2v2_merged_upsample()
Dfpdfapi_jdcolor.c60 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
61 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
62 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
95 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
98 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
152 SCALEBITS))]; in ycc_rgb_convert()
278 SCALEBITS)))]; in ycck_cmyk_convert()
/external/opencv3/3rdparty/libjpeg/
Djccolor.c59 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
60 #define CBCR_OFFSET ((INT32) CENTERJSAMPLE << SCALEBITS)
61 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
62 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
161 >> SCALEBITS); in rgb_ycc_convert()
165 >> SCALEBITS); in rgb_ycc_convert()
169 >> SCALEBITS); in rgb_ycc_convert()
209 >> SCALEBITS); in rgb_gray_convert()
258 >> SCALEBITS); in cmyk_ycck_convert()
262 >> SCALEBITS); in cmyk_ycck_convert()
[all …]
Djdmerge.c72 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
73 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
74 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
108 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
111 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
254 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in h2v1_merged_upsample()
273 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in h2v1_merged_upsample()
318 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in h2v2_merged_upsample()
347 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in h2v2_merged_upsample()
Djdcolor.c69 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
70 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
71 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
116 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
119 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
173 SCALEBITS))]; in ycc_rgb_convert()
238 >> SCALEBITS); in rgb_gray_convert()
318 >> SCALEBITS); in rgb1_gray_convert()
473 SCALEBITS)))]; in ycck_cmyk_convert()
/external/libjpeg-turbo/simd/
Djccolor-sse2.asm21 %define SCALEBITS 16
45 PD_ONEHALFM1_CJ times 4 dd (1 << (SCALEBITS-1)) - 1 + (CENTERJSAMPLE << SCALEBITS)
46 PD_ONEHALF times 4 dd (1 << (SCALEBITS-1))
Djccolor-mmx.asm24 %define SCALEBITS 16
48 PD_ONEHALFM1_CJ times 2 dd (1 << (SCALEBITS-1)) - 1 + (CENTERJSAMPLE << SCALEBITS)
49 PD_ONEHALF times 2 dd (1 << (SCALEBITS-1))
Djccolor-sse2-64.asm21 %define SCALEBITS 16
45 PD_ONEHALFM1_CJ times 4 dd (1 << (SCALEBITS-1)) - 1 + (CENTERJSAMPLE << SCALEBITS)
46 PD_ONEHALF times 4 dd (1 << (SCALEBITS-1))
Djccolext-mmx.asm310 psrld mm7,SCALEBITS ; mm7=CbOL
311 psrld mm4,SCALEBITS ; mm4=CbOH
342 psrld mm5,SCALEBITS ; mm5=CbEL
343 psrld mm4,SCALEBITS ; mm4=CbEH
370 psrld mm0,SCALEBITS ; mm0=YOL
371 psrld mm4,SCALEBITS ; mm4=YOH
387 psrld mm7,SCALEBITS ; mm7=CrOL
388 psrld mm5,SCALEBITS ; mm5=CrOH
409 psrld mm6,SCALEBITS ; mm6=YEL
410 psrld mm4,SCALEBITS ; mm4=YEH
[all …]
Djccolext-sse2-64.asm324 psrld xmm7,SCALEBITS ; xmm7=CbOL
325 psrld xmm4,SCALEBITS ; xmm4=CbOH
356 psrld xmm5,SCALEBITS ; xmm5=CbEL
357 psrld xmm4,SCALEBITS ; xmm4=CbEH
384 psrld xmm0,SCALEBITS ; xmm0=YOL
385 psrld xmm4,SCALEBITS ; xmm4=YOH
401 psrld xmm7,SCALEBITS ; xmm7=CrOL
402 psrld xmm5,SCALEBITS ; xmm5=CrOH
423 psrld xmm6,SCALEBITS ; xmm6=YEL
424 psrld xmm4,SCALEBITS ; xmm4=YEH
[all …]
Djccolext-sse2.asm338 psrld xmm7,SCALEBITS ; xmm7=CbOL
339 psrld xmm4,SCALEBITS ; xmm4=CbOH
370 psrld xmm5,SCALEBITS ; xmm5=CbEL
371 psrld xmm4,SCALEBITS ; xmm4=CbEH
398 psrld xmm0,SCALEBITS ; xmm0=YOL
399 psrld xmm4,SCALEBITS ; xmm4=YOH
415 psrld xmm7,SCALEBITS ; xmm7=CrOL
416 psrld xmm5,SCALEBITS ; xmm5=CrOH
437 psrld xmm6,SCALEBITS ; xmm6=YEL
438 psrld xmm4,SCALEBITS ; xmm4=YEH
[all …]
Djcgray-sse2.asm21 %define SCALEBITS 16
39 PD_ONEHALF times 4 dd (1 << (SCALEBITS-1))
Djcgray-sse2-64.asm21 %define SCALEBITS 16
39 PD_ONEHALF times 4 dd (1 << (SCALEBITS-1))
Djcgray-mmx.asm24 %define SCALEBITS 16
42 PD_ONEHALF times 2 dd (1 << (SCALEBITS-1))
Djdmerge-mmx.asm24 %define SCALEBITS 16
46 PD_ONEHALF times 2 dd 1 << (SCALEBITS-1)
Djdcolor-sse2-64.asm24 %define SCALEBITS 16
46 PD_ONEHALF times 4 dd 1 << (SCALEBITS-1)
Djdcolor-mmx.asm24 %define SCALEBITS 16
46 PD_ONEHALF times 2 dd 1 << (SCALEBITS-1)
/external/libjpeg-turbo/
Djccolext.c62 >> SCALEBITS); in LOCAL()
66 >> SCALEBITS); in LOCAL()
70 >> SCALEBITS); in LOCAL()
112 >> SCALEBITS); in LOCAL()
Djdcol565.c52 SCALEBITS))]; in LOCAL()
65 SCALEBITS))]; in LOCAL()
74 SCALEBITS))]; in LOCAL()
87 SCALEBITS))]; in LOCAL()
133 SCALEBITS)), d0)]; in LOCAL()
147 SCALEBITS)), d0)]; in LOCAL()
158 SCALEBITS)), d0)]; in LOCAL()
173 SCALEBITS)), d0)]; in LOCAL()
Djdmrg565.c49 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
74 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
121 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
148 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
196 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
236 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
294 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
338 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
Djdmrgext.c52 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
77 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
127 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
168 cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
Djccolor.c64 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
65 #define CBCR_OFFSET ((INT32) CENTERJSAMPLE << SCALEBITS)
66 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
67 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
412 >> SCALEBITS); in cmyk_ycck_convert()
416 >> SCALEBITS); in cmyk_ycck_convert()
420 >> SCALEBITS); in cmyk_ycck_convert()
Djdmerge.c77 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
78 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
79 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
214 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
217 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
Djdcolor.c75 #define SCALEBITS 16 /* speediest right-shift on some machines */ macro
76 #define ONE_HALF ((INT32) 1 << (SCALEBITS-1))
77 #define FIX(x) ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))
235 RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
238 RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS); in build_ycc_rgb_table()
351 >> SCALEBITS); in rgb_gray_convert()
567 SCALEBITS)))]; in ycck_cmyk_convert()

12