Re: how can i scale big pixbuf in realtime?



Le Mon, 6 Oct 2008 16:13:25 +0800,
"chen zhixin" <thexin1985 gmail com> a Ãcrit :

hello
i have to scale the image i recived,NTSC,30f/s,yuyv->gray and 720*480
because i need to do something on image,so i use gray->pixmap,and use
cairo_t to do .
then i must scale the 720*480,
use gdk_pixbuf_scale make cpu to 100%.

is there a better way to do this?
thanks

The better way would be gstreamer.  Now the question is can you receive
the image inside gstreamer?  Then you can build a pipeline with
gstreamer elements.

filesrc would be a start, then I don't know how to manipulate an
image.  There are other elements that may be interesting
like gdkpixbufscale, gdkpixbufsink, and gdkpixbufdec.

Look forward for gstreamer.

My 2 cents,
Mike



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