This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via b122be1293116b690cd8414d8e158aeb99910b4a (commit)
via 29bbc4b0bc8ad223f711517031b9bace8425e920 (commit)
from 160441a217c7e9ac2c935d865ceba129b46f5260 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/b122be1293116b690cd8414d8e158aeb9991…
commit b122be1293116b690cd8414d8e158aeb99910b4a
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Fri Apr 20 17:54:48 2012 +0200
Added a simple helper to run python with GP libs
And also for GP executables
diff --git a/gp_run.sh b/gp_run.sh
new file mode 100755
index 0000000..4c76693
--- /dev/null
+++ b/gp_run.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Very simple script to run python, ipython and GP executables
+
+BDIR=.
+
+export LD_LIBRARY_PATH=$BDIR/build/
+export PYTHONPATH=$BDIR/pylib/
+
+exec "$@"
http://repo.or.cz/w/gfxprim.git/commit/29bbc4b0bc8ad223f711517031b9bace8425…
commit 29bbc4b0bc8ad223f711517031b9bace8425e920
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Fri Apr 20 17:53:46 2012 +0200
Added an unsafe way to get buffer for Context pixels
AND I DO NOT LIKE IT AT ALL!
diff --git a/pylib/gfxprim/core/core.i b/pylib/gfxprim/core/core.i
index 046481a..3668c2f 100644
--- a/pylib/gfxprim/core/core.i
+++ b/pylib/gfxprim/core/core.i
@@ -85,6 +85,10 @@ and self.thisown.") GP_Context;
$self->w, $self->h, $self->bpp, $self->free_pixels);
GP_ContextFree($self);
}
+ PyObject *_hacky_hacky_pixels_buffer() {
+ GP_DEBUG(0, "Evil and dangerous _hacky_hacky_pixels_buffer() used!");
+ return PyBuffer_FromMemory($self->pixels, $self->bytes_per_row * $self->h);
+ }
};
/* Indicate new wrapper-owned GP_Context */
-----------------------------------------------------------------------
Summary of changes:
gp_run.sh | 10 ++++++++++
pylib/gfxprim/core/core.i | 4 ++++
2 files changed, 14 insertions(+), 0 deletions(-)
create mode 100755 gp_run.sh
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 160441a217c7e9ac2c935d865ceba129b46f5260 (commit)
from 2f01a11ca235142a1ab4a0bc5e9fd8d49f4c2f04 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/160441a217c7e9ac2c935d865ceba129b46f…
commit 160441a217c7e9ac2c935d865ceba129b46f5260
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Tue Apr 17 22:16:52 2012 +0200
pywrap: Swig 1.3.31 doesn't support -Wextra, remove it.
diff --git a/config.mk b/config.mk
index 55f6140..c65c19d 100644
--- a/config.mk
+++ b/config.mk
@@ -12,7 +12,7 @@ PYTHON_INCLUDE=`python-config --include`
# Command to run Python with pylib/ modules
PYTHON=PYTHONPATH=$$PYTHONPATH:${PYLIBSDIR} ${PYTHON_BIN} -Werror
-SWIGOPTS=-Wextra -w322,314 -I/usr/include/
+SWIGOPTS=-w322,314 -I/usr/include/
#
# If set to yes, rebuilds libGP* after typing make
-----------------------------------------------------------------------
Summary of changes:
config.mk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 2f01a11ca235142a1ab4a0bc5e9fd8d49f4c2f04 (commit)
from b4f2a2519601c2f047294b39a9c72a7a6cdbd608 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/2f01a11ca235142a1ab4a0bc5e9fd8d49f4c…
commit 2f01a11ca235142a1ab4a0bc5e9fd8d49f4c2f04
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Tue Apr 17 22:06:03 2012 +0200
loaders: Fix two typos in GIF loader.
diff --git a/include/loaders/GP_GIF.h b/include/loaders/GP_GIF.h
index 237e74d..1eb87ff 100644
--- a/include/loaders/GP_GIF.h
+++ b/include/loaders/GP_GIF.h
@@ -56,6 +56,6 @@ GP_Context *GP_ReadGIF(void *f, GP_ProgressCallback *callback);
/*
* Does both GP_OpenGIF and GP_ReadGIF at once.
*/
-GP_Context *GP_LoadPNG(const char *src_path, GP_ProgressCallback *callback);
+GP_Context *GP_LoadGIF(const char *src_path, GP_ProgressCallback *callback);
#endif /* LOADERS_GP_GIF_H */
diff --git a/libs/loaders/GP_GIF.c b/libs/loaders/GP_GIF.c
index 263a929..aa999db 100644
--- a/libs/loaders/GP_GIF.c
+++ b/libs/loaders/GP_GIF.c
@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
- * Copyright (C) 2009-2011 Cyril Hrubis <metan(a)ucw.cz> *
+ * Copyright (C) 2009-2012 Cyril Hrubis <metan(a)ucw.cz> *
* *
*****************************************************************************/
-----------------------------------------------------------------------
Summary of changes:
include/loaders/GP_GIF.h | 2 +-
libs/loaders/GP_GIF.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 4f696f6a05e20284f976c0ed1d99c6779adda778 (commit)
from 500978aa7bfc00cfab2ec26470d50fce51d07f58 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/4f696f6a05e20284f976c0ed1d99c6779add…
commit 4f696f6a05e20284f976c0ed1d99c6779adda778
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sat Apr 7 21:40:29 2012 +0200
demos: Added blur simple python demo.
diff --git a/demos/py_simple/blur.py b/demos/py_simple/blur.py
new file mode 100755
index 0000000..5ed5271
--- /dev/null
+++ b/demos/py_simple/blur.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+import sys
+
+import gfxprim.core as core
+import gfxprim.loaders as loaders
+import gfxprim.filters as filters
+
+def main():
+ if len(sys.argv) != 3:
+ print("usage: blur blur-radii image")
+ sys.exit(1)
+
+ radii = int(sys.argv[1])
+
+ # Load Image
+ img = loaders.LoadImage_Wrap(sys.argv[2])
+ # Do in-place gaussian blur
+ filters.FilterGaussianBlur(img, img, radii, radii, None)
+ # Save result
+ loaders.SaveJPG("out.jpg", img, None)
+
+if __name__ == '__main__':
+ main()
-----------------------------------------------------------------------
Summary of changes:
demos/py_simple/blur.py | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
create mode 100755 demos/py_simple/blur.py
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 500978aa7bfc00cfab2ec26470d50fce51d07f58 (commit)
from 91041332ac12cde0c83145987a97a71dad95b460 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/500978aa7bfc00cfab2ec26470d50fce51d0…
commit 500978aa7bfc00cfab2ec26470d50fce51d07f58
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sat Apr 7 20:57:20 2012 +0200
pywrap: Another fix for python 3.2
diff --git a/pylib/gfxprim/loaders/__init__.py b/pylib/gfxprim/loaders/__init__.py
index c3fe31b..5dd476e 100644
--- a/pylib/gfxprim/loaders/__init__.py
+++ b/pylib/gfxprim/loaders/__init__.py
@@ -3,7 +3,7 @@ from . import loaders_c
def _init(module):
# Extend Context with convenience methods
- from _extend_context import extend_context
+ from ._extend_context import extend_context
from ..core import Context
extend_context(Context)
-----------------------------------------------------------------------
Summary of changes:
pylib/gfxprim/loaders/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 91041332ac12cde0c83145987a97a71dad95b460 (commit)
from 476e5a9b3a255fb9669f63565bd20f11c18b7854 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/91041332ac12cde0c83145987a97a71dad95…
commit 91041332ac12cde0c83145987a97a71dad95b460
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sat Apr 7 20:45:29 2012 +0200
build: Remove hardcoded SWIG=swig from config.mk
diff --git a/config.mk b/config.mk
index 676922c..55f6140 100644
--- a/config.mk
+++ b/config.mk
@@ -14,8 +14,6 @@ PYTHON=PYTHONPATH=$$PYTHONPATH:${PYLIBSDIR} ${PYTHON_BIN} -Werror
SWIGOPTS=-Wextra -w322,314 -I/usr/include/
-SWIG=swig
-
#
# If set to yes, rebuilds libGP* after typing make
# in any of the libs/*/ directories that are linked
-----------------------------------------------------------------------
Summary of changes:
config.mk | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 96ac55e75beb4dd1f167ef34b5e9bad72f71c3aa (commit)
via e622362b6290f603262c9b2323a559bad85517d5 (commit)
from a9124caa3f7c756fc3c7bdba6ffadd4307222454 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/96ac55e75beb4dd1f167ef34b5e9bad72f71…
commit 96ac55e75beb4dd1f167ef34b5e9bad72f71c3aa
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sat Apr 7 20:06:04 2012 +0200
build: Now the libSDL less build actually works.
diff --git a/tests/SDL/Makefile b/tests/SDL/Makefile
index 529dd83..436b8b3 100644
--- a/tests/SDL/Makefile
+++ b/tests/SDL/Makefile
@@ -1,16 +1,16 @@
TOPDIR=../..
-
-CSOURCES=$(shell echo *.c)
+include $(TOPDIR)/pre.mk
INCLUDE=core gfx SDL backends
LDLIBS+=-lGP -L$(TOPDIR)/build/ -lGP_SDL -lSDL
ifeq ($(HAVE_LIBSDL),yes)
+CSOURCES=$(shell echo *.c)
+
APPS=pixeltest fileview fonttest linetest randomshapetest shapetest sierpinsky symbolstest textaligntest trianglefps input blittest subcontext showimage aatest mixpixeltest
endif
-include $(TOPDIR)/pre.mk
include $(TOPDIR)/app.mk
include $(TOPDIR)/post.mk
http://repo.or.cz/w/gfxprim.git/commit/e622362b6290f603262c9b2323a559bad855…
commit e622362b6290f603262c9b2323a559bad85517d5
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sat Apr 7 20:04:14 2012 +0200
build: include config.mk in pre.mk.
diff --git a/post.mk b/post.mk
index fd95b0a..bafd7fb 100644
--- a/post.mk
+++ b/post.mk
@@ -26,8 +26,6 @@ help:
@echo "'VERBOSE' shell variable as 'VERBOSE=1 make'"
@echo ""
-include $(TOPDIR)/config.mk
-
#
# Determine mode (eg do not generate anything if not in compile mode
#
diff --git a/pre.mk b/pre.mk
index b815a42..3a935a0 100644
--- a/pre.mk
+++ b/pre.mk
@@ -1 +1,3 @@
all: compile
+
+include $(TOPDIR)/config.mk
-----------------------------------------------------------------------
Summary of changes:
post.mk | 2 --
pre.mk | 2 ++
tests/SDL/Makefile | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")