Gnash
0.8.11dev
|
Image buffer wrapper. More...
#include <VideoConverter.h>
Public Types | |
typedef std::uint32_t | Type4CC |
typedef void(* | FreeFunc) (void *) |
Public Member Functions | |
ImgBuf (Type4CC t, std::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 |
std::uint8_t * | data |
size_t | size |
size_t | width |
size_t | height |
std::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 std::uint32_t gnash::media::ImgBuf::Type4CC |
|
inline |
|
inlinestatic |
|
inlinestatic |
std::uint8_t* gnash::media::ImgBuf::data |
size_t gnash::media::ImgBuf::height |
size_t gnash::media::ImgBuf::size |
Referenced by gnash::media::gst::VideoConverterGst::convert().
std::array<size_t, 4> gnash::media::ImgBuf::stride |
Referenced by gnash::media::ffmpeg::VideoConverterFfmpeg::convert().
Type4CC gnash::media::ImgBuf::type |
size_t gnash::media::ImgBuf::width |