Re: problem displaying rgb images on window

2006-08-17 Thread Richard Boaz
hi, the gtk_widget_queue_draw_area() creates/forces an expose event on the drawing area in question; this event, then, to be processed by the mainLoop. the while loop, then, forces all outstanding events sitting in the mainLoop event queue to be processed until all events are exahusted; e

Re: problem displaying rgb images on window

2006-08-16 Thread Iago Rubio
On Tue, 2006-08-15 at 13:59 +0200, Daniel Haude wrote: > On Wed, 26 Jul 2006 06:41:38 +0200, Richard Boaz <[EMAIL PROTECTED]> wrote: > > > gtk_widget_queue_draw_area(DrawingArea, 0, 0, > > DrawingArea->allocation.width, DrawingArea->allocation.height); > > while (gtk_events_pending()) > >

Re: problem displaying rgb images on window

2006-08-15 Thread Daniel Haude
On Wed, 26 Jul 2006 06:41:38 +0200, Richard Boaz <[EMAIL PROTECTED]> wrote: > gtk_widget_queue_draw_area(DrawingArea, 0, 0, > DrawingArea->allocation.width, DrawingArea->allocation.height); > while (gtk_events_pending()) > gtk_main_iteration(); > } // end while What is the while loop fo

Re: problem displaying rgb images on window

2006-07-30 Thread Richard Boaz
your problem is that the gtk_widget_show_all() routine is responsible for rendering widgets, not updating the display with the latest version of whatever underlying pixmap is to be rendered to the screen. you should implement a new paradigm for rendering your images, thus: 1) all pixmap rendering

problem displaying rgb images on window

2006-07-25 Thread sachin kamat
Hi, I am writing an application using GTK+ (version 2.10.0) for x86 pc. Iam decoding an mp4 video stream and displaying the RGB data on the window. This is in a loop. while(!feof(fp)) { decode(); //decodes one frame of mp4 data to yuv format convert_yuv_to_rgb(); //converts one frame of decoded