Re: [gtk-list] Display video under GTK+



Hi,

Daniel Ding wrote:
> 
> Hi,
> 
> I am trying to display video under GTK+. I am using the function:
> 
>     gdk_draw_rgb_image (darea->window,
>         darea->style->fg_gc[GTK_STATE_NORMAL],
>         X_START, Y_START, COL_MAX, ROW_MAX,
>         GDK_RGB_DITHER_MAX, pBufferRGB, COL_MAX * 3);
>    // GDK_RGB_DITHER_NORMAL, GDK_RGB_DITHER_MAX
> 
> The RGB data in the buffer is 24 bits. The video is blurred, and color
> disappears.

	Well, i use gdk_draw_rgb_image for the same thing (displaying video)
and works fine for me. I use darea->style->white_gc, however.
Hope this helps,

Iñaki



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]