Re: problem displaying rgb images on window
- From: "sachin kamat" <me erudite gmail com>
- To: Anna <christiana hipointcoffee com>, gtk-list gnome org
- Subject: Re: problem displaying rgb images on window
- Date: Wed, 26 Jul 2006 10:12:50 +0530
fp is a file pointer, file contains the mp4 data.
Its a part of the pseudo code..u can even consider while(1) instead..
On 7/26/06, Anna <christiana hipointcoffee com> wrote:
On Wed, Jul 26, 2006 at 09:35:25AM +0530, sachin kamat wrote:
...
> while(!feof(fp))
> {
> decode(); //decodes one frame of mp4 data to yuv format
> convert_yuv_to_rgb(); //converts one frame of decoded yuv data to rgb format
>
> /* Iam using the following code to render the rgb data on display window */
>
> pixbuf = gdk_pixbuf_new_from_data(rgb_buffer, 0, 0, 8, width, height, width, NULL, NULL);
>
> gtk_image_set_from_pixbuf(image_display, pixbuf);
>
> gtk_widget_show_all(display_window); //image_display is contained in this window
>
> g_object_unref(pixbuf);
>
/* have you tried adding this? */
while( gtk_events_pending() )
gtk_main_iteration();
> }
sort of hard to tell what's going on because "fp" isn't used. is fp a
global that decode() reads?
- Anna
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]