Re: write a media player using gtk+

2007-12-02 Thread Binary Chen
On Sun, 2007-12-02 at 09:45 +, [EMAIL PROTECTED] wrote: > On Dec 2, 2007 3:51 AM, Binary Chen <[EMAIL PROTECTED]> wrote: > > Do you know how you get the video memory address of the gdk drawable? I > > want to use memcpy to do the copying, because the gdk-draw-rgb-image > > can't be accessed dur

Re: write a media player using gtk+

2007-12-02 Thread jcupitt
On Dec 2, 2007 4:10 AM, Binary Chen <[EMAIL PROTECTED]> wrote: > My decoded image is RGB565 format, this function is RGB32 format, > unfortunately my hardware also provides RGB565 capability... this means > the system need to do a RGB565 -> RGB32 -> RGB565 transalation... quite > unefficient. > > I

Re: write a media player using gtk+

2007-12-02 Thread jcupitt
On Dec 2, 2007 3:51 AM, Binary Chen <[EMAIL PROTECTED]> wrote: > Do you know how you get the video memory address of the gdk drawable? I > want to use memcpy to do the copying, because the gdk-draw-rgb-image > can't be accessed during two different threads. X doesn't let you do this, because it ha

Re: write a media player using gtk+

2007-12-01 Thread Binary Chen
On Fri, 2007-11-30 at 11:31 +, [EMAIL PROTECTED] wrote: > On Nov 30, 2007 2:45 AM, Bin Chen <[EMAIL PROTECTED]> wrote: > > image, but I am not familiar with XLib, so I want to know if it is > > possible to use pure GTK+ API to achieve this? What about the > > performance comparing to use XLib d

Re: write a media player using gtk+

2007-12-01 Thread Binary Chen
On Fri, 2007-11-30 at 11:31 +, [EMAIL PROTECTED] wrote: > On Nov 30, 2007 2:45 AM, Bin Chen <[EMAIL PROTECTED]> wrote: > > image, but I am not familiar with XLib, so I want to know if it is > > possible to use pure GTK+ API to achieve this? What about the > > performance comparing to use XLib d

Re: write a media player using gtk+

2007-11-30 Thread Bin Chen
On 11/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Nov 30, 2007 2:45 AM, Bin Chen <[EMAIL PROTECTED]> wrote: > > image, but I am not familiar with XLib, so I want to know if it is > > possible to use pure GTK+ API to achieve this? What about the > > performance comparing to use XLib dir

Re: write a media player using gtk+

2007-11-30 Thread jcupitt
On Nov 30, 2007 2:45 AM, Bin Chen <[EMAIL PROTECTED]> wrote: > image, but I am not familiar with XLib, so I want to know if it is > possible to use pure GTK+ API to achieve this? What about the > performance comparing to use XLib directly? You can use gdk_draw_rgb_image() to paint an RGB array to

Re: write a media player using gtk+

2007-11-30 Thread Kenneth Østby
Hi, On Nov 30, 2007 3:45 AM, Bin Chen <[EMAIL PROTECTED]> wrote: > I want to write a media(video) player using gtk+, I take a look at > several existing project, they all use XWindow API to display decoded > image. Not that I am by any means any expert on media, but wouldn't gstreamer solve a l

write a media player using gtk+

2007-11-30 Thread Bin Chen
Hi, I want to write a media(video) player using gtk+, I take a look at several existing project, they all use XWindow API to display decoded image, but I am not familiar with XLib, so I want to know if it is possible to use pure GTK+ API to achieve this? What about the performance comparing to use