#include <vetFrameT.h>
Inheritance diagram for vetFrameT< T >:

Public Member Functions | |
| vetFrameT () | |
| Default constructor, initialize height and width to 0. | |
| vetFrameT (unsigned int w, unsigned int h) | |
| vetFrameT (unsigned int w, unsigned int h, vetFrame::VETFRAME_PROFILE prof, vetFrame::VETFRAME_CHANNEL_TYPE dataTy=vetFrame::VETFRAME_CT_PLANAR) | |
| Create an image with the given dimensions, allocates empty data. | |
| vetFrameT (vetFrameT &img) | |
| Copy Constructor, create an image from another image, copying memory. | |
| ~vetFrameT () | |
| Destructor currenly clear pixel data (array). | |
| bool | isBuiltInSupportedProfile (VETFRAME_PROFILE pr) |
| unsigned int | getWidth () const |
| read current image's width. | |
| unsigned int | getWidth () |
| Read current image's width. | |
| unsigned int | getHeight () const |
| read current image's height. | |
| unsigned int | getHeight () |
| Read current image's height. | |
| void * | dump_buffer () |
| Read current buffer address. | |
| VETRESULT | reAllocCanvas (unsigned int w, unsigned int h) |
| VETRESULT | extractBrightness (unsigned char *buffer, unsigned int *size=NULL) |
| unsigned int | getBpp () |
| Get current format's BPP (Bits per Pixel). | |
| unsigned int | getBufferSize () |
| Read current buffer size (for example the real size of array). | |
| VETRESULT | setBlack () |
| Initialize image (with current canvas) to black (min brightness). | |
| VETRESULT | setWhite () |
| Initialize image (with current canvas) to white (max brightness). | |
| VETRESULT | setPixel (unsigned int x, unsigned int y, T p) |
| Set pixel (x, y) to the specified value. | |
| VETRESULT | getPixel (unsigned int x, unsigned int y, T &p) |
| Get pixel (x, y) value and store it to p. | |
| vetFrameT & | operator= (vetFrameT &img) |
| Copies all pixel data from img. Throws an exception if images are of different size. | |
| vetFrameT & | operator+= (vetFrameT &img) |
| Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size. | |
| VETFRAME_PROFILE | getProfile () |
| VETFRAME_CHANNEL_TYPE | getChannelType () |
| | |
| int | getFOURCC () |
| Get FOURCC code of current data format, visit http://www.fourcc.org for all codes. | |
Data Fields | |
| unsigned int | width |
| unsigned int | height |
| bool | autoFreeData |
| VETFRAME_PROFILE | profile |
| VETFRAME_CHANNEL_TYPE | dataType |
| T * | data |
Definition at line 45 of file vetFrameT.h.
|
||||||||||||||||||||||||
|
Create an image with the given dimensions, allocates empty data.
Definition at line 103 of file vetFrameT.h. |
|
||||||||||
|
Copy Constructor, create an image from another image, copying memory.
Definition at line 117 of file vetFrameT.h. |
|
|||||||||
|
Read current buffer address.
Implements vetFrame. Definition at line 177 of file vetFrameT.h. |
|
|||||||||
|
Get current format's BPP (Bits per Pixel).
Implements vetFrame. Definition at line 224 of file vetFrameT.h. |
|
|||||||||
|
Read current buffer size (for example the real size of array).
Implements vetFrame. Definition at line 245 of file vetFrameT.h. Referenced by vetFilterNoiseChannel::generateNoise(), vetFrameT< unsigned char >::operator=(), vetFrameT< unsigned char >::setBlack(), vetFrameT< unsigned char >::setWhite(), and vetFrameT< unsigned char >::vetFrameT(). |
|
|||||||||
|
Implements vetFrame. Definition at line 446 of file vetFrameT.h. |
|
|||||||||
|
Get FOURCC code of current data format, visit http://www.fourcc.org for all codes.
Implements vetFrame. Definition at line 449 of file vetFrameT.h. |
|
|||||||||
|
Read current image's height.
Reimplemented from vetFrame. Definition at line 174 of file vetFrameT.h. |
|
|||||||||
|
read current image's height.
Reimplemented from vetFrame. Definition at line 173 of file vetFrameT.h. Referenced by vetCodec_IMG::load(), and vetCodec_BMP::load(). |
|
||||||||||||||||||||
|
Get pixel (x, y) value and store it to p.
Definition at line 363 of file vetFrameT.h. |
|
|||||||||
|
Implements vetFrame. Definition at line 444 of file vetFrameT.h. |
|
|||||||||
|
Read current image's width.
Reimplemented from vetFrame. Definition at line 166 of file vetFrameT.h. |
|
|||||||||
|
read current image's width.
Reimplemented from vetFrame. Definition at line 165 of file vetFrameT.h. Referenced by vetCodec_IMG::load(), and vetCodec_BMP::load(). |
|
||||||||||
|
Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size.
Definition at line 419 of file vetFrameT.h. |
|
||||||||||
|
Copies all pixel data from img. Throws an exception if images are of different size.
Definition at line 389 of file vetFrameT.h. |
|
||||||||||||||||||||
|
Set pixel (x, y) to the specified value.
Definition at line 335 of file vetFrameT.h. |
1.4.4