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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libjpeg_turbo/simd/jccolss2.asm
===================================================================
--- third_party/libjpeg_turbo/simd/jccolss2.asm (revision 69212)
+++ third_party/libjpeg_turbo/simd/jccolss2.asm (working copy)
@@ -44,10 +44,12 @@
PW_MF008_MF041 times 4 dw -F_0_081,-F_0_418
PD_ONEHALFM1_CJ times 4 dd (1 << (SCALEBITS-1)) - 1 + (CENTERJSAMPLE << SCALEBITS)
PD_ONEHALF times 4 dd (1 << (SCALEBITS-1))
+PF_255 times 4 dd 0x437f0000 ; 255.0f
alignz 16
; --------------------------------------------------------------------------
+%define PREMULTIPLY 0
%include "jcclrss2.asm"
%undef RGB_RED
@@ -58,6 +60,7 @@
%define RGB_GREEN 1
%define RGB_BLUE 2
%define RGB_PIXELSIZE 3
+%define PREMULTIPLY 0
%define jsimd_rgb_ycc_convert_sse2 jsimd_extrgb_ycc_convert_sse2
%include "jcclrss2.asm"
@@ -115,3 +118,15 @@
%define RGB_PIXELSIZE 4
%define jsimd_rgb_ycc_convert_sse2 jsimd_extxrgb_ycc_convert_sse2
%include "jcclrss2.asm"
+
+%define PREMULTIPLY 1
+%undef RGB_RED
+%undef RGB_GREEN
+%undef RGB_BLUE
+%undef RGB_PIXELSIZE
+%define RGB_RED 2
+%define RGB_GREEN 1
+%define RGB_BLUE 0
+%define RGB_PIXELSIZE 4
+%define jsimd_rgb_ycc_convert_sse2 jsimd_extbgra_ycc_convert_sse2
+%include "jcclrss2.asm"
« 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