Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
proof
results
.gitignore
Makefile
README.rst
blend_scalar.c
blend_sse.c
blend_sse4.c
blend_sse42.c
blend_swar_64bit.c
demo.c
mix_32bpp.c

README.rst

SSSE3: PMADDUBSW and image crossfading

Sample program from article SSSE3: PMADDUBSW and image crossfading.

The program contains a reference C implementation and two SSE procedures: one using old SSE instructions, and another using the new SSE4.1 instruction PMADDUBSW.

Run make to compare perfromance on your machine.

Run make demo to build a X11 application. Perhaps you'll have to run git submodule init.

Application reads two .pnm files of the same size. Mouse position determines alpha value, keys 1, 2 and 3 select bledning procedure. Usage:

./demo view file1.pnm file2.pnm