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

This is useful when the frame actually came from a vil_image
Definition at line 118 of file vidl2_frame.h.
Public Member Functions | |
| vidl2_memory_chunk_frame () | |
| Constructor. | |
| vidl2_memory_chunk_frame (unsigned ni, unsigned nj, vidl2_pixel_format fmt, const vil_memory_chunk_sptr &memory) | |
| Constructor - from a vil_memory_chunk_sptr. | |
| vidl2_memory_chunk_frame (const vil_image_view_base &image, vidl2_pixel_format fmt=VIDL2_PIXEL_FORMAT_UNKNOWN) | |
| Constructor - from a vil_image_view. | |
| const vil_memory_chunk_sptr & | memory_chunk () const |
| Return the memory chunk. | |
| virtual | ~vidl2_memory_chunk_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 | |
| vil_memory_chunk_sptr | memory_ |
|
|
Constructor.
Definition at line 122 of file vidl2_frame.h. |
|
||||||||||||||||||||
|
Constructor - from a vil_memory_chunk_sptr.
Definition at line 125 of file vidl2_frame.h. |
|
||||||||||||
|
Constructor - from a vil_image_view. return an invalid frame if the image format can not be wrapped
Definition at line 34 of file vidl2_frame.cxx. |
|
|
Destructor.
Definition at line 140 of file vidl2_frame.h. |
|
|
Implements vidl2_frame. Definition at line 147 of file vidl2_frame.h. |
|
|
Return a pointer to the first element of data.
Implements vidl2_frame. Definition at line 146 of file vidl2_frame.h. |
|
|
Make the buffer invalid (data()==0 and size()==0).
Reimplemented from vidl2_frame. Definition at line 143 of file vidl2_frame.h. |
|
|
Return the memory chunk. used in recreating a vil_image_view Definition at line 137 of file vidl2_frame.h. |
|
|
Width.
Definition at line 44 of file vidl2_frame.h. |
|
|
Height.
Definition at line 47 of file vidl2_frame.h. |
|
|
Return the pixel format.
Definition at line 50 of file vidl2_frame.h. |
|
|
Increment reference count.
Definition at line 73 of file vidl2_frame.h. |
|
|
Number of objects referring to this data.
Definition at line 79 of file vidl2_frame.h. |
|
|
The size of the buffer in bytes.
Implements vidl2_frame. Definition at line 150 of file vidl2_frame.h. |
|
|
Decrement reference count.
Definition at line 19 of file vidl2_frame.cxx. |
|
|
frame pixel format.
Definition at line 66 of file vidl2_frame.h. |
|
|
Definition at line 153 of file vidl2_frame.h. |
|
|
frame width.
Definition at line 62 of file vidl2_frame.h. |
|
|
frame height.
Definition at line 64 of file vidl2_frame.h. |
1.4.4