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/f0637e601e591b56c6b074a6ca7e51af29eb1...
commit f0637e601e591b56c6b074a6ca7e51af29eb182d Author: Cyril Hrubis metan@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@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@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.