Gnash
0.8.10
|
Image buffer wrapper. More...
#include <VideoConverter.h>
Public Types | |
typedef boost::uint32_t | Type4CC |
typedef void(* | FreeFunc )(void *) |
Public Member Functions | |
ImgBuf (Type4CC t, boost::uint8_t *dataptr, size_t datasize, size_t w, size_t h) | |
~ImgBuf () | |
Static Public Member Functions | |
static void | array_delete (void *voidptr) |
static void | noop (void *) |
Public Attributes | |
Type4CC | type |
boost::uint8_t * | data |
size_t | size |
size_t | width |
size_t | height |
boost::array< size_t, 4 > | stride |
FreeFunc | dealloc |
Image buffer wrapper.
Unfortunately, the GnashImage buffer class currently insists on owning its buffer. Hacking around this results in things like gnashGstBuffer, which is less than desirable. Furthermore, it only supports a handful of pixel and image formats. Something more elaborate is needed to support the various YUV formats and different bit depths for RGB. But in the mean time: here's a simple image class for use in VideoConverter, at least until we merge the image classes.
typedef void(* gnash::media::ImgBuf::FreeFunc)(void *) |
typedef boost::uint32_t gnash::media::ImgBuf::Type4CC |
gnash::media::ImgBuf::ImgBuf | ( | Type4CC | t, |
boost::uint8_t * | dataptr, | ||
size_t | datasize, | ||
size_t | w, | ||
size_t | h | ||
) | [inline] |
static void gnash::media::ImgBuf::array_delete | ( | void * | voidptr | ) | [inline, static] |
static void gnash::media::ImgBuf::noop | ( | void * | ) | [inline, static] |
boost::uint8_t* gnash::media::ImgBuf::data |
Referenced by ~ImgBuf().
size_t gnash::media::ImgBuf::height |
size_t gnash::media::ImgBuf::size |
Referenced by gnash::media::gst::VideoConverterGst::convert().
boost::array<size_t, 4> gnash::media::ImgBuf::stride |
Referenced by gnash::media::ffmpeg::VideoConverterFfmpeg::convert().
size_t gnash::media::ImgBuf::width |