Re: [E-devel] Enlightenment CVS committal

2006-10-02 Thread The Rasterman
On Mon, 2 Oct 2006 05:47:01 GMT [EMAIL PROTECTED] [EMAIL PROTECTED] babbled:

 
  Author  : raster
  Project : e17
  Module  : libs/evas
  
  Dir : e17/libs/evas/src/modules/loaders/eet
 
  Modified Files:  evas_image_load_eet.c 
  
  Log Message:
  
  fix eet load of premul images - need to check they are not bad :)
  
 
   Ummm... How about adding a 'premul' flag to eet images, which
 would be set/read accordingly...

i could... but i would need to break eet api... and i'm just as happy to break
format - premul encoding can be more efficient compression-wise by nulling out
transparent pixels. :)

jose.
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Enlightenment CVS committal

2006-10-02 Thread [EMAIL PROTECTED]

  Ummm... How about adding a 'premul' flag to eet images, which
  would be set/read accordingly...
 
 i could... but i would need to break eet api... and i'm just as
 happy to break format - premul encoding can be more efficient
 compression-wise by nulling out transparent pixels.  :) 
 

Yeah..  And it would be silly to load, premul, then unpremul
to save-to-eet, and then load-from-eet and premul again! So you made
the right decision there.

PS. 
I looked into the grad problem you mention on irc...
No problem with grads themselves, just a couple of changes that are
needed now in edje and e17 due to the new evas changes.

Two files you need to make changes to.

In edje, in the file edje_calc.c, line 1303 should read:

evas_object_gradient_fill_angle_set(ep-object, p3.fill.angle);

also, line 1329 should now read:

evas_object_gradient_color_stop_add(ep-object,
sc-r, sc-g, sc-b, 255, sc-d);
evas_object_gradient_alpha_stop_add(ep-object, sc-a, sc-d);


Then in e17, in the file e_spectrum.c, line 304 should
read:
data[(i * sp-iw) + j] =
  (sp-cv-a  24) |
  (((r * sp-cv-a) / 255)  16) |
  (((g * sp-cv-a) / 255)  8) |
  ((b * sp-cv-a) / 255);

Ok, that will take care of your dialog previews and such...
*BUT* for some reason, when you hit apply, it fails to do so.
No idea why -- that's some obscure e17 thing I know nothing about.

If you want I can send you the diffs to edje and e17,
though I'm sure Brian intends to rewrite the edje grads a bit.
But again, I have no idea why nothing gets 'applied' to the
actual bg.

   jose.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Enlightenment CVS committal

2006-10-02 Thread The Rasterman
On Mon, 2 Oct 2006 12:40:33 GMT [EMAIL PROTECTED] [EMAIL PROTECTED] babbled:

 
 Ummm... How about adding a 'premul' flag to eet images, which
   would be set/read accordingly...
  
  i could... but i would need to break eet api... and i'm just as
  happy to break format - premul encoding can be more efficient
  compression-wise by nulling out transparent pixels.  :) 
  
 
   Yeah..  And it would be silly to load, premul, then unpremul
 to save-to-eet, and then load-from-eet and premul again! So you made
 the right decision there.
 
 PS. 
   I looked into the grad problem you mention on irc...
 No problem with grads themselves, just a couple of changes that are
 needed now in edje and e17 due to the new evas changes.
 
   Two files you need to make changes to.
 
 In edje, in the file edje_calc.c, line 1303 should read:
 
 evas_object_gradient_fill_angle_set(ep-object, p3.fill.angle);

ok- fill angle it is! :)

 also, line 1329 should now read:
 
 evas_object_gradient_color_stop_add(ep-object,
   sc-r, sc-g, sc-b, 255, sc-d);
 evas_object_gradient_alpha_stop_add(ep-object, sc-a, sc-d);

hmm - color stop can't add the alpha directly as-is?

 
   Then in e17, in the file e_spectrum.c, line 304 should
 read:
   data[(i * sp-iw) + j] =
 (sp-cv-a  24) |
 (((r * sp-cv-a) / 255)  16) |
 (((g * sp-cv-a) / 255)  8) |
 ((b * sp-cv-a) / 255);

oh that was silly! of course! fixed.

   Ok, that will take care of your dialog previews and such...
 *BUT* for some reason, when you hit apply, it fails to do so.
 No idea why -- that's some obscure e17 thing I know nothing about.
 
   If you want I can send you the diffs to edje and e17,
 though I'm sure Brian intends to rewrite the edje grads a bit.
   But again, I have no idea why nothing gets 'applied' to the
 actual bg.
 
jose.
 
 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Enlightenment CVS committal

2006-10-02 Thread [EMAIL PROTECTED]

  also, line 1329 should now read:
  
  evas_object_gradient_color_stop_add(ep-object,
  sc-r, sc-g, sc-b, 255, sc-d);
  evas_object_gradient_alpha_stop_add(ep-object, sc-a, sc-d);
 
 hmm - color stop can't add the alpha directly as-is?

Yes, but only in this particular case because the alphas
are then 255. But since edje assumes the inputs are non-premul,
in general it would generate a premul spectrum with non-premul
colors :(
The evas_object_gradient_color_stop_add function expects
premul colors and generates a premul spectrum.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] imlib2 1.3.0 broken?

2006-10-02 Thread Mathias Homann
Hi,

when i build qcomicbook against imlib2 1.2.x it works just fine; when 
i build against 1.3.0 i get the following error messages when running 
it:
* Imlib2 Developer Warning * :
This program is calling the Imlib call:
imlib_image_get_height();
With the parameter:
image
being NULL. Please fix your program.


but imlib_image_get_height is defined as
int imlib_image_get_height(void) ???

and the code in question properly sets imlib_context_set_image before 
calling imlib_image_get_height() or imlib_image_get_width(), and in 
fact it works with 1.2.1 even if the binary was built against 1.3.0. 
So, where do I fix this?

bye,
MH

-- 
gpg key fingerprint: 5F64 4C92 9B77 DE37 D184  C5F9 B013 44E7 27BD 
763C

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imlib2 1.3.0 broken?

2006-10-02 Thread Kim Woelders
Mathias Homann wrote:
 Hi,
 
 when i build qcomicbook against imlib2 1.2.x it works just fine; when 
 i build against 1.3.0 i get the following error messages when running 
 it:
 * Imlib2 Developer Warning * :
 This program is calling the Imlib call:
 imlib_image_get_height();
 With the parameter:
 image
 being NULL. Please fix your program.
 
 
 but imlib_image_get_height is defined as
 int imlib_image_get_height(void) ???
 
 and the code in question properly sets imlib_context_set_image before 
 calling imlib_image_get_height() or imlib_image_get_width(), and in 
 fact it works with 1.2.1 even if the binary was built against 1.3.0. 
 So, where do I fix this?
 
I just built qcomicbook-0.3.3 with imlib2-1.3.0. Seems to work fine.
Any chance your imlib2-1.3.0 installation is incomplete/broken?

/Kim


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] imlib2 1.3.0 broken?

2006-10-02 Thread The Rasterman
On Mon, 02 Oct 2006 21:33:17 +0200 Kim Woelders [EMAIL PROTECTED] babbled:

 Mathias Homann wrote:
  Hi,
  
  when i build qcomicbook against imlib2 1.2.x it works just fine; when 
  i build against 1.3.0 i get the following error messages when running 
  it:
  * Imlib2 Developer Warning * :
  This program is calling the Imlib call:
  imlib_image_get_height();
  With the parameter:
  image
  being NULL. Please fix your program.
  
  
  but imlib_image_get_height is defined as
  int imlib_image_get_height(void) ???
  
  and the code in question properly sets imlib_context_set_image before 
  calling imlib_image_get_height() or imlib_image_get_width(), and in 
  fact it works with 1.2.1 even if the binary was built against 1.3.0. 
  So, where do I fix this?
  
 I just built qcomicbook-0.3.3 with imlib2-1.3.0. Seems to work fine.
 Any chance your imlib2-1.3.0 installation is incomplete/broken?

yup- eg. you load an image and the load FAILS (returns NULL) because the loader
for the image format u are trying to load didn't build due to missing headers
etc. etc. for things like libtiff/libpng/libjpeg etc.? so it's more a matter of
lack of checking in the code using imlib2 (checking if the load failed and
complaining appropriately)

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Enlightenment CVS committal

2006-10-02 Thread Brian Mattern
On Mon, Oct 02, 2006 at 12:40:33PM +, [EMAIL PROTECTED] wrote:
   Ok, that will take care of your dialog previews and such...
 *BUT* for some reason, when you hit apply, it fails to do so.
 No idea why -- that's some obscure e17 thing I know nothing about.
 
   If you want I can send you the diffs to edje and e17,
 though I'm sure Brian intends to rewrite the edje grads a bit.
   But again, I have no idea why nothing gets 'applied' to the
 actual bg.

I'll look at the bg dialog within the next couple of days (pretty busy
with work atm. unfortunately). And I definitely plan on cleaning up the
edje grads a bit. Just gotta find some time again. :)

Brian


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel