cogl-pixel-buffer: add a pixel buffer object class
authorDamien Lespiau <damien.lespiau@intel.com>
Sun, 10 Jan 2010 18:04:29 +0000 (18:04 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 8 Feb 2010 17:14:49 +0000 (17:14 +0000)
commitabbb668163537598790cb3eca564ea19b1e010ad
treeeb28b43af97310aa0df60ff6e3fcf220ced1e551
parentb5e9710cdf5795f532fe46b9dfcc704a07d99ac9
cogl-pixel-buffer: add a pixel buffer object class

This subclass of CoglBuffer aims at wrapping PBOs or other system
surfaces like DRM buffer objects. Two constructors are available:

cogl_pixel_buffer_new() with a size when you only care about the size of
the buffer (such a buffer can be used to store several texture data such
as the three planes of a I420 frame).

cogl_pixel_buffer_new_full() is more a 1:1 mapping between the data and
an underlying surface, with the possibility of having access to a low
level memory buffer that may have a stride.
clutter/cogl/cogl/Makefile.am
clutter/cogl/cogl/cogl-pixel-buffer-private.h [new file with mode: 0644]
clutter/cogl/cogl/cogl-pixel-buffer.c [new file with mode: 0644]
clutter/cogl/cogl/cogl-pixel-buffer.h [new file with mode: 0644]
clutter/cogl/cogl/cogl.h
doc/reference/cogl/cogl-sections.txt