Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::media::gst::gnashGstBuffer Class Reference

#include <VideoDecoderGst.h>

Inheritance diagram for gnash::media::gst::gnashGstBuffer:
gnash::image::ImageRGB gnash::image::GnashImage

Public Member Functions

 gnashGstBuffer (GstBuffer *buf, int width, int height)
 
 ~gnashGstBuffer ()
 
virtual size_t stride () const
 Get the pitch of the image buffer. More...
 
virtual iterator begin ()
 Access the raw data. More...
 
virtual const_iterator begin () const
 Access the raw data. More...
 
- Public Member Functions inherited from gnash::image::ImageRGB
 ImageRGB (size_t width, size_t height)
 Create an empty RGB image with uninitialized data. More...
 
 ImageRGB (iterator data, size_t width, size_t height)
 Create an ImageRGB taking ownership of the data. More...
 
virtual ~ImageRGB ()
 
- Public Member Functions inherited from gnash::image::GnashImage
virtual ~GnashImage ()
 
ImageType type () const
 Return the ImageType of the image. More...
 
ImageLocation location () const
 Return the ImageLocation of the image. More...
 
size_t size () const
 Get the size of the image buffer. More...
 
size_t channels () const
 Get the number of channels. More...
 
size_t width () const
 Get the image's width. More...
 
size_t height () const
 Get the image's width. More...
 
void update (const_iterator data)
 Copy image data from a buffer. More...
 
void update (const GnashImage &from)
 Copy image data from another image data. More...
 
iterator end ()
 An iterator to the end of the data. More...
 
const_iterator end () const
 An iterator to the end of the data. More...
 

Additional Inherited Members

- Public Types inherited from gnash::image::GnashImage
typedef std::uint8_t value_type
 
typedef std::unique_ptr< value_type[]> container_type
 
typedef value_typeiterator
 
typedef const value_typeconst_iterator
 
- Protected Member Functions inherited from gnash::image::GnashImage
 GnashImage (iterator data, size_t width, size_t height, ImageType type, ImageLocation location=GNASH_IMAGE_CPU)
 Construct a GnashImage from a data buffer, taking ownership of the data. More...
 
 GnashImage (size_t width, size_t height, ImageType type, ImageLocation location=GNASH_IMAGE_CPU)
 Construct an empty GnashImage. More...
 
- Protected Attributes inherited from gnash::image::GnashImage
const ImageType _type
 The type of the image: RGBA or RGB. More...
 
const ImageLocation _location
 Image data location (CPU or GPU) More...
 
const size_t _width
 Width of image, in pixels. More...
 
const size_t _height
 Height of image, in pixels. More...
 
container_type _data
 Data if held in this class. More...
 

Constructor & Destructor Documentation

§ gnashGstBuffer()

gnash::media::gst::gnashGstBuffer::gnashGstBuffer ( GstBuffer *  buf,
int  width,
int  height 
)
inline

§ ~gnashGstBuffer()

gnash::media::gst::gnashGstBuffer::~gnashGstBuffer ( )
inline

Member Function Documentation

§ begin() [1/2]

virtual iterator gnash::media::gst::gnashGstBuffer::begin ( )
inlinevirtual

Access the raw data.

Reimplemented from gnash::image::GnashImage.

§ begin() [2/2]

virtual const_iterator gnash::media::gst::gnashGstBuffer::begin ( ) const
inlinevirtual

Access the raw data.

Reimplemented from gnash::image::GnashImage.

§ stride()

virtual size_t gnash::media::gst::gnashGstBuffer::stride ( ) const
inlinevirtual

Get the pitch of the image buffer.

Returns
The rowstride of the buffer in bytes

Reimplemented from gnash::image::GnashImage.

References gnash::image::GnashImage::channels(), and gnash::image::GnashImage::width().


The documentation for this class was generated from the following file: