#include <vidl2_frame.h>
Inheritance diagram for vidl2_shared_frame:

Definition at line 86 of file vidl2_frame.h.
Public Member Functions | |
| vidl2_shared_frame () | |
| Constructor. | |
| vidl2_shared_frame (void *buffer, unsigned ni, unsigned nj, vidl2_pixel_format fmt) | |
| Constructor. | |
| virtual | ~vidl2_shared_frame () |
| Destructor. | |
| virtual void | invalidate () |
| Make the buffer invalid (data()==0 and size()==0). | |
| virtual void * | data () |
| Return a pointer to the first element of data. | |
| virtual const void * | data () const |
| virtual unsigned long | size () const |
| The size of the buffer in bytes. | |
| unsigned | ni () const |
| Width. | |
| unsigned | nj () const |
| Height. | |
| vidl2_pixel_format | pixel_format () const |
| Return the pixel format. | |
| void | ref () |
| Increment reference count. | |
| void | unref () |
| Decrement reference count. | |
| int | ref_count () const |
| Number of objects referring to this data. | |
Protected Attributes | |
| unsigned | ni_ |
| frame width. | |
| unsigned | nj_ |
| frame height. | |
| vidl2_pixel_format | format_ |
| frame pixel format. | |
Private Attributes | |
| void * | buffer_ |
| vidl2_shared_frame::vidl2_shared_frame | ( | ) | [inline] |
| vidl2_shared_frame::vidl2_shared_frame | ( | void * | buffer, | |
| unsigned | ni, | |||
| unsigned | nj, | |||
| vidl2_pixel_format | fmt | |||
| ) | [inline] |
| virtual vidl2_shared_frame::~vidl2_shared_frame | ( | ) | [inline, virtual] |
| virtual void vidl2_shared_frame::invalidate | ( | ) | [inline, virtual] |
Make the buffer invalid (data()==0 and size()==0).
Reimplemented from vidl2_frame.
Definition at line 101 of file vidl2_frame.h.
| virtual void* vidl2_shared_frame::data | ( | ) | [inline, virtual] |
Return a pointer to the first element of data.
Implements vidl2_frame.
Definition at line 104 of file vidl2_frame.h.
| virtual const void* vidl2_shared_frame::data | ( | ) | const [inline, virtual] |
| virtual unsigned long vidl2_shared_frame::size | ( | ) | const [inline, virtual] |
The size of the buffer in bytes.
Implements vidl2_frame.
Definition at line 108 of file vidl2_frame.h.
| unsigned vidl2_frame::ni | ( | ) | const [inline, inherited] |
| unsigned vidl2_frame::nj | ( | ) | const [inline, inherited] |
| vidl2_pixel_format vidl2_frame::pixel_format | ( | ) | const [inline, inherited] |
| void vidl2_frame::ref | ( | ) | [inline, inherited] |
| void vidl2_frame::unref | ( | ) | [inherited] |
| int vidl2_frame::ref_count | ( | ) | const [inline, inherited] |
void* vidl2_shared_frame::buffer_ [private] |
Definition at line 111 of file vidl2_frame.h.
unsigned vidl2_frame::ni_ [protected, inherited] |
unsigned vidl2_frame::nj_ [protected, inherited] |
vidl2_pixel_format vidl2_frame::format_ [protected, inherited] |
1.5.1