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 0d0f7852bb88e81f1e248e9776022232454d218e (commit)
via 324bfb6f6762369f769774df7765f871330d262e (commit)
via 9fd530170199db0cf53d4d4b7223f07b44c2554d (commit)
via fb131160d2f7320ef2998d1165dab70a6ac2f97e (commit)
via …
[View More]f5cecdf0ef17c206a2481873bedcb2b6178ccefa (commit)
from 77ca5e065797236b928b1ee5a3e869c564620191 (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/0d0f7852bb88e81f1e248e9776022232454d…
commit 0d0f7852bb88e81f1e248e9776022232454d218e
Merge: 324bfb6 77ca5e0
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Dec 25 02:18:26 2012 +0100
Merge branch 'master' of ssh://repo.or.cz/srv/git/gfxprim
http://repo.or.cz/w/gfxprim.git/commit/324bfb6f6762369f769774df7765f871330d…
commit 324bfb6f6762369f769774df7765f871330d262e
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Dec 25 02:15:22 2012 +0100
core: pylib: Cleanup of gfxprim.core and imports
diff --git a/pylib/gfxprim/core/__init__.py b/pylib/gfxprim/core/__init__.py
index 4e90c66..a4301f5 100644
--- a/pylib/gfxprim/core/__init__.py
+++ b/pylib/gfxprim/core/__init__.py
@@ -55,7 +55,6 @@ def _init(module):
c.parent = None
return c
- extend_direct
@extend(_context)
def SubContext(self, x, y, w, h):
"Create a subcontext (a rectangular view)."
@@ -162,112 +161,15 @@ def _init(module):
# Bulk import of functions
import_members(c_core, module, sub=strip_GP,
- exclude=const_regexes + [
- '^GP_Blitw+$',
- '^GP_Contextw+$',
- '^GP_PixelSNPrintw+$',
- '^GP_WritePixelsw+$',
- '.*_Raw.*',
- '^w+_swigregister$',
- '^cvar$',
- '^_w+$'])
+ include=[
+ '^GP_Color.*$', # Might use trimming
+ '^GP_[GS]etDebugLevel$',
+ '^GP_PixelRGB.*$', # ...Lookup and ...Match
+ '^GP_PixelToRGB.*$', # Needs love
+ '^GP_RGB.*$', # Needs filtering
+ #'^GP_ProgressCallback.*$', # Needs work
+ ])
_init(locals())
del _init
-"""
-TODO: on entering any func from Python, set up error reporting on GP_ABORT
-(raise an exception, restore stack and return, possibly longjmp?
-(or just force python trace?)
-
-!! LIST of symbols to implement
-
-! Pixeltype table and objects
-
-GP_PixelTypes - FIX
-
-! IN Context class
-
-GP_ContextAlloc C
-GP_ContextResize C
-GP_ContextConvertAlloc C
-GP_ContextPrintInfo N
-GP_ContextRotateCCW C
-GP_SubContextAlloc C
-GP_ContextConvert N
-GP_ContextRotateCW C
-GP_ContextFree Ci
-GP_ContextInit N
-GP_SubContext N
-GP_ContextCopy C
-GP_PixelAddrOffset N
-
-! ?
-
-# GP_GammaRelease
-# GP_GammaCopy
-# GP_GammaAcquire
-
-! ?
-
-# GP_DebugPrint
-# GP_SetDebugLevel
-# GP_GetDebugLevel
-
-! Color conversion
-
-GP_RGBA8888ToPixel N
-GP_RGB888ToPixel N
-GP_PixelToRGB888
-GP_PixelToRGBA8888
-GP_ColorNameToPixel
-GP_ColorToPixel
-
-GP_PixelTypeByName - reimplement
-
-# GP_PixelRGBMatch
-# GP_ColorLoadPixels
-# GP_PixelRGBLookup
-# GP_ColorNameToColor
-# GP_ColorToColorName
-
-! IN Context class
-
-Blit - reimplement with keyword args, no raw
-
-# GP_BlitXYXY
-# GP_BlitXYXY_Fast
-# GP_BlitXYWH
-# GP_BlitXYWH_Clipped
-# GP_BlitXYXY_Clipped
-# GP_BlitXYXY_Raw_Fast
-# GP_BlitXYWH_Raw
-# GP_BlitXYXY_Raw
-
-! Do not want
-
-# GP_WritePixels_1BPP_LE
-# GP_WritePixels_2BPP_LE
-# GP_WritePixels_4BPP_LE
-# GP_WritePixels1bpp
-# GP_WritePixels2bpp
-# GP_WritePixels4bpp
-# GP_WritePixels8bpp
-# GP_WritePixels16bpp
-# GP_WritePixels18bpp
-# GP_WritePixels32bpp
-# GP_WritePixels24bpp
-
-! IN Context - basic drawing
-
-GP_PutPixel C
-GP_GetPixel C
-
-! ?
-
-# GP_NrThreads
-# GP_NrThreadsSet
-# GP_ProgressCallbackMP
-# SWIG_exception
-"""
-
http://repo.or.cz/w/gfxprim.git/commit/9fd530170199db0cf53d4d4b7223f07b44c2…
commit 9fd530170199db0cf53d4d4b7223f07b44c2554d
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Dec 25 02:14:38 2012 +0100
core: pylib: GP_PixelTypes related access
diff --git a/pylib/gfxprim/core/__init__.py b/pylib/gfxprim/core/__init__.py
index cc4577d..4e90c66 100644
--- a/pylib/gfxprim/core/__init__.py
+++ b/pylib/gfxprim/core/__init__.py
@@ -149,7 +149,18 @@ def _init(module):
# every Context also points to C for convenience
extend(_context, name='C')(C)
- # Bulk import of functions - TODO: only import specified
+ # Arrays with pixel type info
+ module['PixelTypes'] = [c_core.GP_PixelTypes_access(i)
+ for i in range(C.PIXEL_MAX)]
+
+ module['PixelTypesDict'] = dict(((t.name, t) for t in module['PixelTypes']))
+
+ def PixelTypeByName(name):
+ "Return a PixelType descriptor by name, raise KeyError if no such type exists."
+ return module['PixelTypesDict'][name]
+ module['PixelTypeByName'] = PixelTypeByName
+
+ # Bulk import of functions
import_members(c_core, module, sub=strip_GP,
exclude=const_regexes + [
'^GP_Blitw+$',
diff --git a/pylib/gfxprim/core/core.i b/pylib/gfxprim/core/core.i
index 6e1d017..c59ae6c 100644
--- a/pylib/gfxprim/core/core.i
+++ b/pylib/gfxprim/core/core.i
@@ -35,6 +35,14 @@ ERROR_ON_NULL(GP_ColorToColorName);
%import "GP_FnPerBpp.h"
%import "GP_FnPerBpp.gen.h"
+%inline %{
+const GP_PixelTypeDescription *GP_PixelTypes_access(GP_PixelType no)
+{
+ if (no < 0 || no >= GP_PIXEL_MAX) no = GP_PIXEL_UNKNOWN;
+ return &GP_PixelTypes[no];
+}
+%}
+
/*
* GP_Context wrapping
*/
http://repo.or.cz/w/gfxprim.git/commit/fb131160d2f7320ef2998d1165dab70a6ac2…
commit fb131160d2f7320ef2998d1165dab70a6ac2f97e
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Dec 25 01:40:24 2012 +0100
core: Explicit size of GP_PixelTypes
diff --git a/include/core/GP_Pixel.h b/include/core/GP_Pixel.h
index f40c8a6..d058ab3 100644
--- a/include/core/GP_Pixel.h
+++ b/include/core/GP_Pixel.h
@@ -114,7 +114,7 @@ typedef struct {
/*
* Array of size GP_PIXEL_MAX describing known pixel types
*/
-extern const GP_PixelTypeDescription const GP_PixelTypes[];
+extern const GP_PixelTypeDescription const GP_PixelTypes[GP_PIXEL_MAX];
#define GP_CHECK_VALID_PIXELTYPE(type) GP_CHECK(((type) > 0) && ((type) < GP_PIXEL_MAX), "Invalid PixelType %d", (type))
diff --git a/libs/core/GP_Pixel.gen.c.t b/libs/core/GP_Pixel.gen.c.t
index f41625b..8374856 100644
--- a/libs/core/GP_Pixel.gen.c.t
+++ b/libs/core/GP_Pixel.gen.c.t
@@ -2,7 +2,6 @@
%% block descr
Pixel type definitions and functions
-Do not include directly, use GP_Pixel.h
%% endblock
%% block body
@@ -13,7 +12,7 @@ Do not include directly, use GP_Pixel.h
/*
* Description of all known pixel types
*/
-const GP_PixelTypeDescription const GP_PixelTypes [] = {
+const GP_PixelTypeDescription const GP_PixelTypes [GP_PIXEL_MAX] = {
%% for pt in pixeltypes
/* GP_PIXEL_{{ pt.name }} */ {
.type = GP_PIXEL_{{ pt.name }},
http://repo.or.cz/w/gfxprim.git/commit/f5cecdf0ef17c206a2481873bedcb2b6178c…
commit f5cecdf0ef17c206a2481873bedcb2b6178ccefa
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Tue Dec 25 01:39:30 2012 +0100
core: pylib: Pythonic Context.Blit
diff --git a/pylib/gfxprim/core/__init__.py b/pylib/gfxprim/core/__init__.py
index 3bf8d08..cc4577d 100644
--- a/pylib/gfxprim/core/__init__.py
+++ b/pylib/gfxprim/core/__init__.py
@@ -91,6 +91,26 @@ def _init(module):
extend_direct(_context, "Resize", c_core.GP_ContextResize,
"Resize the context bitmap (reallocate). Fails on subcontexts.")
+ # Blit
+
+ @extend(_context)
+ def Blit(self, sx, sy, target, tx, ty, w=None, h=None, sx2=None, sy2=None,
+ tx2=None, ty2=None):
+ """Copy a rectangle from self to target. (sx,sy) and (tx,ty) define
+ upper-left corners, rectangle size is given by (width, height), lower-right
+ corner in source or lower-right corner in the target. Clipped."""
+ assert sum([w is not None, sx2 is not None, tx2 is not None]) == 1
+ assert sum([h is not None, sy2 is not None, ty2 is not None]) == 1
+ if sx2 is not None:
+ w = max(0, sx2 - sx)
+ if tx2 is not None:
+ w = max(0, tx2 - tx)
+ if sy2 is not None:
+ h = max(0, sy2 - sy)
+ if ty2 is not None:
+ h = max(0, ty2 - ty)
+ return c_core.GP_BlitXYWH_Clipped(self, sx, sy, target, tx, ty, w, h)
+
# Color conversions
@extend(_context)
@@ -163,7 +183,7 @@ GP_ContextConvertAlloc C
GP_ContextPrintInfo N
GP_ContextRotateCCW C
GP_SubContextAlloc C
-GP_ContextConvert C
+GP_ContextConvert N
GP_ContextRotateCW C
GP_ContextFree Ci
GP_ContextInit N
@@ -190,10 +210,10 @@ GP_RGB888ToPixel N
GP_PixelToRGB888
GP_PixelToRGBA8888
GP_ColorNameToPixel
+GP_ColorToPixel
GP_PixelTypeByName - reimplement
-# GP_ColorToPixel
# GP_PixelRGBMatch
# GP_ColorLoadPixels
# GP_PixelRGBLookup
-----------------------------------------------------------------------
Summary of changes:
include/core/GP_Pixel.h | 2 +-
libs/core/GP_Pixel.gen.c.t | 3 +-
pylib/gfxprim/core/__init__.py | 147 +++++++++++-----------------------------
pylib/gfxprim/core/core.i | 8 ++
4 files changed, 50 insertions(+), 110 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.")
[View Less]
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 33b95fd86ead735cd54f3b0f7cf87c779a4370ad (commit)
from 18f21817f0ccdf5e4024183595e127eec8ce7744 (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 ------…
[View More]-----------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/33b95fd86ead735cd54f3b0f7cf87c779a43…
commit 33b95fd86ead735cd54f3b0f7cf87c779a4370ad
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Sat Dec 22 22:37:06 2012 +0100
core: Add a C backtrace to GP_ABORT
diff --git a/configure b/configure
index 6eead34..d2f2d43 100755
--- a/configure
+++ b/configure
@@ -238,7 +238,7 @@ if __name__ == '__main__':
#
# name, description, [detection], cflags, ldflags, list of modules library is needed for
#
- l = libraries([["libpng",
+ l = libraries([["libpng",
"Portable Network Graphics Library",
[header_exists, "png.h"], "", "-lpng", ["loaders"]],
["libsdl",
@@ -262,6 +262,10 @@ if __name__ == '__main__':
["dl",
"Dynamic linker",
[header_exists, "dlfcn.h"], "", "-ldl", ["core"]],
+ ["backtrace",
+ "C stack trace writeout",
+ [c_try_compile, "#include <execinfo.h>nint main(void) { backtrace(0, 0); }",
+ "Checking for backtrace() ... "], "", "", ["core"]],
["V4L2",
"Video for linux 2",
[header_exists, "linux/videodev2.h"], "", "", ["grabbers"]]], cfg)
diff --git a/include/core/GP_Common.h b/include/core/GP_Common.h
index 95731b7..1140e76 100644
--- a/include/core/GP_Common.h
+++ b/include/core/GP_Common.h
@@ -99,13 +99,14 @@
* and prints message and calls abort().
* GP_GENERAL_CHECK is a check with specified message prefix
* (for assert and check)
- *
- * SWIG_print_trace() prints a trace of Python stack if a Python interpreter
- * is set up. In case more wrappers are written, should print a trace
- * for the currently active.
*/
-void SWIG_print_trace(void);
+/*
+ * Print as much trace info as possible. Currently, the (C) call stack and
+ * the Python stack if a Python interpreter is set up. In case more wrappers
+ * are written, it should print a trace for the currently active.
+ */
+void GP_PrintAbortInfo(void);
#define GP_INTERNAL_ABORT_BUFSIZE 1024
#define GP_INTERNAL_ABORT(str_abort_msg_, ...) do { @@ -118,8 +119,8 @@ void SWIG_print_trace(void);
buf += snprintf(buf, bufend - buf, "abort()"); else buf += snprintf(buf, bufend - buf, " " __VA_ARGS__); - SWIG_print_trace(); fprintf(stderr, "%sn", bufstart); + GP_PrintAbortInfo(); abort(); } while (0)
diff --git a/libs/core/GP_Common.c b/libs/core/GP_Common.c
index 2cf6fc9..52c4920 100644
--- a/libs/core/GP_Common.c
+++ b/libs/core/GP_Common.c
@@ -24,14 +24,35 @@
#include "../config.h"
-#include "core/GP_Common.h"
+#include <stdio.h>
+
+#ifdef HAVE_BACKTRACE
+#include <execinfo.h>
+#endif /* HAVE_BACKTRACE */
#ifdef HAVE_DL
#include <dlfcn.h>
#endif /* HAVE_DL */
+#include "core/GP_Common.h"
+
+#define GP_ABORT_INFO_TRACE_LEVELS 20
+
+
+void GP_PrintCStack(void)
+{
+#ifdef HAVE_BACKTRACE
+#if GP_ABORT_INFO_TRACE_LEVELS > 0
+ void * buffer[GP_ABORT_INFO_TRACE_LEVELS + 1];
+ int size = backtrace(buffer, GP_ABORT_INFO_TRACE_LEVELS);
+ fprintf(stderr, "nC stack trace (most recent call first):n");
+ fflush(stderr);
+ backtrace_symbols_fd(buffer, size, fileno(stderr));
+#endif /* GP_ABORT_INFO_TRACE_LEVELS > 0 */
+#endif /* HAVE_BACKTRACE */
+}
-void SWIG_print_trace(void)
+void GP_PrintPythonStack(void)
{
#ifdef HAVE_DL
/* Print python stack trace in case python lib is loaded and
@@ -40,7 +61,17 @@ void SWIG_print_trace(void)
int (*dl_PyRun_SimpleString)(const char *);
dl_Py_IsInitialized = dlsym(RTLD_DEFAULT, "Py_IsInitialized");
dl_PyRun_SimpleString = dlsym(RTLD_DEFAULT, "PyRun_SimpleString");
- if (dl_Py_IsInitialized && dl_PyRun_SimpleString && dl_Py_IsInitialized())
+ if (dl_Py_IsInitialized && dl_PyRun_SimpleString && dl_Py_IsInitialized()) {
+ fprintf(stderr, "nPython stack trace (most recent call last; ignore last line):n");
+ fflush(stderr);
dl_PyRun_SimpleString("import traceback; traceback.print_stack();");
+ }
#endif /* HAVE_DL */
}
+
+void GP_PrintAbortInfo(void)
+{
+ GP_PrintPythonStack();
+ GP_PrintCStack();
+}
+
-----------------------------------------------------------------------
Summary of changes:
configure | 6 +++++-
include/core/GP_Common.h | 13 +++++++------
libs/core/GP_Common.c | 37 ++++++++++++++++++++++++++++++++++---
3 files changed, 46 insertions(+), 10 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.")
[View Less]
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 18f21817f0ccdf5e4024183595e127eec8ce7744 (commit)
from a3c538fd80eb28f103161ce90aa03b05da303866 (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 ------…
[View More]-----------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/18f21817f0ccdf5e4024183595e127eec8ce…
commit 18f21817f0ccdf5e4024183595e127eec8ce7744
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Sat Dec 22 02:34:59 2012 +0100
configure: update configure to look for libdl
diff --git a/configure b/configure
index db5733f..6eead34 100755
--- a/configure
+++ b/configure
@@ -259,6 +259,9 @@ if __name__ == '__main__':
["freetype",
"A high-quality and portable font engine",
[header_exists, "ft2build.h"], "", "`freetype-config --libs`", ["core"]],
+ ["dl",
+ "Dynamic linker",
+ [header_exists, "dlfcn.h"], "", "-ldl", ["core"]],
["V4L2",
"Video for linux 2",
[header_exists, "linux/videodev2.h"], "", "", ["grabbers"]]], cfg)
-----------------------------------------------------------------------
Summary of changes:
configure | 3 +++
1 files changed, 3 insertions(+), 0 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.")
[View Less]
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 5a09bd55e0ab64565d12d30ef583d9572d66d6be (commit)
from 61678e75ea1a079599578d9590e50bdd6740def4 (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 ------…
[View More]-----------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/5a09bd55e0ab64565d12d30ef583d9572d66…
commit 5a09bd55e0ab64565d12d30ef583d9572d66d6be
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Fri Dec 21 00:23:25 2012 +0100
Reformulate part of codegen docs
diff --git a/doc/gen.txt b/doc/gen.txt
index 949f585..1cdf906 100644
--- a/doc/gen.txt
+++ b/doc/gen.txt
@@ -24,29 +24,45 @@ class PixelSize(object):
self.suffix = suffix
- self.bit_endian = bit_endian
-
- def needs_bit_endian(self):
+ self.bit_endian = bit_endian
...
-
+
-------------------------------------------------------------------------------
The Pixel Size object represents pixel as a continous block of data.
-The 'size' is size in bits and is sometimes called bpp which stands for bits
-per pixel. It also contains suffix that is a string used as a suffix for
-functions that manipulates with this pixel size.
+The 'size' is size in bits and is sometimes called bpp which stands for "bits
+per pixel". This number includes padding bits, if any.
+
+The 'suffix' is a string used as a suffix for functions, macros and other
+identifiers that operate with this pixel size.
+
+The 'bit_endian' determines the ordering of pixel bits within a byte in bitmaps
+and graymaps. This is significant in pixel types with pixel boundaries
+within a byte, i.e. 1 bpp, 4 bpp or 17 bpp.
+
+It can be either 'BE' or 'LE' (i.e. most significant bit left or right in the bitmap).
+Usually, the bitmap is ordered with left bits earlier in the memory, but the
+earlier/later relationship is important.
+This is defined in terms of natural pixel ordering within the memory.
+
+'BE' means that the earlier (usually left-most) pixels use the higher ("big")
+bits of the byte. I.e. in 1 bpp, the first pixel would have value 128, the second 64
+and so on.
+
+'LE' means that the earlier (usually left-most) pixels use the lower ("little")
+bits of the byte. I.e. in 1 bpp, the first pixel would have value 1, the second 2,
+the eight'th 128 and so on.
-The 'bit_endian' determines direction of bits in bitmaps and graymaps (i.e.
-most significant bit left or right). It can be either 'BE' or 'LE'. To avoid
-confusion following two figures describes bits layout in 1 bit and 2 bits
+The following two figures describe bit layout in 1 bpp and 2 bpp
grayscale bitmaps. The rectangles in the figures represents bytes as they are
-in the buffer. The start of the image (i.e. topleft corner and coodinate 0,0)
-is on the left side. The numbers describes position of the bit in the byte (as
-seen by shifts and bitmask from within C language implementation).
+in the bitmap memory. The start of the image (i.e. topleft corner
+and coodinates (0,0)) is on the left side.
+The numbers describe position of the bit in the byte, 'i' representing
+value '1<<i', that is 7-th bit representing value 128 and 0-th bit value 1.
BE
-~~
+++
["graphviz", "bit-endian-be-1bit.png"]
------------------------------------------------------------------------------
@@ -87,7 +103,7 @@ digraph bit_endian {
------------------------------------------------------------------------------
LE
-~~
+++
["graphviz", "bit-endian-le-1bit.png"]
------------------------------------------------------------------------------
@@ -115,9 +131,9 @@ digraph bit_endian {
rankdir = LR;
node0 [label = "<e> ..."];
- node1 [label = "{0 1 | 2 3 | 4 5 | <e> 6 7}"];
- node2 [label = "{<b> 0 1 | 2 3 | 4 5 | <e> 6 7}"];
- node3 [label = "{<b> 0 1 | 2 3 | 4 5 | <e> 6 7}"];
+ node1 [label = "{1 0 | 3 2 | 5 4 | <e> 7 6}"];
+ node2 [label = "{<b> 1 0 | 3 2 | 5 4 | <e> 7 6}"];
+ node3 [label = "{<b> 1 0 | 3 2 | 5 4 | <e> 7 6}"];
node4 [label = "{<b> ...}"];
node0:e -> node1:b;
@@ -127,9 +143,10 @@ digraph bit_endian {
}
------------------------------------------------------------------------------
-NOTE: Different pixels can share the same pixel size as for certain types
- of operations the function doesn't depend on actual arrangements of the
- color channels in pixel (i.e. Get/Put Pixel, Rotate buffer 90 degrees, etc...).
+NOTE: Different pixel types (i.e. RGB888 and BGR888) can share the same pixel
+ size, since certain types of operations do not depend on the actual
+ arrangement of the color channels in a pixel
+ (i.e. get/put pixel, rotate buffer 90 degrees, etc.).
TODO: Rename size to bpp?
-----------------------------------------------------------------------
Summary of changes:
doc/gen.txt | 59 ++++++++++++++++++++++++++++++++++++++---------------------
1 files changed, 38 insertions(+), 21 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.")
[View Less]
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 61678e75ea1a079599578d9590e50bdd6740def4 (commit)
from f7a7118fd7ba106dfcc1eb7bbff7aed723f0d6f0 (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 ------…
[View More]-----------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/61678e75ea1a079599578d9590e50bdd6740…
commit 61678e75ea1a079599578d9590e50bdd6740def4
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Thu Dec 20 17:47:46 2012 +0100
libs: backends: GP_X11: Add XFlush() after BackendUdate().
diff --git a/libs/backends/GP_X11.c b/libs/backends/GP_X11.c
index aaa363f..33a0666 100644
--- a/libs/backends/GP_X11.c
+++ b/libs/backends/GP_X11.c
@@ -129,6 +129,8 @@ static void x11_flip(GP_Backend *self)
XPutImage(x11->dpy, x11->win, DefaultGC(x11->dpy, x11->scr),
x11->img, 0, 0, 0, 0, w, h);
+ XFlush(x11->dpy);
+
XUnlockDisplay(x11->dpy);
}
-----------------------------------------------------------------------
Summary of changes:
libs/backends/GP_X11.c | 2 ++
1 files changed, 2 insertions(+), 0 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.")
[View Less]
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 f7a7118fd7ba106dfcc1eb7bbff7aed723f0d6f0 (commit)
from c7b776f3628256d94d62b176ccf72743f832fa45 (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 ------…
[View More]-----------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/f7a7118fd7ba106dfcc1eb7bbff7aed723f0…
commit f7a7118fd7ba106dfcc1eb7bbff7aed723f0d6f0
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Thu Dec 20 17:37:14 2012 +0100
doc: Makefile: add check for source-highlight.
diff --git a/doc/Makefile b/doc/Makefile
index b87a688..7bda21b 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -25,6 +25,8 @@ all: toolcheck examples.html $(PAGES) api.html
toolcheck:
@if [ -z `which asciidoc 2>/dev/null` ] ; then echo "ERROR: Could not find 'asciidoc'" ; exit 127 ; fi
+ @if [ -z `which source-highlight 2>/dev/null` ] ; then + echo "ERROR: Could not find 'source-highlight'" ; exit 127 ; fi
@if [ ! -d "/usr/share/graphviz" ] ; then echo "ERROR: Could not find 'graphviz'" ; exit 127 ; fi
@if [ -z `which latex 2>/dev/null` ] ; then
-----------------------------------------------------------------------
Summary of changes:
doc/Makefile | 2 ++
1 files changed, 2 insertions(+), 0 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.")
[View Less]