#include <vetFrameRGBA32.h>
Inheritance diagram for vetFrameRGBA32:

Public Types | |
| enum | ChannelRGBA |
Public Member Functions | |
| vetFrameRGBA32 () | |
| Default constructor, initialize height and width to 0. | |
| vetFrameRGBA32 (unsigned int width, unsigned int height) | |
| Create an image with the given dimensions, allocates empty data. | |
| vetFrameRGBA32 (vetFrameRGBA32 &img) | |
| Copy Constructor, create an image from another image, copying memory. | |
| vetFrameRGBA32 (vetFrameRGB24 &img) | |
| Copy Constructor, create an image from another image, copying memory. | |
| vetFrameRGBA32 (vetFrameRGB96 &img) | |
| Copy Constructor, create an image from another image, copying memory. | |
| ~vetFrameRGBA32 () | |
| Destructor currenly clear pixel data (array). | |
| void * | dump_buffer () |
| Read current buffer address. | |
| unsigned int | getBufferSize () |
| Read current buffer size (for example the real size of array). | |
| VETRESULT | reAllocCanvas (unsigned int w, unsigned int h) |
| unsigned int | getBpp () |
| Get current format's BPP (Bits per Pixel). | |
| VETRESULT | setBlack () |
| Initialize image (with current canvas) to black (min brightness). | |
| VETRESULT | setWhite () |
| Initialize image (with current canvas) to white (max brightness). | |
| VETRESULT | extractBrightness (unsigned char *buffer, unsigned int *size=NULL) |
| vetFrameRGBA32 & | clearWith (unsigned char *bg) |
| Clear all pixel to the specified value. | |
| VETRESULT | setPixel (unsigned int x, unsigned int y, unsigned char *p) |
| Set pixel (x, y) to the specified value. | |
| VETRESULT | getPixel (unsigned int x, unsigned int y, unsigned char *p) |
| Get pixel (x, y) value and store it to p. | |
| vetFrameRGBA32 & | operator= (vetFrameRGBA32 &img) |
| Copies all pixel data from img. Throws an exception if images are of different size. | |
| vetFrameRGBA32 & | operator+= (vetFrameRGBA32 &img) |
| Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size. | |
| vetFrameRGBA32 & | operator-= (vetFrameRGBA32 &img) |
| Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size. | |
| void | operator<< (const vetFrameRGB24 &img) |
| void | operator<< (const vetFrameRGB96 &img) |
| vetFrameRGBA32 & | operator>> (vetFrameRGB24 &img) |
| vetFrameRGBA32 & | operator>> (vetFrameRGB96 &img) |
| 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 | |
| bool | autoFreeData |
| unsigned char * | data |
Definition at line 45 of file vetFrameRGBA32.h.
|
||||||||||||
|
Create an image with the given dimensions, allocates empty data.
Definition at line 33 of file vetFrameRGBA32.cpp. References autoFreeData, data, and reAllocCanvas(). |
|
|
Copy Constructor, create an image from another image, copying memory.
Definition at line 45 of file vetFrameRGBA32.cpp. References autoFreeData, data, vetFrame::height, reAllocCanvas(), and vetFrame::width. |
|
|
Copy Constructor, create an image from another image, copying memory.
Definition at line 62 of file vetFrameRGBA32.cpp. References autoFreeData, data, vetFrame::height, reAllocCanvas(), and vetFrame::width. |
|
|
Copy Constructor, create an image from another image, copying memory.
Definition at line 75 of file vetFrameRGBA32.cpp. References autoFreeData, data, vetFrame::height, reAllocCanvas(), and vetFrame::width. |
|
|
Clear all pixel to the specified value.
Definition at line 212 of file vetFrameRGBA32.cpp. References data, vetFrame::height, and vetFrame::width. |
|
|
Read current buffer address.
Implements vetFrame. Definition at line 105 of file vetFrameRGBA32.h. References data. |
|
|
Get current format's BPP (Bits per Pixel).
Implements vetFrame. Definition at line 112 of file vetFrameRGBA32.h. |
|
|
Read current buffer size (for example the real size of array).
Implements vetFrame. Definition at line 107 of file vetFrameRGBA32.h. References vetFrame::height, and vetFrame::width. |
|
|
Implements vetFrame. Definition at line 192 of file vetFrameRGBA32.h. |
|
|
Get FOURCC code of current data format, visit http://www.fourcc.org for all codes.
Implements vetFrame. Definition at line 194 of file vetFrameRGBA32.h. |
|
||||||||||||||||
|
Get pixel (x, y) value and store it to p.
Definition at line 162 of file vetFrameRGBA32.cpp. References data, vetFrame::height, VETRET_OK, and vetFrame::width. |
|
|
Implements vetFrame. Definition at line 191 of file vetFrameRGBA32.h. |
|
|
Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size.
Definition at line 254 of file vetFrameRGBA32.cpp. References data, vetFrame::height, INFO, and vetFrame::width. |
|
|
Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size.
Definition at line 267 of file vetFrameRGBA32.cpp. References data, vetFrame::height, INFO, and vetFrame::width. |
|
|
Copies all pixel data from img. Throws an exception if images are of different size.
Definition at line 236 of file vetFrameRGBA32.cpp. References data, vetFrame::height, reAllocCanvas(), and vetFrame::width. |
|
||||||||||||||||
|
Set pixel (x, y) to the specified value.
Definition at line 188 of file vetFrameRGBA32.cpp. References data, vetFrame::height, VETRET_OK, and vetFrame::width. |
1.4.4