git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3035 92316355-f0b4-4df1-b90c-862c8a59935fremotes/tiles
@@ -1,12 +1,29 @@ | |||||
Nothing really exciting in this document, just a few notes about cool | |||||
stuff already in the library and the accompanying examples. | |||||
Having fun with pipi | |||||
==================== | |||||
printf("%i,%i[%i] %g -> %i + %g\n", x, y, i, p, (int)d, e); | |||||
Convert a picture to black and white using the best available algorithm: | |||||
$ pipi source.png --dither dbs -o image.png | |||||
---- | |||||
perfs for pipi random:256x256 --wrap --median X: | |||||
Generate a brushed metal, tileable pattern: | |||||
$ pipi pipi:random512x512 --wrap --blur 15x0r15 -o image.png | |||||
X = 1 X = 2 X = 3 X = 4 X = 5 X = 6 | |||||
0.133 0.458 1.288 3.066 6.370 11.931 | |||||
0.127 0.435 1.289 3.062 6.355 11.944 | |||||
0.128 0.445 1.282 3.053 6.354 11.916 | |||||
0.120 0.432 1.264 3.089 6.362 11.938 | |||||
0.120 0.436 1.292 3.048 6.366 11.911 | |||||
after switching to qsort: | |||||
X = 1 X = 2 X = 3 X = 4 X = 5 X = 6 X = 7 X = 8 | |||||
0.257 0.733 1.519 2.704 4.192 6.143 8.193 10.880 | |||||
0.241 0.731 1.541 2.709 4.179 6.172 8.194 10.889 | |||||
0.243 0.736 1.540 2.728 4.174 6.123 8.221 10.824 | |||||
0.241 0.725 1.530 2.706 4.161 6.135 8.288 10.791 | |||||
0.241 0.725 1.528 2.733 4.168 6.142 8.208 10.805 | |||||
my qsort: | |||||
X = 1 X = 2 X = 3 X = 4 X = 5 X = 6 X = 7 X = 8 | |||||
0.161 0.438 0.974 1.856 3.155 5.041 7.637 11.191 | |||||
0.157 0.427 0.971 1.840 3.138 5.047 7.641 11.170 | |||||
0.156 0.438 0.972 1.845 3.146 5.040 7.650 11.165 | |||||
0.164 0.437 0.969 1.839 3.150 5.025 7.647 11.119 | |||||
0.164 0.450 0.968 1.834 3.152 5.043 7.651 11.097 | |||||
@@ -0,0 +1,12 @@ | |||||
Nothing really exciting in this document, just a few notes about cool | |||||
stuff already in the library and the accompanying examples. | |||||
Having fun with pipi | |||||
==================== | |||||
Convert a picture to black and white using the best available algorithm: | |||||
$ pipi source.png --dither dbs -o image.png | |||||
Generate a brushed metal, tileable pattern: | |||||
$ pipi pipi:random512x512 --wrap --blur 15x0r15 -o image.png | |||||
@@ -0,0 +1,10 @@ | |||||
The TODO list is on the web: | |||||
http://caca.zoy.org/wiki/libpipi/research/filters | |||||
http://caca.zoy.org/wiki/libpipi/research/gamut | |||||
http://caca.zoy.org/wiki/libpipi/research/warping | |||||
http://caca.zoy.org/wiki/libpipi/research/coolstuff | |||||
See also the libpipi tickets: | |||||
http://caca.zoy.org/report/1 | |||||
@@ -3,3 +3,4 @@ | |||||
*.exe | *.exe | ||||
pipi-sharp.dll | pipi-sharp.dll | ||||
pipi-sharp.dll.* | pipi-sharp.dll.* | ||||
pimp |
@@ -1,5 +1,7 @@ | |||||
# $Id: $ | # $Id: $ | ||||
pkglibdir = $(libdir)/ThePimp | |||||
pimp_sources = \ | pimp_sources = \ | ||||
AssemblyInfo.cs \ | AssemblyInfo.cs \ | ||||
Main.cs \ | Main.cs \ | ||||
@@ -30,7 +32,8 @@ image_sources = \ | |||||
images/about.svg | images/about.svg | ||||
if USE_CSHARP | if USE_CSHARP | ||||
bin_SCRIPTS = ThePimp.exe | |||||
pkglib_DATA = ThePimp.exe | |||||
bin_SCRIPTS = pimp | |||||
endif | endif | ||||
if USE_GTKSHARP | if USE_GTKSHARP | ||||
@@ -0,0 +1,12 @@ | |||||
#!/bin/sh | |||||
prefix=@prefix@ | |||||
exec_prefix=@exec_prefix@ | |||||
pimpdir=@libdir@/ThePimp | |||||
case "$0" in | |||||
@bindir@/*) exec mono "${pimpdir}/ThePimp.exe" "$@" ;; | |||||
*/*) exec mono "@abs_srcdir@/ThePimp.exe" "$@" ;; | |||||
*) exec mono "${pimpdir}/ThePimp.exe" "$@" ;; | |||||
esac | |||||
@@ -176,7 +176,8 @@ AC_SUBST(MATH_LIBS) | |||||
# Build pipi-sharp? | # Build pipi-sharp? | ||||
AC_PATH_PROG(GMCS, gmcs, no) | AC_PATH_PROG(GMCS, gmcs, no) | ||||
AM_CONDITIONAL(USE_CSHARP, test "${GMCS}" != "no") | |||||
AC_PATH_PROG(GACUTIL, gacutil, no) | |||||
AM_CONDITIONAL(USE_CSHARP, test "${GMCS}" != "no" -a "${GACUTIL}" != "no") | |||||
# Build The Pimp? | # Build The Pimp? | ||||
ac_cv_my_have_gtksharp=yes | ac_cv_my_have_gtksharp=yes | ||||
@@ -202,6 +203,7 @@ AC_CONFIG_FILES([ | |||||
pipi-sharp/pipi-sharp.pc | pipi-sharp/pipi-sharp.pc | ||||
pipi-sharp/pipi-sharp.dll.config | pipi-sharp/pipi-sharp.dll.config | ||||
]) | ]) | ||||
AC_CONFIG_FILES([ThePimp/pimp], [chmod +x ThePimp/pimp]) | |||||
AC_OUTPUT | AC_OUTPUT | ||||
@@ -36,4 +36,4 @@ using System.Runtime.CompilerServices; | |||||
// if desired. See the Mono documentation for more information about signing. | // if desired. See the Mono documentation for more information about signing. | ||||
[assembly: AssemblyDelaySign(false)] | [assembly: AssemblyDelaySign(false)] | ||||
[assembly: AssemblyKeyFile("")] | |||||
[assembly: AssemblyKeyFile("pipi-sharp.snk")] |
@@ -1,6 +1,11 @@ | |||||
# $Id: $ | # $Id: $ | ||||
pipidir = $(libdir)/pipi-sharp | |||||
# We need to install the .config file ourselves because of a gacutil | |||||
# bug (https://bugzilla.novell.com/show_bug.cgi?id=363341) | |||||
monodir = $(libdir)/mono/pipi-sharp-0.0 | |||||
if USE_CSHARP | |||||
noinst_DATA = pipi-sharp.dll pipi-sharp.dll.config test.exe | |||||
endif | |||||
pipi_sources = \ | pipi_sources = \ | ||||
$(srcdir)/AssemblyInfo.cs \ | $(srcdir)/AssemblyInfo.cs \ | ||||
@@ -10,13 +15,8 @@ pipi_sources = \ | |||||
test_sources = \ | test_sources = \ | ||||
$(srcdir)/test.cs | $(srcdir)/test.cs | ||||
if USE_CSHARP | |||||
pipi_DATA = pipi-sharp.dll pipi-sharp.dll.config | |||||
noinst_DATA = test.exe | |||||
endif | |||||
EXTRA_DIST = $(pipi_sources) $(test_sources) \ | EXTRA_DIST = $(pipi_sources) $(test_sources) \ | ||||
pipi-sharp.pc.in pipi-sharp.dll.config.in | |||||
pipi-sharp.snk pipi-sharp.pc.in pipi-sharp.dll.config.in | |||||
pipi-sharp.dll: $(pipi_sources) | pipi-sharp.dll: $(pipi_sources) | ||||
$(GMCS) -debug -unsafe $(pipi_sources) -out:$@ -target:library | $(GMCS) -debug -unsafe $(pipi_sources) -out:$@ -target:library | ||||
@@ -25,6 +25,20 @@ test.exe: $(test_sources) pipi-sharp.dll | |||||
$(GMCS) -debug $(test_sources) -out:$@ -lib:./ \ | $(GMCS) -debug $(test_sources) -out:$@ -lib:./ \ | ||||
-r:./pipi-sharp.dll | -r:./pipi-sharp.dll | ||||
if USE_CSHARP | |||||
install-data-local: | |||||
MONO_SHARED_DIR=$$HOME $(GACUTIL) -i pipi-sharp.dll \ | |||||
-package pipi-sharp-0.0 -f -root $(DESTDIR)$(libdir) | |||||
$(mkinstalldirs) $(DESTDIR)$(monodir) | |||||
sed -e 's@target="[^"]*/@target="@' < pipi-sharp.dll.config > $(DESTDIR)$(monodir)/pipi-sharp.dll.config | |||||
uninstall-local: | |||||
MONO_SHARED_DIR=$$HOME $(GACUTIL) -u pipi-sharp.dll, Version=0.0 \ | |||||
-package pipi-sharp-0.0 || true | |||||
rm -f $(DESTDIR)$(monodir)/pipi-sharp.dll.config | |||||
rmdir $(DESTDIR)$(monodir) 2>/dev/null || true | |||||
endif | |||||
clean-local: | clean-local: | ||||
rm -f *.exe *.dll *.mdb | rm -f *.exe *.dll *.mdb | ||||