Re: [E-devel] E CVS: libs/evas tilman

2006-09-11 Thread The Rasterman
On Mon, 11 Sep 2006 10:42:39 -0400 (EDT) Enlightenment CVS
<[EMAIL PROTECTED]> babbled:

did this change anything with your xrender output? i would expect not (simply
changing how the matrix is initted - content should be the same)

> Enlightenment CVS committal
> 
> Author  : tilman
> Project : e17
> Module  : libs/evas
> 
> Dir : e17/libs/evas/src/modules/engines/xrender_x11
> 
> 
> Modified Files:
>   evas_engine_xrender.c 
> 
> 
> Log Message:
> cleaned up the transformation matrix code. use the proper x macro to convert
> a double into a matrix component instead of hardcoding the bitshift. added
> init_transform() which will initialize a matrix to the identity transform.
> 
> ===
> RCS
> file: 
> /cvs/e/e17/libs/evas/src/modules/engines/xrender_x11/evas_engine_xrender.c,v
> retrieving revision 1.12 retrieving revision 1.13
> diff -u -3 -r1.12 -r1.13
> --- evas_engine_xrender.c 7 Jun 2006 23:30:15 -   1.12
> +++ evas_engine_xrender.c 11 Sep 2006 14:42:39 -  1.13
> @@ -1,3 +1,6 @@
> +/*
> + * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
> + */
>  #include "evas_common.h"
>  #include "evas_macros.h"
>  #include "evas_private.h"
> @@ -330,6 +333,17 @@
> free(rect);
>  }
>  
> +/* initialized the transform to the identity */
> +static void init_transform (XTransform *t)
> +{
> +   int i, j;
> +
> +   for (i = 0; i < 3; i++)
> + for (j = 0; j < 3; j++)
> +   t->matrix[i][j] = XDoubleToFixed((i == j) ? 1 : 0);
> +}
> +
> +
>  // when color multiplier is used want: instead
>  // CA src IN mask SRC temp; non-CA temp OVER dst. - i think. need to check.
>  void
> @@ -352,17 +366,7 @@
> XRenderChangePicture(srs->xinf->disp, srs->pic, CPClipMask, &att);
> XRenderChangePicture(srs->xinf->disp, drs->pic, CPClipMask, &att);
> 
> -   id.matrix[0][0] = 1 << 16;
> -   id.matrix[0][1] = 0;
> -   id.matrix[0][2] = 0;
> - 
> -   id.matrix[1][0] = 0;
> -   id.matrix[1][1] = 1 << 16;
> -   id.matrix[1][2] = 0;
> - 
> -   id.matrix[2][0] = 0;
> -   id.matrix[2][1] = 0;
> -   id.matrix[2][2] = 1 << 16;
> +   init_transform(&id);
>  
> op = PictOpSrc;
> if (srs->alpha) op = PictOpOver;
> @@ -423,17 +427,9 @@
> }
>   }
>  
> -   xf.matrix[0][0] = (sw << 16) / w;
> -   xf.matrix[0][1] = 0;
> -   xf.matrix[0][2] = 0;
> -
> -   xf.matrix[1][0] = 0;
> -   xf.matrix[1][1] = (sh << 16) / h;
> -   xf.matrix[1][2] = 0;
> -
> -   xf.matrix[2][0] = 0;
> -   xf.matrix[2][1] = 0;
> -   xf.matrix[2][2] = 1 << 16;
> +   xf = id;
> +   xf.matrix[0][0] = XDoubleToFixed(sw) / w;
> +   xf.matrix[1][1] = XDoubleToFixed(sh) / h;
>  
> _xr_render_surface_clips_set(drs, dc, x, y, w, h);
> if (trs)
> @@ -497,25 +493,19 @@
>  {
> XTransform xf;
> XRenderPictureAttributes att;
> -   int ident;
> 
> if ((w <= 0) || (h <= 0) || (!srs) || (!drs)) return;
> -   ident = 1 << 16;
> +
> +   init_transform(&xf);
> +
> /* FIXME: why do we need to change the identity matrix ifthe src surface
>  * is 1 bit deep?
>  */
> -   if (srs->depth == 1) ident = 1;
> -   xf.matrix[0][0] = ident;
> -   xf.matrix[0][1] = 0;
> -   xf.matrix[0][2] = 0;
> -   
> -   xf.matrix[1][0] = 0;
> -   xf.matrix[1][1] = ident;
> -   xf.matrix[1][2] = 0;
> -   
> -   xf.matrix[2][0] = 0;
> -   xf.matrix[2][1] = 0;
> -   xf.matrix[2][2] = ident;
> +   if (srs->depth == 1)
> + {
> + xf.matrix[0][0] = xf.matrix[1][1] = xf.matrix[2][2] = 1;
> + }
> +
> 
> XRenderSetPictureTransform(srs->xinf->disp, srs->pic, &xf);
> att.clip_mask = None;
> 
> 
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> enlightenment-cvs mailing list
> enlightenment-cvs@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/evas tilman

2006-09-12 Thread Tilman Sauerbeck
Carsten Haitzler [2006-09-12 08:02]:
> On Mon, 11 Sep 2006 10:42:39 -0400 (EDT) Enlightenment CVS
> <[EMAIL PROTECTED]> babbled:
> 
> [init transform changes]
>
> did this change anything with your xrender output? i would expect not (simply
> changing how the matrix is initted - content should be the same)

No, it didn't change anything. Your matrix transform is correct. I just
wanted to clean it up a bit.

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


pgp1oxNThjH8s.pgp
Description: PGP signature
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/evas tilman

2007-05-18 Thread Kim Woelders
Enlightenment CVS wrote:
> Enlightenment CVS committal
> 
> Author  : tilman
> Project : e17
> Module  : libs/evas
> 
> Dir : e17/libs/evas/src/lib/canvas
> 
> 
> Modified Files:
>   evas_object_textblock.c 
> 
> 
> Log Message:
> rework how the html entity escape arrays are stored. this saves a few hundred 
> bytes on the data section of the library, kills off ~300 locations, and makes 
> the so 77K smaller.
> 
...

I think I understand why this is good for performance. However, it makes 
it non-trivial to make changes unless the offset table somehow can be 
auto-generated. Do you have some script for that?

/Kim

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/evas tilman

2007-05-18 Thread Tilman Sauerbeck
Kim Woelders [2007-05-18 11:23]:
> Enlightenment CVS wrote:
> > Enlightenment CVS committal
> > 
> > Author  : tilman
> > Project : e17
> > Module  : libs/evas
> > 
> > Dir : e17/libs/evas/src/lib/canvas
> > 
> > 
> > Modified Files:
> > evas_object_textblock.c 
> > 
> > 
> > Log Message:
> > rework how the html entity escape arrays are stored. this saves a few 
> > hundred bytes on the data section of the library, kills off ~300 locations, 
> > and makes the so 77K smaller.
> > 
> ...
> 
> I think I understand why this is good for performance. However, it makes 
> it non-trivial to make changes unless the offset table somehow can be 
> auto-generated. Do you have some script for that?

Yes, I have C code that does it. It's not in CVS yet because I frown
upon the necessary automake changes.

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


pgpAUJi8Vdhhn.pgp
Description: PGP signature
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/evas tilman

2007-05-18 Thread The Rasterman
On Fri, 18 May 2007 20:12:37 +0200 Tilman Sauerbeck <[EMAIL PROTECTED]>
babbled:

> Kim Woelders [2007-05-18 11:23]:
> > Enlightenment CVS wrote:
> > > Enlightenment CVS committal
> > > 
> > > Author  : tilman
> > > Project : e17
> > > Module  : libs/evas
> > > 
> > > Dir : e17/libs/evas/src/lib/canvas
> > > 
> > > 
> > > Modified Files:
> > >   evas_object_textblock.c 
> > > 
> > > 
> > > Log Message:
> > > rework how the html entity escape arrays are stored. this saves a few
> > > hundred bytes on the data section of the library, kills off ~300
> > > locations, and makes the so 77K smaller.
> > > 
> > ...
> > 
> > I think I understand why this is good for performance. However, it makes 
> > it non-trivial to make changes unless the offset table somehow can be 
> > auto-generated. Do you have some script for that?
> 
> Yes, I have C code that does it. It's not in CVS yet because I frown
> upon the necessary automake changes.

mind you - i don't think we will be expanding that in a hurry. you can do all
of this via utf-8 anyway. this table is mostly there because of the common use
of things like < > &   © etc. - since the markup is
html-ish. i added the rest (that i could find) for completeness.

> Regards,
> Tilman
> 
> -- 
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/evas tilman

2007-07-20 Thread Gustavo Sverzut Barbieri
On 5/17/07, Enlightenment CVS <[EMAIL PROTECTED]> wrote:
> Enlightenment CVS committal
>
> Author  : tilman
> Project : e17
> Module  : libs/evas
>
> Dir : e17/libs/evas/src/lib/canvas
>
>
> Modified Files:
> evas_object_textblock.c
>
>
> Log Message:
> rework how the html entity escape arrays are stored. this saves a few hundred 
> bytes on the data section of the library, kills off ~300 locations, and makes 
> the so 77K smaller.

damn, this broke it, & and friends don't work anymore... just
noticed that on my app, but you can see it from expedite too
"textblock basic", it should read "And escaping < and > as well as &
[...]"

I'll try to fix, but anyone with clue could also check it?

-- 
Gustavo Sverzut Barbieri
--
Jabber: [EMAIL PROTECTED]
   MSN: [EMAIL PROTECTED]
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E CVS: libs/evas tilman

2007-07-20 Thread Gustavo Sverzut Barbieri
On 7/20/07, Gustavo Sverzut Barbieri <[EMAIL PROTECTED]> wrote:
> On 5/17/07, Enlightenment CVS <[EMAIL PROTECTED]> wrote:
> > Enlightenment CVS committal
> >
> > Author  : tilman
> > Project : e17
> > Module  : libs/evas
> >
> > Dir : e17/libs/evas/src/lib/canvas
> >
> >
> > Modified Files:
> > evas_object_textblock.c
> >
> >
> > Log Message:
> > rework how the html entity escape arrays are stored. this saves a few 
> > hundred bytes on the data section of the library, kills off ~300 locations, 
> > and makes the so 77K smaller.
>
> damn, this broke it, & and friends don't work anymore... just
> noticed that on my app, but you can see it from expedite too
> "textblock basic", it should read "And escaping < and > as well as &
> [...]"
>
> I'll try to fix, but anyone with clue could also check it?

ok, offsets were wrong... btw, using offsets were a braindead idea,
you just need to walk the string, no need for auxiliary.

now I need to understand better the _get() code in order to vanish
with offsets altogether... hints?

-- 
Gustavo Sverzut Barbieri
--
Jabber: [EMAIL PROTECTED]
   MSN: [EMAIL PROTECTED]
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel