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 ff67d6e17905d01934074321a4a0136027dae253 (commit) via 383de9361b32daf29cd8f2b43f7a9e9facb21b6f (commit) via 9efe7cb613cda7c96883c97e89609acec1aee586 (commit) from e434f9d04602003a5e0c858acc5189cac9297e36 (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/ff67d6e17905d01934074321a4a0136027dae...
commit ff67d6e17905d01934074321a4a0136027dae253 Author: Cyril Hrubis metan@ucw.cz Date: Tue Mar 19 21:08:25 2013 +0100
demos: py_simple: Fix rotate90.py
diff --git a/demos/py_simple/rotate90.py b/demos/py_simple/rotate90.py index f4f2ad3..4a77835 100755 --- a/demos/py_simple/rotate90.py +++ b/demos/py_simple/rotate90.py @@ -14,11 +14,11 @@ def main(): core.SetDebugLevel(10);
# Load Image - src = loaders.LoadImage(sys.argv[1], None) + src = loaders.Load(sys.argv[1]) # Rotate by 90 degrees - res = filters.FilterRotate90_Alloc(src, None) + res = filters.FilterRotate90Alloc(src) # Save Image - res.Save(sys.argv[2]) + res.loaders.Save(sys.argv[2])
if __name__ == '__main__': main()
http://repo.or.cz/w/gfxprim.git/commit/383de9361b32daf29cd8f2b43f7a9e9facb21...
commit 383de9361b32daf29cd8f2b43f7a9e9facb21b6f Author: Cyril Hrubis metan@ucw.cz Date: Tue Mar 19 21:07:49 2013 +0100
pywrap: Fix filters __init__.py.
diff --git a/pylib/gfxprim/filters/__init__.py b/pylib/gfxprim/filters/__init__.py index 96ed8c9..ae3988c 100644 --- a/pylib/gfxprim/filters/__init__.py +++ b/pylib/gfxprim/filters/__init__.py @@ -1,26 +1,19 @@ -from . import filters_c - -from . import C +from . import c_filters
def _init(module): - + "Extend Context with filters submodule" + # Imports from the SWIG module import re def strip_GP(s): return re.sub('^GP_', '', s)
- # Import constants from the SWIG module - from ..utils import import_members - const_regexes = ['^GP_[A-Z0-9_]*$'] - import_members(filters_c, C, include=const_regexes, sub=strip_GP) - # Import functions from the SWIG module - import_members(filters_c, module, sub=strip_GP, - exclude=const_regexes + [ - '.*_Raw', - '^w+_swigregister$', - '^gfxprim$', - '^_w+$']) - + from ..utils import import_members + import_members(c_filters, module, sub=strip_GP, + include=[ + '^GP_Filter.*Alloc', + ]) + _init(locals()) del _init diff --git a/pylib/gfxprim/filters/filters.i b/pylib/gfxprim/filters/filters.i index d2d9618..6adf8a7 100644 --- a/pylib/gfxprim/filters/filters.i +++ b/pylib/gfxprim/filters/filters.i @@ -1,5 +1,5 @@ %include "../common.i" -%module(package="gfxprim.filters") filters_c +%module(package="gfxprim.filters") c_filters
%{ #include "filters/GP_Filters.h"
http://repo.or.cz/w/gfxprim.git/commit/9efe7cb613cda7c96883c97e89609acec1aee...
commit 9efe7cb613cda7c96883c97e89609acec1aee586 Author: Cyril Hrubis metan@ucw.cz Date: Tue Mar 19 20:58:51 2013 +0100
demos: py_simple: Fix loaders_example.py
diff --git a/demos/py_simple/loaders_example.py b/demos/py_simple/loaders_example.py index c9db630..9b463d5 100755 --- a/demos/py_simple/loaders_example.py +++ b/demos/py_simple/loaders_example.py @@ -11,9 +11,9 @@ def main(): sys.exit(1)
# Load Image - img = loaders.LoadImage(sys.argv[1], None) + img = loaders.Load(sys.argv[1]) # Save result - img.Save("out.png"); + img.loaders.Save("out.png");
if __name__ == '__main__': main()
-----------------------------------------------------------------------
Summary of changes: demos/py_simple/loaders_example.py | 4 ++-- demos/py_simple/rotate90.py | 6 +++--- pylib/gfxprim/filters/__init__.py | 25 +++++++++---------------- pylib/gfxprim/filters/filters.i | 2 +- 4 files changed, 15 insertions(+), 22 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.