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 14a68f948a63033de7c8d8dcf12978edb29b5fa2 (commit)
from 069262b67e2bd246c98f76a4f9ddbbf9bf3c992f (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/14a68f948a63033de7c8d8dcf12978edb29b…
commit 14a68f948a63033de7c8d8dcf12978edb29b5fa2
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Fri Jun 13 11:40:39 2014 +0200
build: Fix Debian build, core should link with -lrt
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/build/Makefile b/build/Makefile
index 3053edfa..5f88872b 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -37,10 +37,10 @@ endif
$(DYNAMIC_LIB): $(LIB_OBJECTS)
ifdef VERBOSE
- $(CC) -fPIC -dPIC --shared -Wl,-soname -Wl,$(SONAME) $^ -lm $(LDLIBS_core) -o $@
+ $(CC) -fPIC -dPIC --shared -Wl,-soname -Wl,$(SONAME) $^ -lm -lrt $(LDLIBS_core) -o $@
else
@echo "LD $@"
- @$(CC) -fPIC -dPIC --shared -Wl,-soname -Wl,$(SONAME) $^ -lm $(LDLIBS_core) -o $@
+ @$(CC) -fPIC -dPIC --shared -Wl,-soname -Wl,$(SONAME) $^ -lm -lrt $(LDLIBS_core) -o $@
endif
$(SYMLINKS): $(DYNAMIC_LIB)
-----------------------------------------------------------------------
Summary of changes:
build/Makefile | 4 ++--
1 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 a19009feb951a42521104ff1d2657ce9fc77df99 (commit)
from 0192d34fbb5325dc78143d0bb8438c6d2613aadd (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/a19009feb951a42521104ff1d2657ce9fc77…
commit a19009feb951a42521104ff1d2657ce9fc77df99
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Tue May 27 20:53:55 2014 +0200
filters: ResizeLinearLF: Further optimalization
Optimize the inner loop further.
This reshuffles the multiplication and divisions saving a few
operations, which brings back the effectivity back as it was
before the precision fixes.
Signed-off-by: Cyril Hrubis <setan(a)ucw.cz>
diff --git a/libs/filters/GP_ResizeLinear.gen.c.t b/libs/filters/GP_ResizeLinear.gen.c.t
index d7b57a06..6a2b947d 100644
--- a/libs/filters/GP_ResizeLinear.gen.c.t
+++ b/libs/filters/GP_ResizeLinear.gen.c.t
@@ -50,20 +50,20 @@
for (x = 0; x < dst->w; x++) {
/* Get first left pixel */
%% for c in pt.chanslist
- uint32_t {{ c.name }}_tmp = {{ c.name }}[xmap[x]] * (MULT - xoff[x]) / DIV;
+ uint32_t {{ c.name }}_middle = 0;
+ uint32_t {{ c.name }}_first = {{ c.name }}[xmap[x]] * (MULT - xoff[x]);
%% endfor
/* Sum middle pixels */
for (j = xmap[x]+1; j < xmap[x+1]; j++) {
%% for c in pt.chanslist
- {{ c.name }}_tmp += {{ c.name }}[j] * MULT / DIV;
+ {{ c.name }}_middle += {{ c.name }}[j];
%% endfor
}
- /* Add last right pixel */
+ /* Add it all together with last pixel on the right */
%% for c in pt.chanslist
- {{ c.name }}_tmp += {{ c.name }}[xmap[x+1]] * xoff[x+1] / DIV;
-%% endfor
-%% for c in pt.chanslist
- {{ c.name }}_res[x] += {{ c.name }}_tmp * {{ mult }} / DIV;
+ {{ c.name }}_res[x] += ({{ c.name }}_middle * (MULT / DIV) +
+ ({{ c.name }}[xmap[x+1]] * xoff[x+1] +
+ {{ c.name }}_first) / DIV) * {{ mult }} / DIV;
%% endfor
}
%% endmacro
-----------------------------------------------------------------------
Summary of changes:
libs/filters/GP_ResizeLinear.gen.c.t | 14 +++++++-------
1 files changed, 7 insertions(+), 7 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 f0637e601e591b56c6b074a6ca7e51af29eb182d (commit)
from 0ccf9c3c0c8bc079bab8cefcbfeae1a3f5858f52 (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/f0637e601e591b56c6b074a6ca7e51af29eb…
commit f0637e601e591b56c6b074a6ca7e51af29eb182d
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun May 25 15:29:35 2014 +0200
doc: Update gen.txt PixelChannel description
The PixelChannel is an object now (not a list).
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/doc/gen.txt b/doc/gen.txt
index 23edf2b8..ddb3082d 100644
--- a/doc/gen.txt
+++ b/doc/gen.txt
@@ -196,9 +196,25 @@ This object represents pixel type which describes the sizes and arrangements of
channels in a pixel. Note that it carries an instance of pixel size described
above.
-The chanslist is a list of triplets describing individual channels as
-[('chan_name', 'bit_offset', 'bit_size') ] where 'chan_name' is usually one of
-R, G, B, V (value, used for grayscale), A (opacity).
+[source,python]
+-------------------------------------------------------------------------------
+class PixelChannel():
+ # Index (position in pixel from left)
+ self.idx = idx
+ # Pixel channel name such as R, G, B, A, ...
+ self.name = name
+ # Bit offset in pixel
+ self.off = offset
+ # Channel bit size
+ self.size = size
+ # Maximal channel value
+ self.max = 2 ** size - 1
+ ...
+-------------------------------------------------------------------------------
+
+The chanslist describes pixel channel. There are some convenient members to be
+used directly from C code whose value is a hexadecimal string, i.e. 'C_mask',
+'C_max', 'C_shift'.
Templating language
~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------
Summary of changes:
doc/gen.txt | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 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.")