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 c4ae73720b3f73c4c93cc9d697c07b4353c54ce1 (commit)
from d9ac064e99ae31787e556d4f10bf3f4afd93acda (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/c4ae73720b3f73c4c93cc9d697c07b4353c5…
commit c4ae73720b3f73c4c93cc9d697c07b4353c54ce1
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Mon Nov 14 20:53:56 2011 +0100
build: fix configure for portable shells
diff --git a/configure b/configure
index b252512..12c3a89 100755
--- a/configure
+++ b/configure
@@ -23,7 +23,7 @@ def header_exists(cfg, filename):
def c_try_compile(cfg, code, msg):
sys.stderr.write(msg)
- ret = os.system("echo '{0}' | {1} -x c -o /dev/null - &>/dev/null".format(code, cfg["CC"][0]))
+ ret = os.system("echo '{0}' | {1} -x c -o /dev/null - > /dev/null 2>&1".format(code, cfg["CC"][0]))
if ret:
sys.stderr.write("Non")
@@ -39,7 +39,7 @@ def c_compiler_exists(cfg):
def python_module_installed(cfg, module):
sys.stderr.write("Checking for python module {0} ... ".format(module))
- ret = os.system("echo 'import {0}' | {1}".format(module, cfg['PYTHON_BIN'][0]))
+ ret = os.system("echo 'import {0}' | {1} > /dev/null 2>&1".format(module, cfg['PYTHON_BIN'][0]))
if ret:
sys.stderr.write('Non')
-----------------------------------------------------------------------
Summary of changes:
configure | 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 2c010bf3f32376abf437e23b4edf4735adb1f957 (commit)
from 024061fd56190b6434c9b74a25a19374ca4c02c8 (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/2c010bf3f32376abf437e23b4edf4735adb1…
commit 2c010bf3f32376abf437e23b4edf4735adb1f957
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Mon Nov 14 00:28:38 2011 +0100
grinder: Add progress callback for image loading too.
diff --git a/demos/grinder/grinder.c b/demos/grinder/grinder.c
index 0122417..858b2a6 100644
--- a/demos/grinder/grinder.c
+++ b/demos/grinder/grinder.c
@@ -35,7 +35,7 @@ static const char *progress_prefix = NULL;
static int show_progress(GP_ProgressCallback *self)
{
- fprintf(stderr, "rFilter %s %3.2f%%",
+ fprintf(stderr, "r%s %3.2f%%",
progress_prefix, self->percentage);
return 0;
@@ -502,8 +502,11 @@ static void apply_filters(GP_Context **src)
GP_RetCode ret;
for (i = 0; i < filter_cnt; i++) {
-
- progress_prefix = filters[i]->name;
+ char buf[255];
+
+ snprintf(buf, sizeof(buf), "Filter %s", filters[i]->name);
+
+ progress_prefix = buf;
if ((ret = filters[i]->apply(src, filter_params[i]))) {
fprintf(stderr, "Error: %sn", GP_RetCodeName(ret));
@@ -606,11 +609,16 @@ int main(int argc, char *argv[])
snprintf(buf, sizeof(buf), "out_%i.ppm", i - optind + 1);
fprintf(stderr, "Processing '%s' -> '%s'n", argv[i], buf);
- if ((ret = GP_LoadImage(argv[i], &bitmap, NULL))) {
+ progress_prefix = "Loading image";
+
+ if ((ret = GP_LoadImage(argv[i], &bitmap, progress_callback))) {
fprintf(stderr, "Failed to load bitmap: %sn",
GP_RetCodeName(ret));
return 1;
}
+
+ if (progress_callback != NULL)
+ fprintf(stderr, " donen");
apply_filters(&bitmap);
-----------------------------------------------------------------------
Summary of changes:
demos/grinder/grinder.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 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 97e18f4407aadb708f4ea171b0cbed30b829fa0b (commit)
via e0261e32ab9dbb92520dbd59eaab2a682ab63262 (commit)
from 3ff64e524d3ea031c6573df03ad9081b7238d41a (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/97e18f4407aadb708f4ea171b0cbed30b829…
commit 97e18f4407aadb708f4ea171b0cbed30b829fa0b
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Nov 13 19:50:26 2011 +0100
TODO: updated TODO a bit
diff --git a/TODO b/TODO
index 8c44da0..9606fe0 100644
--- a/TODO
+++ b/TODO
@@ -2,13 +2,10 @@ What's not implemented (and should be)
--------------------------------------
* bitmaps and blitting
- - create, destroy bitmap
- * DONE - GP_ContextAlloc(), GP_ContextFree()
- blit bitmaps (should respect rotation and pixel formats)
- - bitmap rotation (in order to speed up rotated blits)
- * DONE - see filters/
+ * IN PROGRESS
- loading bitmaps from image files (jpg, png, bmp, pnm ...)
- * IN PROGRESS - some pnm formats are working see loaders/
+ * IN NEARLY FINISHED
* backends
- finish framebuffer backend (SDL does not work on most of my framebuffers)
@@ -16,6 +13,12 @@ What's not implemented (and should be)
- some overall initialization routines
- backed event handling
+* Fix contrast - pass GP_Pixel so each channel could have different increment
+
+* Meditate about bit endians and why these aren't separate pixel types
+ (which would make our lives a bit easier)
+
+
Advanced features
-----------------
@@ -25,3 +28,5 @@ Advanced features
* gfx primitives
- drawing with alpha channel
- anti aliasing
+
+* freetype support
http://repo.or.cz/w/gfxprim.git/commit/e0261e32ab9dbb92520dbd59eaab2a682ab6…
commit e0261e32ab9dbb92520dbd59eaab2a682ab63262
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Nov 13 19:48:33 2011 +0100
core: Fix bit endian for context functions.
diff --git a/libs/core/GP_Context.c b/libs/core/GP_Context.c
index 7ecdb37..ab27966 100644
--- a/libs/core/GP_Context.c
+++ b/libs/core/GP_Context.c
@@ -58,6 +58,7 @@ GP_Context *GP_ContextCopy(const GP_Context *src, int flag)
new->h = src->h;
new->pixel_type = src->pixel_type;
+ new->bit_endian = src->bit_endian;
/* rotation and mirroring */
new->axes_swap = src->axes_swap;
@@ -93,6 +94,8 @@ GP_Context *GP_ContextAlloc(GP_Size w, GP_Size h, GP_PixelType type)
context->h = h;
context->pixel_type = type;
+ #warning Hmm, bit endianity..., Why isn't this settled by different pixel types?
+ context->bit_endian = 0;
/* rotation and mirroring */
context->axes_swap = 0;
@@ -152,6 +155,7 @@ GP_Context *GP_ContextSubContext(GP_Context *context, GP_Context *subcontext,
ret->h = h;
ret->pixel_type = context->pixel_type;
+ ret->bit_endian = context->bit_endian;
/* rotation and mirroring */
ret->axes_swap = context->axes_swap;
-----------------------------------------------------------------------
Summary of changes:
TODO | 15 ++++++++++-----
libs/core/GP_Context.c | 4 ++++
2 files changed, 14 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.")