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

Public Types | |
| enum | ChannelYUV |
Public Member Functions | |
| vetFrameYUV420 () | |
| Default constructor, initialize height and width to 0. | |
| vetFrameYUV420 (unsigned int width, unsigned int height) | |
| Create an image with the given dimensions, allocates (random) data. | |
| vetFrameYUV420 (vetFrameYUV420 &img) | |
| Copy Constructor, create an image from another image, copying memory. | |
| ~vetFrameYUV420 () | |
| Destructor currenly clear pixel data (array). | |
| void * | dump_buffer () |
| Read current buffer address. | |
| 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) |
| unsigned int | getBufferSize () |
| Read current buffer size (for example the real size of array). | |
| vetFrameYUV420 & | clearWith (unsigned char *bg, ChannelYUV channel) |
| Clear all pixel to the specified value. | |
| VETRESULT | setPixel (unsigned int x, unsigned int y, unsigned char &value, ChannelYUV channel) |
| Set pixel (x, y) to the specified value. | |
| VETRESULT | getPixel (unsigned int x, unsigned int y, unsigned char &value, ChannelYUV channel) |
| Get pixel (x, y) value and store it to p. | |
| vetFrameYUV420 & | operator= (vetFrameYUV420 &img) |
| Copies all pixel data from img. Throws an exception if images are of different size. | |
| vetFrameYUV420 & | operator+= (vetFrameYUV420 &img) |
| Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size. | |
| vetFrameYUV420 & | operator *= (vetFrameYUV420 &img) |
| Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size. | |
| void | operator<< (const vetFrameRGB24 &img) |
| vetFrameYUV420 & | operator>> (vetFrameRGB24 &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 |
| unsigned char * | Y |
| unsigned char * | U |
| unsigned char * | V |
Definition at line 41 of file vetFrameYUV420.h.
|
||||||||||||
|
Create an image with the given dimensions, allocates (random) data.
Definition at line 57 of file vetFrameYUV420.cpp. References autoFreeData, data, and reAllocCanvas(). |
|
|
Copy Constructor, create an image from another image, copying memory.
Definition at line 39 of file vetFrameYUV420.cpp. References autoFreeData, data, vetFrame::height, reAllocCanvas(), and vetFrame::width. |
|
||||||||||||
|
Clear all pixel to the specified value.
Definition at line 222 of file vetFrameYUV420.cpp. References data, vetFrame::height, and vetFrame::width. |
|
|
Read current buffer address.
Implements vetFrame. Definition at line 90 of file vetFrameYUV420.h. References data. |
|
|
Get current format's BPP (Bits per Pixel).
Implements vetFrame. Definition at line 96 of file vetFrameYUV420.h. |
|
|
Read current buffer size (for example the real size of array).
Implements vetFrame. Definition at line 102 of file vetFrameYUV420.h. References vetFrame::height, and vetFrame::width. Referenced by vetFilterNoiseChannel::generateNoise(). |
|
|
Implements vetFrame. Definition at line 176 of file vetFrameYUV420.h. |
|
|
Get FOURCC code of current data format, visit http://www.fourcc.org for all codes.
Implements vetFrame. Definition at line 178 of file vetFrameYUV420.h. |
|
||||||||||||||||||||
|
Get pixel (x, y) value and store it to p.
Definition at line 151 of file vetFrameYUV420.cpp. References data, vetFrame::height, VETRET_OK, and vetFrame::width. |
|
|
Implements vetFrame. Definition at line 175 of file vetFrameYUV420.h. |
|
|
Overload equals-add (+=) operator for two images (pixel += loop) Throws an exception if images are of different size.
Definition at line 293 of file vetFrameYUV420.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 280 of file vetFrameYUV420.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 262 of file vetFrameYUV420.cpp. References data, vetFrame::height, reAllocCanvas(), and vetFrame::width. |
|
||||||||||||||||||||
|
Set pixel (x, y) to the specified value.
Definition at line 187 of file vetFrameYUV420.cpp. References data, vetFrame::height, VETRET_OK, and vetFrame::width. |
1.4.4