Simple video playing with SDL
Someone can point me some code that does video playback using *only* GTK? If the code is not available also some directions will be enough: - What kind of widget to use? (GtkDrawingArea, GtkImage...) - How to handle double buffering? (perform a queue_draw after each frame update?) - How to blit efficiently my data (what pixel format is best suited, I have to use my yuv - rgb conversion code? RGB24? ARGB? RGBA?) - It's SDL blit architecture optimized enough for video playing? I don't need big performance, I've a small 352x288 10fps stream, my actual solution is using SDL on a GtkDrawingArea with the SDL_WINDOWID hack. It works both on win32 and linux, but I'd like a cleaner architecture -- Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: [SPAM] Simple video playing with SDL [- WITHOUT SDL]
Gabriele Greco wrote: Just correcting the title of my previous post, obviously I intended WITHOUT SDL or any external library (except the one I use to decode the stream :) ). Someone can point me some code that does video playback using *only* GTK? If the code is not available also some directions will be enough: - What kind of widget to use? (GtkDrawingArea, GtkImage...) - How to handle double buffering? (perform a queue_draw after each frame update?) - How to blit efficiently my data (what pixel format is best suited, I have to use my yuv - rgb conversion code? RGB24? ARGB? RGBA?) - It's SDL blit architecture optimized enough for video playing? I don't need big performance, I've a small 352x288 10fps stream, my actual solution is using SDL on a GtkDrawingArea with the SDL_WINDOWID hack. It works both on win32 and linux, but I'd like a cleaner architecture Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: [SPAM] Simple video playing with SDL [- WITHOUT SDL]
Hi, I don't know how to go about it, but usually video playing is done using 'overlay': the area in the app is painted bright green, or pink (some particular color) and the graphics card overlays the video onto any area that color inside the coordinates specified by your program. I think that would be the best , but I don't know how to instruct the video card this way.. maybe the OpenGL Widget does some of this? Otherwise, I made a small program that displays video from a webcam on a network, and It simply uses a Drawing area and blits Pixbufs onto it (probably really bad performance, but it works ok for my use) Jonathan On 7/6/07, Gabriele Greco [EMAIL PROTECTED] wrote: Gabriele Greco wrote: Just correcting the title of my previous post, obviously I intended WITHOUT SDL or any external library (except the one I use to decode the stream :) ). Someone can point me some code that does video playback using *only* GTK? If the code is not available also some directions will be enough: - What kind of widget to use? (GtkDrawingArea, GtkImage...) - How to handle double buffering? (perform a queue_draw after each frame update?) - How to blit efficiently my data (what pixel format is best suited, I have to use my yuv - rgb conversion code? RGB24? ARGB? RGBA?) - It's SDL blit architecture optimized enough for video playing? I don't need big performance, I've a small 352x288 10fps stream, my actual solution is using SDL on a GtkDrawingArea with the SDL_WINDOWID hack. It works both on win32 and linux, but I'd like a cleaner architecture Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Morpheus linux, c'est une question de VI ou de MORE ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list