[clutter] clutter_texture_set_from_rgb_data

2009-07-06 Thread Saul Lethbridge
Hi All, I'm trying to understand what values I need to enter for the function clutter_texture_set_from_rgb_data, see below: rowstride : Distance in bytes between row starts. bpp : bytes per pixel (Currently only 3 and 4 supported, depending on has_alpha) Thanks

Re: [clutter] clutter_texture_set_from_rgb_data

2009-07-06 Thread Saul Lethbridge
Thanks for that. I'm assuming my RGB data is 24bit, I'm using standard SVG files. On Tue, Jul 7, 2009 at 2:44 AM, Uday Verma uday.ka...@gmail.com wrote: I think it would depend on what kind of RGB (24-bit, 3 bytes per pixel) data you have, whether it has alpha channel along with the RGB

Re: [clutter] clutter_texture_set_from_rgb_data

2008-07-02 Thread Matthew Allum
Dont you mean 2BPP - i.e 16bit ? == Matthew On Wed, 2008-07-02 at 14:28 +0800, HASWANI HARISH-VCKR47 wrote: Hi All, While going through clutter_texture_set_from_rgb_data API, I found that currently clutter support only 4 BPP. will clutter 0.8 support 3BPP ( implies support for

RE: [clutter] clutter_texture_set_from_rgb_data

2008-07-02 Thread Matthew Allum
, MIEL, Bangalore, INDIA Ph: 91-80-26014164 -Original Message- From: Matthew Allum [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2008 2:29 PM To: HASWANI HARISH-VCKR47 Cc: clutter@o-hand.com Subject: Re: [clutter] clutter_texture_set_from_rgb_data Dont you mean 2BPP - i.e 16bit

Re: [clutter] clutter_texture_set_from_rgb_data

2008-07-02 Thread Neil Roberts
On Wed, 2008-07-02 at 14:28 +0800, HASWANI HARISH-VCKR47 wrote: While going through clutter_texture_set_from_rgb_data API, I found that currently clutter support only 4 BPP. will clutter 0.8 support 3BPP Clutter happily supports 3 bytes per pixel if by that you mean 1 byte for each of the

Re: [clutter] clutter_texture_set_from_rgb_data

2008-07-02 Thread Chris Lord
On Wed, 2008-07-02 at 10:13 +0100, Neil Roberts wrote: On Wed, 2008-07-02 at 14:28 +0800, HASWANI HARISH-VCKR47 wrote: While going through clutter_texture_set_from_rgb_data API, I found that currently clutter support only 4 BPP. will clutter 0.8 support 3BPP Clutter happily

Re: [clutter] clutter_texture_set_from_rgb_data

2008-07-02 Thread Neil Roberts
On Wed, 2008-07-02 at 10:59 +0100, Robert Bragg wrote: One option is to use cogl_texture_new_from_data which supports more formats and also lets you control the internal format. I was just about to reply saying the same thing with this little example: cogl_tex = cogl_texture_new_from_data

Re: [clutter] clutter_texture_set_from_rgb_data

2008-07-02 Thread Jason Tackaberry
[Resending to list again; sigh, clutter is the only list I use which doesn't rewrite Reply-To :)] On Wed, 2008-07-02 at 10:13 +0100, Neil Roberts wrote: Clutter happily supports 3 bytes per pixel if by that you mean 1 byte for each of the R, G and B components and no alpha channel. You just

Re: [clutter] clutter_texture_set_from_rgb_data

2008-07-02 Thread Neil Roberts
On Wed, 2008-07-02 at 08:28 -0400, Jason Tackaberry wrote: [Resending to list again; sigh, clutter is the only list I use which doesn't rewrite Reply-To :)] Can anyone fix this? I've fallen for that a few times too :( Is the 3bpp support first converted to 4bpp in software before uploading