[cairo] YUV / RGB images

Gerdus van Zyl gerdusvanzyl at gmail.com
Tue Jul 28 04:22:33 PDT 2009


I have used DevIL/OpenIL (openil.sourceforge.net) to good effect
before when trying to convert/read images that are not png.
For an example of working with cairo see http://cairo.pastebin.com/f1fbd86ff

Cairo's image surface buffer is in BGR(a) I seem to recall from past
list messages; see the cairo API docs for
cairo_format_stride_for_width for a small example.

That being said gstreamer is pretty awesome and easy if you have to do
anything with video.

~Gerdus

On Tue, Jul 28, 2009 at 11:38 AM, Chris Wilson<chris at chris-wilson.co.uk> wrote:
> On Tue, 2009-07-28 at 11:11 +0200, Thomas Andrews wrote:
>> Hi,
>>
>> I'm in the process of writing a camera device driver for a Baumer
>> camera. I need advice about what image format(s) best suit Cairo, as the
>> rest of the project will most likely use Cairo to display and manipulate
>> the images from the camera. (Stills and video.)
>
> I just want to check that you are going to be using the right tool for
> the job here... Cairo is primarily for producing vector drawings and
> compositing those on to surfaces. If you need to process a stream of
> binary data and generate stills/videos (perhaps with Cairo overlays)
> then you should first look at GStreamer.
> -ickle
>
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list